* ,
_/^\_
< >
* /.-.\ *
* `/&\` *
,@.*;@,
/_o.I %_\ *
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/bash | |
# | |
# Ansible role test shim. | |
# | |
# Usage: [OPTIONS] ./tests/test.sh | |
# - distro: a supported Docker distro version (default = "centos7") | |
# - playbook: a playbook in the tests directory (default = "test.yml") | |
# - cleanup: whether to remove the Docker container (default = true) | |
# - container_id: the --name to set for the container (default = timestamp) | |
# - test_idempotence: whether to test playbook's idempotence (default = true) |
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/bash | |
files=(\ | |
'https://adaway.org/hosts.txt'\ | |
'http://winhelp2002.mvps.org/hosts.txt'\ | |
'http://hosts-file.net/.\ad_servers.txt'\ | |
'http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext'\ | |
'http://someonewhocares.org/hosts/hosts'\ | |
) |
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
# <snip> | |
# Destructive! Resets all rebased commit dates to COMMITER_DATE | |
git-reset-dates() { | |
echo "Usage: git-reset-dates [ SHA1..HEAD ]" | |
echo "Are you sure you wish to reset git commit dates to COMMITER_DATE? (y/N)" | |
read REPLY | |
echo | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then |
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/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Create a Personal Access Token and add it here (replace my username with yours) | |
# https://github.com/settings/tokens | |
CREDS=dm:TOKEN | |
ORG=${ORG:=sansible} | |
PAGES=${PAGES:=60} |
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 checkout PR-Branch | |
git reset --soft HEAD~10 # i.e. PR with 10 commits | |
git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})" | |
git checkout master | |
git merge --no-ff PR-Branch |
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
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION | |
Do Not Translate or Localize | |
This file provides information regarding components that are being relicensed to you by Microsoft under Microsoft?s Visual Studio Code ?Preview? software licensing terms. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise. | |
Microsoft is offering you a license to use the following components subject to the Microsoft Visual Studio Code ?Preview? software license terms, except that components licensed under open source licenses requiring that such component remain under the original license are being made available to you by Microsoft under the original licensing terms. Please refer to the accompanying Credits_41.0.2272.76.html file for additional notices regarding the Chromium open source project. | |
1. Async-each version 0.1.6 (https://github.com/paulmillr/async-each) | |
2. atom-electron version 0.22.3 (https://github.com/atom/electron) |
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
# in ~/.dotfiles/zsh/alias.zsh | |
alias aws='client=$1 source ~/.dotfiles/bin/aws.zsh $client' |
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
# GeoNames.org Country Information | |
# ================================ | |
# | |
# | |
# CountryCodes: | |
# ============ | |
# | |
# The official ISO country code for the United Kingdom is 'GB'. The code 'UK' is reserved. | |
# | |
# A list of dependent countries is available here: |
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2