by @AlexRRR
{
"Ingredients": {
"Notes": "For about 4",
"Avocados": 4,
"Lime": 1,| ### Keybase proof | |
| I hereby claim: | |
| * I am pstadler on github. | |
| * I am ps (https://keybase.io/ps) on keybase. | |
| * I have a public key whose fingerprint is 6DDF F549 C7E4 555F FDC1 F6FA 31DB BB1F 6949 DA68 | |
| To claim this, I am signing this object: |
| // Simple BOSH proxy written in Go | |
| // | |
| // See: https://github.com/pstadler/candy-go | |
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "net/http" |
| # Autocompletion for homebrew-cask. | |
| # | |
| # This script intercepts calls to the brew plugin and adds autocompletion | |
| # for the cask subcommand. | |
| # | |
| # Author: https://github.com/pstadler | |
| compdef _brew-cask brew | |
| _brew-cask() |
by @AlexRRR
{
"Ingredients": {
"Notes": "For about 4",
"Avocados": 4,
"Lime": 1,| #!/bin/sh | |
| defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Max (editable)" 80 | |
| defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" 48 | |
| defaults write com.apple.BluetoothAudioAgent "Apple Initial Bitpool (editable)" 40 | |
| defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool" 48 | |
| defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Max" 53 | |
| defaults write com.apple.BluetoothAudioAgent "Negotiated Bitpool Min" 48 | |
| defaults write com.apple.BluetoothAudioAgent "Stream - Flush Ring on Packet Drop (editable)" 30 | |
| defaults write com.apple.BluetoothAudioAgent "Stream - Max Outstanding Packets (editable)" 15 |
Pow is a tool for mapping your web apps and their ports to a .dev domain locally. This guide shows how to setup Pow to run alongside Apache.
# Setup user home (http://localhost/~USERNAME/)
echo "<Directory \"/Users/$USER/Sites/\">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny| # Print Git commit statistics for a specific author | |
| # Usage: git-stats "Linus Torvalds" | |
| git-stats() { | |
| author=${1-`git config --get user.name`} | |
| echo "Commit stats for \033[1;37m$author\033[0m:" | |
| git log --shortstat --author $author -i 2> /dev/null \ | |
| | grep -E 'files? changed' \ | |
| | awk 'BEGIN{commits=0;inserted=0;deleted=0} \ | |
| {commits+=1; if($5!~"^insertion") { deleted+=$4 } \ |
| function ej { | |
| EJABBERD_HOME=/usr/local/ejabberd-commercial | |
| EJABBERD_CTL=$EJABBERD_HOME/sbin/ejabberdctl | |
| case "$1" in | |
| restart) | |
| $EJABBERD_CTL stop && $EJABBERD_CTL stopped; $EJABBERD_CTL start | |
| ;; | |
| reload) | |
| $EJABBERD_CTL update $2 |
| # This has been moved: https://github.com/pstadler/ticker.sh |
| #!/bin/bash | |
| curl --ipv4 --silent "http://localhost:32400/library/sections/1/recentlyAdded?X-Plex-Container-Start=0&X-Plex-Container-Size=10" | grep -o 'title="\([^"]*\)"' | sed -e 's/title="//' -e 's/"//' | perl -MHTML::Entities -ne 'print decode_entities($_)' |