Skip to content

Instantly share code, notes, and snippets.

@delphiki
delphiki / .xmodmap
Last active January 26, 2016 16:28
Fix french Apple Keyboard layout on Fedora / Linux (~/.xmodmap)
keycode 49 = less greater less greater VoidSymbol VoidSymbol
keycode 94 = at numbersign at numbersign periodcentered Ydiaeresis
keycode 169 = Insert NoSymbol Insert NoSymbol Insert
@delphiki
delphiki / keybase.md
Created June 2, 2015 07:37
keybase.md

Keybase proof

I hereby claim:

  • I am delphiki on github.
  • I am delphiki (https://keybase.io/delphiki) on keybase.
  • I have a public key whose fingerprint is 0E27 BB72 C440 71A3 EDE6 1E49 16D7 824D FEA9 EA4C

To claim this, I am signing this object:

@delphiki
delphiki / .bashrc
Created March 9, 2015 09:39
Dynamic symfony2 console aliases (based on directory structure, sf2/sf3)
function sfCommand {
if [ -f "./bin/console" ]
then
php bin/console "$@"
else
php app/console "$@"
fi
}
alias dev="sfCommand --env=dev"
@delphiki
delphiki / gist:8f51eed2a463b2e9ca66
Created February 4, 2015 09:25
Optimize all jpeg files in a directory
find . -name '*.jpg' -exec jpegtran -copy none -optimize -outfile {} {} \;
@delphiki
delphiki / Gruntfile.js
Created November 4, 2014 10:56
Base Gruntfile.js
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
compass: {
sass: {
options: {
sassDir: 'scss',
cssDir: 'web/css',
outputStyle: 'expanded',
@delphiki
delphiki / Preferences.sublime
Last active August 29, 2015 14:04
My Sublime Text 3 user preferences
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"default_line_ending": "unix",
"font_face": "SourceCodePro",
"font_size": 12,
"ignored_packages":
[
"Vintage",
"Monokai Extended",
"Theme - Flatland"
@delphiki
delphiki / Custom agnoster zsh theme
Created January 14, 2014 08:22
A lighter version of the excellent agnoster theme for zsh
# Original theme https://github.com/agnoster zsh theme
ZSH_THEME_GIT_PROMPT_DIRTY='±'
function _git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git show-ref --head -s --abbrev |head -n1 2> /dev/null)"
echo "${ref/refs\/heads\// }$(parse_git_dirty)"
}
function _git_info() {