| |
|:-------------------------------------:|
|  |
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
| # = ^ . ^ = | |
| # | |
| # /etc/sudoers.d/sudoers-insults | |
| # sudoers.d insults configuration file | |
| # Andres Hernandez - tonejito | |
| # | |
| # This file must be mode 0440 and owner root:root | |
| # install --mode 0440 --owner root --group root sudoers-insults /etc/sudoers.d/ | |
| # | |
| # Edit with visudo |
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 -vx | |
| # httpd-debug.sh | |
| # Run apache in DEBUG mode with logging to stdout and trace of opened files | |
| # Andres Hernandez - tonejito - | |
| STRACE=`which strace` | |
| APACHE_DEBUG="/usr/sbin/apache2 -X -e debug" |
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
| SHELL=/bin/bash | |
| DOWNLOADS=~/Downloads | |
| NOTO_URL=https://noto-website-2.storage.googleapis.com/pkgs/Noto-hinted.zip | |
| NOTO_ZIP=noto-font.zip | |
| NOTO_DIR=/usr/share/fonts/opentype/noto | |
| all: download install | |
| download: |
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
| # /etc/apt/sources.list | |
| # apt-key adv --keyserver keyring.debian.org --recv-keys XXXXXXXXXXXXXXXX | |
| # apt-key list | grep -i expired | cut -d / -f 2 | awk '{print $1}' | xargs -r -t apt-key adv --keyserver keys.gnupg.net --recv-keys | |
| # aptitude update | |
| For older releases | |
| # cat > /etc/apt/apt.conf.d/99-gpg-EXPIRED << EOF | |
| // http://snapshot.debian.org/ |
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
| # .gitignore | |
| **/old |
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
| # Linux kernel verbose boot and logging to serial console | |
| # | |
| # Check Documentation/kernel-parameters.txt [1] to check all aplicable options for your kernel version | |
| # | |
| # VERSION="v"$(uname -r | sed -e 's/\(\.0\)\?-.*$//') | |
| # [1] https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/plain/Documentation/kernel-parameters.txt?id=refs/tags/$VERSION | |
| linux /vmlinuz root=/dev/sda1 ro consoleblank=0 earlyprintk=ttyS0 console=ttyS0 panic=1 oops=panic panic_on_warn verbose INIT_VERBOSE=yes init=/sbin/init -v | |
| initrd /initrd.gz | |
| boot |
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
| # Rename Windows PC via PowerShell and WMI | |
| # http://social.technet.microsoft.com/wiki/contents/articles/7824.set-computer-name-using-powershell.aspx | |
| # https://technet.microsoft.com/en-us/library/hh849792(v=wps.620).aspx | |
| $ComputerName = Get-WmiObject Win32_ComputerSystem | |
| $ComputerName.Rename($name) | |
| Restart-Computer |
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 | |
| ( | |
| for ip in {1..254} ; | |
| do | |
| nslookup 1.2.3.$ip ; | |
| done | |
| ) | \ | |
| grep 'name\ =\ ' | \ | |
| sed -e 's/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\)\..*=\ \(.*\).$/\4.\3.\2.\1\t\5/g' | \ |
NewerOlder