Skip to content

Instantly share code, notes, and snippets.

View daredude's full-sized avatar

Falko Janak daredude

  • Falko Janak Software Development
  • Berlin, Germany
View GitHub Profile
@daredude
daredude / css custom font
Created October 28, 2010 13:50
provide a custom font for your website with css WORKS WITH IE, FIREFOX, OPERA AND SAFARI
@font-face
{
font-family: my_font;
src: url('my_font.eot');
src: local(my_font), url('my_font.ttf') format('opentype');
}
p
{
font-family: my_font;
@daredude
daredude / setup_p4merge.cmd
Created November 9, 2011 08:36
Setup p4merge as mergetool and difftool for git in windows (found here: http://stackoverflow.com/questions/426026/git-on-windows-how-do-you-set-up-a-mergetool)
git config --global merge.tool p4merge
git config --global mergetool.p4merge.cmd 'p4merge.exe \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"'
git config --global diff.tool p4merge
git config --global difftool.p4merge.cmd 'p4merge.exe \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"'
@daredude
daredude / gist:1360840
Created November 12, 2011 17:24
access jQuery's event data
jQuery._data(element, "events")
@daredude
daredude / docker-clear.bat
Created June 5, 2016 10:53
delete all docker container and images on windows
@echo off
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i