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 Create-RandomPassword { | |
| $Length = "10" #number of characters | |
| $NonAlpha = "2" #Number of non alphanumerical characters | |
| [Reflection.Assembly]::LoadWithPartialName(“System.Web”) | Out-Null | |
| [System.Web.Security.Membership]::GeneratePassword($Length,$NonAlpha) | |
| } |
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
| ## Please set the ROOT to the folder your nxlog was installed into, | |
| ## otherwise it will not start. | |
| #define ROOT C:\Program Files\nxlog | |
| define ROOT C:\Program Files (x86)\nxlog | |
| Moduledir %ROOT%\modules | |
| CacheDir %ROOT%\data | |
| Pidfile %ROOT%\data\nxlog.pid | |
| SpoolDir %ROOT%\data |
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
| # Numerous always-ignore extensions | |
| *.diff | |
| *.err | |
| *.orig | |
| *.log | |
| *.rej | |
| *.swo | |
| *.swp | |
| *.vi | |
| *~ |
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 random-password { | |
| cat /dev/urandom | env LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w ${1- 32} | head -n 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
| description "Sidekiq Background Worker" | |
| start on runlevel [2345] | |
| stop on runlevel [06] | |
| setuid ubuntu | |
| setgid ubuntu | |
| env HOME=/home/ubuntu/ |
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 | |
| # From https://raw.githubusercontent.com/mtpereira/scripts/master/setup_blackbox.sh | |
| # Manuel Tiago Pereira ([email protected]) | |
| set -eu | |
| gpg_create() { | |
| local email="${1}" | |
| local comment="${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
| gpg --export | gpg --list-packets --textmode | sed '/keyid/!d; s/.*keyid \([0-9A-F]\{16\}\).*/\1/I' | uniq |
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 | |
| if [[ 'running' != $(boot2docker status) ]]; then | |
| echo "boot2docker not running" | |
| exit 1 | |
| fi | |
| BOOT2DOCKER_IP=$(boot2docker ip) | |
| BOOT2DOCKER_NETWORK=$(boot2docker ssh "ip route show" | awk '/docker0/{print $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
| echo "nameserver $(boot2docker ip)" | sudo tee /etc/resolver/dev |
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 | |
| B2D_FOLDER="/mnt/sda1/docker" | |
| RSYNC_FOLDER="/home/docker/shared" | |
| boot2docker ssh "tce-load -wi rsync > /dev/null" | |
| boot2docker ssh sudo sh <<EOF | |
| mkdir -p /mnt/sda1/docker | |
| chown -R docker:staff $B2D_FOLDER | |
| ln -fs $B2D_FOLDER $RSYNC_FOLDER |
OlderNewer