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 / .rubocop.yml
Created October 9, 2014 08:06
~/.rubocop.yml
Alias:
Enabled: false
AsciiComments:
Enabled: false
AsciiIdentifiers:
Enabled: false
BlockNesting:
@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')
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 / 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}'`
@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 / .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 / 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 / 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
#
⨀_⨀
⨂_⨂
(/◔ ◡ ◔)/
°ﺑ°
(¬_¬)
(´・ω・`)
(ʘ_ʘ)
(ʘ‿ʘ)
(ಠ_ಠ)
(ಠ‾ಠ)