This file contains 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
# list base packages | |
apk info -v | sort > apk.base | |
# upgrade packages | |
apk update -v && apk upgrade -v | |
# DEV # | |
apk add coreutils gcc git go htop make musl-dev openssh procps rsync tmux util-linux vim | |
# PRD # |
This file contains 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/env python | |
"""Hello example.""" | |
import sys | |
def hello(): | |
"""Hello function.""" | |
print 'Hello from %s.' % (sys.platform) |
This file contains 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
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println("Hello!") | |
} |
This file contains 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 update && sudo apt dist-upgrade && sudo apt clean && sudo apt autoremove |
This file contains 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 -x | |
rm -rf $HOME/.pip/cache | |
pip install --upgrade pip | |
pip install --upgrade \ | |
Jinja2 \ | |
PyYAML \ | |
awscli \ |
This file contains 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 -x | |
DATE=$(date +%Y%m%d%H%M) | |
cd $HOME/.. | |
tar cfz /tmp/${USER}_${DATE}.tar.gz ${USER} | |
cd /tmp | |
sha1sum ${USER}_${DATE}.tar.gz >${USER}_${DATE}.tar.gz.sha1 |
This file contains 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 -x | |
go get -u -ldflags "-s -w" github.com/ddo/fast | |
go get -u -ldflags "-s -w" github.com/golang/lint/golint | |
go get -u -ldflags "-s -w" github.com/jfrog/jfrog-cli-go/jfrog-cli/jfrog | |
go get -u -ldflags "-s -w" github.com/mikemadden42/randpw | |
go get -u -ldflags "-s -w" github.com/mikemadden42/serve | |
go get -u -ldflags "-s -w" github.com/mikemadden42/sysinfo | |
go get -u -ldflags "-s -w" github.com/otium/ytdl/... | |
go get -u -ldflags "-s -w" github.com/shenwei356/rush |
This file contains 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
fping -a -g 192.168.18.0/24 2>&1 | tee fping.log | |
nmap -sn 192.168.18.0/24 2>&1 | tee nmap.log | |
nmap -sn -iL hosts.txt |
This file contains 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 | |
#gem install bolt puppet-lint rubocop slack-ruby-client | |
gem update bolt puppet-lint rubocop slack-ruby-client | |
gem cleanup |
This file contains 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
git clone https://github.com/libressl-portable/portable.git libressl | |
cd libressl/ | |
git checkout v2.8.2 | |
./autogen.sh | |
mkdir build && cd build | |
cmake -GNinja -DCMAKE_BUILD_TYPE=Release .. | |
ninja && ninja test |
OlderNewer