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 -u | |
| set -e | |
| set -o pipefail | |
| export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin | |
| cat <<'EOF' > /etc/modprobe.d/blacklist-ipv6.conf |
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
| Import-Module ServerManager | |
| Add-WindowsFeature RSAT-ADDS-Tools |
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
| $AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}" | |
| $UserKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073S}" | |
| Set-ItemProperty -Path $AdminKey -Name "IsInstalled" -Value 0 | |
| Set-ItemProperty -Path $UserKey -Name "IsInstalled" -Value 0 | |
| Stop-Process -Name Explorer |
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
| function password () { | |
| echo "$(< /dev/urandom tr -dc "A-Za-z0-9" | head -c${1:-16};echo;)" | |
| } | |
| function dovecot-hash(){ | |
| if [ -z "${1}" ] | |
| then | |
| echo "requires password to be hashed -- exiting" | |
| return 1 | |
| else | |
| echo $(doveadm pw -p ${1} -s sha512 -r 100) |
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
| ####################################################################################################################### | |
| # | |
| # Purpose: Bash script to fix a few elements of the default Dokku script with running correctly on Debian Wheezy | |
| # Author: Shirkey <dev@shirkey.me> | |
| # License: MIT | |
| # Tested with: | |
| # * Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux | |
| # * v0.2.1 of Dokku installer script | |
| # | |
| ####################################################################################################################### |
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 | |
| # node.js using PPA (for statsd) | |
| # if < Ubuntu 12.10 | |
| sudo apt-get install -y python-software-properties | |
| # if >= Ubuntu 12.10 | |
| sudo apt-get install -y software-properties-common | |
| sudo apt-add-repository -y ppa:chris-lea/node.js | |
| sudo apt-get update |
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
| alias pbcopy='xsel --clipboard --input' | |
| function ip { | |
| IP=$(ifconfig | grep 'inet' | grep -v '127.0.0.1' | awk '{print $2}' | cut -c 6-) | |
| echo $IP | |
| echo $IP | pbcopy | |
| } |