Skip to content

Instantly share code, notes, and snippets.

View consti's full-sized avatar
:shipit:
Focusing 🦄

Constantin Hofstetter consti

:shipit:
Focusing 🦄
View GitHub Profile
⨀_⨀
⨂_⨂
(/◔ ◡ ◔)/
°ﺑ°
(¬_¬)
(´・ω・`)
(ʘ_ʘ)
(ʘ‿ʘ)
(ಠ_ಠ)
(ಠ‾ಠ)
@consti
consti / hack.sh
Created April 19, 2012 11:09 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@consti
consti / post-commit
Created July 10, 2012 09:57
Take a photo of you, whenever you make a commit
#!/bin/sh
#
# Take a photo of you, whenever you make a commit
#
# This is an improved version of Víctor Martínez original post:
# http://coderwall.com/p/xlatfq
#
# Improvements:
@consti
consti / .osx
Created July 29, 2012 17:16
Mac OS X Lion defaults
# ~/.osx — http://mths.be/osx
###############################################################################
# General UI/UX #
###############################################################################
# Set computer name (as done via System Preferences → Sharing)
scutil --set ComputerName "MathBook Pro"
scutil --set HostName "MathBook Pro"
scutil --set LocalHostName "MathBook-Pro"
@consti
consti / hosts
Last active April 23, 2024 19:50
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
@consti
consti / gist:9881192
Created March 30, 2014 22:43
restart coreaudiod when airplay mirror display does not sync audio
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
function genie(){
query=`printf "%s+" $@`
echo $query
result=`curl -s "https://weannie.pannous.com/api?out=simple&input=$query"`
echo $result
say $result 2>/dev/null
}
alias hey=genie
alias how="genie how"
alias what="genie what"
@consti
consti / .Guardfile
Created July 3, 2014 05:55
~/.Guardfile
ignore %r{^ignored/path/}, /public/
filter /\.txt$/, /.*\.zip/
# change this to your local ip address (also install Growl)
notification :gntp, :host => '10.0.1.182'
group :frontend do
# guard :bundler do
# watch('Gemfile')
@consti
consti / .rubocop.yml
Created October 9, 2014 08:06
~/.rubocop.yml
Alias:
Enabled: false
AsciiComments:
Enabled: false
AsciiIdentifiers:
Enabled: false
BlockNesting:
@consti
consti / wtd_bangkok.md
Last active August 2, 2016 05:04
What to do in Bangkok

What to do in Bangkok

Allgemeines

Am Flughafen eine Prepaid Simkarte holen (kostet bei True Mobile ca. 400฿ für 30 Tage Internet) - dann Foursquare auf dem Handy installieren und Google Maps (BTS Stationen auf Thai!) und Apple Maps (BTS Stationen auf Englisch!) zur Navigation verwenden.

Geldautomaten in Thailand verrechnen beim Abheben mit einer Ausländischen Geldkarte bis zu 180฿ Gebühr. Deshalb am Besten immer gleich "ausreichend" Geld abheben bzw. Euro mitbringen und am Flughafen in Bangkok (Siam Commercial Bank) oder in der Stadt ("SuperRich Exchange") wechseln: der Kurs hier ist meistens sehr sehr gut.

Nicht auf den "Hat heute geschlossen, ich kann euch was anderes zeigen"-Trick reinfallen. Entspricht meistens nicht der Wahrheit (im Internet nachschauen) und führt nur zum Geschäft des Schwagers ("günstige Anzüge") oder dem Restaurant der Cousine ("real thai food") :).