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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows] | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Gwx] "DisableGwx"=dword:00000001 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate] "DisableOSUpgrade"=dword:00000001 |
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
sudo apt-get install -y kile texlive-lang-german okular texlive-latex-extra texlive-xetex |
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/sh | |
xinput --set-prop "Razer DeathAdder" "Device Accel Constant Deceleration" 5 | |
xinput --set-prop "Razer DeathAdder" "Device Accel Velocity Scaling" 1 | |
xinput --set-prop "Razer DeathAdder" "Device Accel Profile" -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
#!/bin/bash [0/1863] | |
# /root/ubuntu-purge-unused-kernels.sh | |
# crontab: | |
# @reboot /root/ubuntu-purge-unused-kernels.sh | |
dpkg --get-selections | `#show all installed packages` \ | |
grep 'linux-image-*' | `#select all installed images` \ | |
awk '{print $1}' | `#select only package name)` \ | |
egrep -v "linux-image-$(uname -r)|linux-image-generic" | `#remove current and base kernel from list` \ | |
head -n -2 | `#remove two recent kernels from list` \ |
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/sh | |
sudo apt-get install autoconf -y | |
cd ~/Downloads | |
wget http://www.openvas.org/download/wmi/wmi-1.3.14.tar.bz2 | |
tar -xvf wmi-1.3.14.tar.bz2 | |
cd wmi-1.3.14 | |
sudo make "CPP=gcc -E -ffreestanding" | |
sudo cp Samba/source/bin/wmic /usr/local/bin/ |
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 | |
# install java 8_65 | |
sudo mkdir /opt/Oracle_Java | |
sudo wget -qO- --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u65-b17/jre-8u65-linux-x64.tar.gz | tar xvz -C /opt/Oracle_Java/ | |
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/Oracle_Java/jre1.8.0_65/bin/java" 1 | |
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/Oracle_Java/jre1.8.0_65/bin/javaws" 1 | |
sudo update-alternatives --set "java" "/opt/Oracle_Java/jre1.8.0_65/bin/java" | |
sudo update-alternatives --set "javaws" "/opt/Oracle_Java/jre1.8.0_65/bin/javaws" | |
# mozilla firefox |
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
sudo apt-get install libgl1-mesa-dri-lts-trusty:i386 libgl1-mesa-glx-lts-trusty:i386 libc6:i386 |
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/sh | |
tdir=`mktemp -d` | |
cd $tdir | |
sudo apt-get install -y --force-yes libevent-dev libncurses-dev pkg-config autoconf | |
git clone https://github.com/tmux/tmux | |
cd tmux | |
autoreconf -fis | |
./configure | |
make | |
sudo make install |
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
Run("C:\WINDOWS\system32\control.exe desk.cpl", "C:\Windows\system32\") | |
WinWait("Bildschirmauflösung") | |
ControlClick("Bildschirmauflösung", "", "Button3") | |
selectmon('MD6155AN') | |
ControlCommand("Bildschirmauflösung", "", "ComboBox3", "SetCurrentSelection", "1") | |
selectmon('MD32119PR') | |
ControlCommand("Bildschirmauflösung", "", "ComboBox3", "SetCurrentSelection", "2") |
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
# by: http://stackoverflow.com/questions/2903354/bash-script-to-check-running-process | |
pgrep procname && echo Running | |
pgrep procname || echo Not running | |
killall -q -0 procname && echo Running | |
pidof procname && echo Running |