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/env bash | |
# bootstrap macOS 10.xx with development tools: | |
# Xcode commandline-tools | |
# brew | |
# brew-cask | |
# ansible | |
# vagrant | |
# virtualbox | |
# docker |
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/env bash | |
# PiVPN: Trivial OpenVPN setup and configuration | |
# Easiest setup and mangement of OpenVPN on Raspberry Pi | |
# http://pivpn.io | |
# Heavily adapted from the pi-hole.net project and... | |
# https://github.com/StarshipEngineer/OpenVPN-Setup/ | |
# | |
# Install with this command (from your Pi): | |
# | |
# curl -L https://install.pivpn.io | bash |
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/sh | |
# This script will automatically: | |
# * download [Lynis](https://cisofy.com/lynis/), an open source security auditing tool | |
# * run a full audit check, either privileged, or non-privileged if not logged in as root | |
# * cleanup by removing the downloaded archive, and the extracted directory it ran out of | |
# * save the audit report to your local directory (YYYYMMDD-lynis-report) | |
# | |
# This script requires: | |
# * awk |
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 -x | |
# User script to bootstrap any instance. | |
# This will set up, array, and format every instance storage | |
# drive present in the instance (if any) | |
# | |
# The disk format/layout is read from an EC2 tag "DiskLayout" | |
# (defined in the cloudformation templates) and it defaults to | |
# "raid0". Possible values are: | |
# * raidN: grabs all available instance storage drives, creates a |
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 | |
# | |
# this is going to be a rewrite of this: | |
# https://github.com/defsdoor/letsencrypt-autorenew/blob/master/get_certificates | |
# example file mycerts: | |
## EMAIL [email protected] | |
## HOSTS www.example.com | |
## EMAIL [email protected] |
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
curl -s -w '\nLookup time:\t%{time_namelookup}\nConnect time:\t%{time_connect}\nAppCon time:\t%{time_appconnect}\nRedirect time:\t%{time_redirect}\nPreXfer time:\t%{time_pretransfer}\nStartXfer time:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n' -o /dev/null ${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
#!/bin/bash | |
# Using Git to Manage Todos | |
# by Jezen Thomas | |
# http://jezenthomas.com/using-git-to-manage-todos/ | |
set -e | |
main() { | |
while IFS= read -r todo; do |
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
## timeless, anthems | |
Crass "Bata Motel" | |
Fugazi "Suggestion" | |
Huggy Bear "Her Jazz" | |
War On Women "Say It" | |
Perfect Pussy "Driver" | |
Bikini Kill "Rebel Girl" | |
Sleater-Kinney "#1 Must Have" | |
Team Dresch "Remember Who You Are" |
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/sh | |
### BEGIN INIT INFO | |
# Provides: hubot | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the hubot service | |
# Description: starts the Hubot bot for the Campfire rooms |
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 | |
# inspired by Mattias Geniar's post: | |
# https://ma.ttias.be/how-to-read-an-ssl-certificate-info-from-the-cli/ | |
# could it mimic the functionality of this online one ssl testing tool? | |
# https://www.ssllabs.com/ssltest/analyze.html | |
if [[ ! $1 ]]; then | |
echo " ERR: please provide a site to check" |