scutil --set ComputerName "name"scutil --set HostName "name"scutil --set LocalHostName "name"
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
| ### KERNEL TUNING ### | |
| # Increase size of file handles and inode cache | |
| fs.file-max = 2097152 | |
| # Do less swapping | |
| vm.swappiness = 10 | |
| vm.dirty_ratio = 60 | |
| vm.dirty_background_ratio = 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
| #!/bin/bash | |
| # Install external dependencies. | |
| sudo yum install -y gcc make openssl-devel libffi-devel | |
| # Download and install Python 2.7.18. | |
| # Note that there are newer release versions available. | |
| wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz | |
| tar xzf Python-2.7.18.tgz | |
| cd Python-2.7.18 |
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
| ### Basic ### | |
| # The directory to store the downloaded file. | |
| dir=${HOME}/Downloads | |
| # Downloads the URIs listed in FILE. | |
| input-file=${HOME}/.aria2/aria2.session | |
| # Save error/unfinished downloads to FILE on exit. | |
| save-session=${HOME}/.aria2/aria2.session | |
| # Save error/unfinished downloads to a file specified by --save-session option every SEC seconds. If 0 is given, file will be saved only when aria2 exits. Default: 0 | |
| save-session-interval=60 | |
| # Set the maximum number of parallel downloads for every queue item. See also the --split option. Default: 5 |
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 | |
| TMP_DIR="/tmp" | |
| URL_LINKS=$"http://www.blocklist.de/lists/ssh.txt | |
| http://www.blocklist.de/lists/apache.txt | |
| http://www.blocklist.de/lists/asterisk.txt | |
| http://www.blocklist.de/lists/bots.txt | |
| http://www.blocklist.de/lists/courierimap.txt | |
| http://www.blocklist.de/lists/courierpop3.txt | |
| http://www.blocklist.de/lists/email.txt |
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
| #!/usr/bin/perl | |
| ############################################################################### | |
| # Copyright 2006-2015, Way to the Web Limited | |
| # URL: http://www.configserver.com | |
| # Email: [email protected] | |
| ############################################################################### | |
| sub custom_line { | |
| my $line = shift; | |
| my $lgfile = shift; |
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 | |
| # Annoying bug in vmware guest centos6 | |
| # eth0 doesn't exist | |
| ifconfig eth0 2>/dev/null >/dev/null | |
| if [ $? -ne 0 ] ; then | |
| # Rename eth1 with eth0 | |
| echo "UDEV Config..." | |
| rm /etc/udev/rules.d/70-persistent-net.rules | |
| # Change ifcfg-eth0 with hostname address (in /etc/hosts) | |
| echo "Changing eth0 address..." |
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 | |
| # update glibc to 2.17 for CentOS 6 | |
| GLIBC=glibc | |
| OS=el6 | |
| SERVER=https://copr-be.cloud.fedoraproject.org/results/mosquito/myrepo-el6 | |
| VERSION=2.17-55 | |
| FULL_VERSION=$GLIBC-$VERSION.fc20 | |
| X64=x86_64 |
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 | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # Download all ticked blocklists from The Firebog's "The Big Blocklist | |
| # Collection" [0] and block access to them with Unbound by redirecting traffic | |
| # to 0.0.0.0. | |
| # | |
| # [0]: https://firebog.net | |
| ( |
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 | |
| # MacOS 11.7 Big Sur | |
| # Homebrew 4.0.1 | |
| # bind: stable 9.18.12 | |
| # Local caching NS server | |
| # 1) INSTALL BIND |