See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| # UPDATED 17 February 2019 | |
| # Redirect all HTTP traffic to HTTPS | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name www.domain.com domain.com; | |
| return 301 https://$host$request_uri; | |
| } | |
| # SSL configuration |
| #!/usr/bin/env bash | |
| # When will my Lenovo order arrive? | |
| # | |
| # I grew impatient while waiting for my Thinkpad to ship, and the arrival date | |
| # kept changing, so I wrote this script to scrape their order details page. | |
| # | |
| # Might not work on all platforms, and it's parsing HTML with sed, so there be | |
| # plenty of dragons within this script. |
| # To read foo.pcap | |
| tshark -ln -r foo.pcap -q -d udp.port==514,syslog -T fields -E separator=" " -e ip.src -e syslog.msg | |
| # To listen on eth0 | |
| tshark -ln -i eth0 -q -d udp.port==514,syslog -T fields -E separator=" " -e ip.src -e syslog.msg |
| # Moved to https://github.com/oxplot/gists/blob/master/ether-waker.sh |
Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.
This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.
You are encouraged to fork this and modify it to your heart's content to match your own needs.
| --[[ json.lua | |
| A compact pure-Lua JSON library. | |
| The main functions are: json.stringify, json.parse. | |
| ## json.stringify: | |
| This expects the following to be true of any tables being encoded: | |
| * They only have string or number keys. Number keys must be represented as | |
| strings in json; this is part of the json spec. |
| #!/bin/sh | |
| # create a custom mapping | |
| cat > /tmp/mapping.json << MAPPING | |
| { | |
| "types": { | |
| "_default": { | |
| "properties": { | |
| "location": { | |
| "properties": { |
| #!/bin/sh | |
| remove_dangling() { | |
| echo "Removing dangling images ..." | |
| docker rmi $(docker images -f dangling=true -q) | |
| } | |
| remove_stopped_containers() { | |
| echo "Removing stopped containers ..." | |
| docker rm $(docker ps -qa) |
| #!/usr/bin/python | |
| # setup: pip install requests beautifulsoup4 | |
| from decimal import Decimal | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import sys | |
| import getpass |