Skip to content

Instantly share code, notes, and snippets.

View jpsirois's full-sized avatar
🥷

Jean-Philippe Sirois jpsirois

🥷
View GitHub Profile
@jpsirois
jpsirois / zsh-svn-alias
Created November 8, 2012 14:59
SVN ZSH Alias for CLI Awesomeness (for Git users)
# Alias SVN {{{
alias s="svn"
alias sl="svn log"
alias ss="svn status"
alias sc="svn commit"
alias su="svn update"
alias sd="svn diff"
alias saa="svn status | grep '^?' | sed 's/^? *\(.*\)/\"\1\"/g' | xargs svn add"
alias sra="svn status | grep '^!' | sed 's/^! *\(.*\)/\"\1\"/g' | xargs svn rm"
@jpsirois
jpsirois / .slate
Last active October 13, 2015 07:37
My Slate config
# Config
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config secondsBeforeRepeat 0.1
config secondsBetweenRepeat 0.05
# Push Bindings
bind u:ctrl;cmd push up bar-resize:screenSizeX
$(document).on("keypress", 'textarea[maxlength]', function(event){
var ignore = [8,9,13,33,34,35,36,37,38,39,40,46],
$this = $(this),
maxlength = $this.attr('maxlength'),
code = $.data(this, 'keycode')
// check if maxlength has a value.
// The value must be greater than 0
if (maxlength && maxlength > 0) {
// continue with this keystroke if maxlength
// not reached or one of the ignored keys were pressed.
@jpsirois
jpsirois / commonly-misspelled-word.md
Last active December 16, 2015 02:58
Commonly misspelled words or names

Commonly misspelled words or names

English

Wrong Good
Github GitHub
Youtube YouTube
Wordpress WordPress
Linkedin LinkedIn
@jpsirois
jpsirois / must-read-blog.md
Created April 11, 2013 20:30
Blog of which I read every post
@jpsirois
jpsirois / copy-ssh-key.sh
Created June 17, 2013 19:17
Copy a public key to authorized_keys of a server via SSH for passphrase less connection
([ -f ~/.ssh/id_rsa.pub ] || ssh-keygen -t rsa ) && (ssh [email protected] "([ -d ~/.ssh ]||mkdir -m 700 ~/.ssh) && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys" < ~/.ssh/id_rsa.pub)
@jpsirois
jpsirois / pinterest.md
Last active September 14, 2023 15:37
All the image size available for every pinned images on Pinterest
@jpsirois
jpsirois / Dead-simple-CSS-only-dropdown.markdown
Created February 6, 2014 15:11
A Pen by Jean-Philippe Sirois.
@jpsirois
jpsirois / .csscomb.json
Created October 14, 2014 19:21
My Personal CSScomb Preference
{
"remove-empty-rulesets": true,
"always-semicolon": true,
"color-case": "upper",
"block-indent": " ",
"color-shorthand": true,
"element-case": "lower",
"eof-newline": true,
"leading-zero": false,
"quotes": "double",
@jpsirois
jpsirois / styles.less
Created March 18, 2016 17:37
Atom Editor Solarized Dark & Light Personal Fix
atom-text-editor::shadow .selection .region {
.theme-solarized-dark-syntax & { background: #fdf6e3 }
.theme-solarized-light-syntax & { background: #002b36 }
}