Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
public extension String | |
{ | |
public var localized: String { | |
return NSLocalizedString(self.lowercased(), tableName: nil, bundle: .main, value: "", comment: "") | |
} | |
} |
osascript -e 'tell application "iOS Simulator" to quit' | |
osascript -e 'tell application "Simulator" to quit' | |
xcrun simctl erase all |
#! /usr/bin/env bash | |
NEXT_SKYPE_PROCESS=$(echo $(( $(ps aux | grep skype | grep -v "grep" | wc -l | tr -d '[[:space:]]') + 1))) | |
open -na $(mdfind 'kMDItemFSName == "Skype.app"'cd) --args -DataPath /Users/$(whoami)/Library/Application\ Support/Skype${NEXT_SKYPE_PROCESS} | |
unset NEXT_SKYPE_PROCESS | |
exit 0 |
git tag -l | awk '/^(.*[a-z])$/ {print $1}' | xargs git tag -d |
git ls-remote --tags origin | awk '/^(.*)(\s+)(.*[a-z])$/ {print ":" $2}' | xargs git push origin |
$('.episodecell').each(function(index){ window.location = $(this).attr('href').replace('episode', 'delete_item') }); |
#!/usr/bin/env bash | |
# clean_ios_simulator | |
# Author: Bruno Gama | |
pkill -9 -fi simulator 2>/dev/null | |
_WD="$HOME/Library/Application Support/iPhone Simulator" | |
find "$_WD" -iname "*.app" | while read l; do | |
f=$(dirname "$l") | |
rm -rf "$f" | |
unset f |
#!/usr/bin/env python -tt | |
# -*- encoding: utf-8 -*- | |
# License: Beerware | |
from __future__ import print_function | |
import urllib | |
import json | |
AUTHOR = 'Bruno Gama' | |
TWITTER = '@brunogama' |