This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install --no-install-recommends xorg gdm3 \ | |
gnome-shell gnome-session gnome-control-center gnome-keyring gnome-shell-extensions gnome-tweak-tool \ | |
gksu dconf-editor gtk2-engines-murrine pulseaudio pavucontrol fonts-cantarell | |
apt-get install --no-install-recommends thunar thunar-archive-plugin file-roller tumbler \ | |
leafpad gnome-terminal gpicview gnome-system-monitor | |
apt-get install --no-install-recommends fonts-noto fonts-dejavu fonts-dejavu-extra fonts-droid-fallback fonts-noto-mono \ | |
gnome-accessibility-themes gnome-screenshot gnome-themes-standard gnome-themes-standard-data nautilus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Disable UAC | |
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /f /v "EnableLUA" /t REG_DWORD /d 0 | |
REM Disable Auto Reboot for Windows Update | |
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /f /v "NoAutoRebootWithLoggedOnUsers" /t REG_DWORD /d 1 | |
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /f /v "NoAUAsDefaultShutdownOption" /t REG_DWORD /d 1 | |
REM Device Manager show all devices | |
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /f /v "DEVMGR_SHOW_NONPRESENT_DEVICES" /t REG_DWORD /d 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
random_mac() -> | |
string:join([integer_to_list(random:uniform(255), 16) || X <- [1,2,3,4,5,6]], ":"). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%escape uri | |
escape_uri(S) when is_list(S) -> | |
escape_uri(unicode:characters_to_binary(S)); | |
escape_uri(<<C:8, Cs/binary>>) when C >= $a, C =< $z -> | |
[C] ++ escape_uri(Cs); | |
escape_uri(<<C:8, Cs/binary>>) when C >= $A, C =< $Z -> | |
[C] ++ escape_uri(Cs); | |
escape_uri(<<C:8, Cs/binary>>) when C >= $0, C =< $9 -> | |
[C] ++ escape_uri(Cs); | |
escape_uri(<<C:8, Cs/binary>>) when C == $. -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "(( id|processo).*:|^ *$)" /proc/cpuinfo | |
kernel.grub_args: | |
file.replace: | |
- path: /etc/default/grub | |
- repl: 'GRUB_CMDLINE_LINUX_DEFAULT="intel_iommu=on isolcpus=1-15,17-31 nohz_full=1-15,17-31 rcu_nocbs=1-15,17-31 default_hugepagesz=1GB hugepagesz=1GB hugepages=8"' | |
- pattern: 'GRUB_CMDLINE_LINUX_DEFAULT=".*?"' | |
- flags: ['IGNORECASE', 'MULTILINE'] | |
#cat /proc/cmdline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dnf install salt-master | |
systemctl enable salt-master | |
systemctl start salt-master | |
salt-master -l debug | |
echo "failhard: True" >> /etc/salt/master | |
salt '*' state.show_highstate #top.sls | |
salt 'minion1' state.show_sls examples #example.sls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Create storage | |
VBoxManage createhd --filename VMName.vdi --size 40000 --format VDI | |
VBoxManage modifyhd GoDial.vdi --resize 30500 | |
VBoxManage list hdds | |
VBoxManage closemedium disk $(UUID) --delete | |
#Create VM | |
VBoxManage createvm --name "VMName" --ostype Windows7_64 --register |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p /srv/salt | |
#.bash_profile | |
#ulimit -n 63536 | |
#top -aSCHIP | |
# sysctl dev.igb | grep -v ": 0" | |
# pfctl -si | |
#processor.max_cstate=1 | |
#intel_idle.max_cstate=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmdkey /add:$serverIP /user:$serverIP\$unixAccoutnName /pass:$password | |
net use S: \\192.168.1.22\myshare /SAVECRED /PERSISTENT:YES | |
net use Z: /delete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gsettings set org.gnome.shell.overrides edge-tiling false |
OlderNewer