Skip to content

Instantly share code, notes, and snippets.

View claudioc's full-sized avatar

Claudio Cicali claudioc

View GitHub Profile

Keybase proof

I hereby claim:

  • I am claudioc on github.
  • I am claudioc (https://keybase.io/claudioc) on keybase.
  • I have a public key whose fingerprint is D429 740A 0B64 C08D 3574 DC67 8A06 CCBC 7E45 FDA1

To claim this, I am signing this object:

@claudioc
claudioc / gist:318eb8e44825a0b580ac
Last active August 29, 2015 14:18
How hard would it be to setup a machine from scratch, uh?
- chrome
- chrome canary
- Firefox
- bettertouchtool
- setup touchpad and keyboard
- command line tools / Xcode
- brew
- brew install fish
- brew install node
- brew install hub
apis.google.com: 7 request(s)
fonts.gstatic.com: 2 request(s)
accounts.google.com: 1 request(s)
ssl.gstatic.com: 1 request(s)
oauth.googleusercontent.com: 1 request(s)
@claudioc
claudioc / gist:c0b7b1bf3eab18457e36
Last active December 25, 2024 11:20
Safely delete a branch, remotely and locally. I use it as ~/bin/git-purge and use it with `git purge <branch-name>`
#!/bin/bash
if [ "${1}" = "" ]; then
echo "Please specify a branch name to delete"
exit 1
fi
current=$(git symbolic-ref HEAD | sed 's/refs\/heads\///')
if [ "master" != "${current}" ]; then
echo Please move to the master branch first
@claudioc
claudioc / gist:734c1116fea890d21cc5
Last active August 29, 2015 14:09
Cyanogen nightly on Xperia T
Cyanogen doesn't accept bug reports on nightly builds, so here is a list of GOOD and BAD things I am experiencing with my Xperia T.
What to expect (pros):
- better battery life (I'd say 30% more)
- better performances (50% more responsive)
- better camera performances (starts in just 1sec)
- Google Play Services seem to be (finally) under control - no battery drain
- 4.4.x goodness - no need for "Enter" for the PIN unlock, oh joy :)
@claudioc
claudioc / gist:e5c5786e0816fcf206eb
Created October 22, 2014 15:09
Easy github pull requests (with hub)
#!/bin/bash
# Get the branch
B=$(git rev-parse --abbrev-ref HEAD)
# Get the remote
R=$(git config branch.${B}.remote)
# Get the last commit message
M=$(git log -n1 --format=format:%s)
@claudioc
claudioc / gist:5114554f68e5a026c26d
Created October 22, 2014 14:50
Easy pull request (needs hub)
#!/bin/bash
B=$(git rev-parse --abbrev-ref HEAD)
M=$(git log -n1 --format=format:%s)
DEF_TITLE="${M} - ${B}"
read -e -p "Provide the issue number: " ISSUEN
read -e -p "Provide a meaningful title [${DEF_TITLE}]: " TITLE
TITLE="${TITLE:-$DEF_TITLE}"
echo
echo hub pull-request -m \"${ISSUEN} ${TITLE}\" -h claudioc:${B}
@claudioc
claudioc / gist:3e84baa01d6dcf2e39f4
Created October 22, 2014 14:49
Easy pull request (needs hub)
#!/bin/bash
B=$(git rev-parse --abbrev-ref HEAD)
M=$(git log -n1 --format=format:%s)
DEF_TITLE="${M} - ${B}"
read -e -p "Provide the issue number: " ISSUEN
read -e -p "Provide a meaningful title [${DEF_TITLE}]: " TITLE
TITLE="${TITLE:-$DEF_TITLE}"
echo
echo hub pull-request -m \"${ISSUEN} ${TITLE}\" -h claudioc:${B}
@claudioc
claudioc / gist:82f36dba4f74a4ebd858
Created October 22, 2014 14:47
Easy pull request (needs hub)
#!/bin/bash
B=$(git rev-parse --abbrev-ref HEAD)
M=$(git log -n1 --format=format:%s)
DEF_TITLE="${M} - ${B}"
read -e -p "Provide the issue number: " ISSUEN
read -e -p "Provide a meaningful title [${DEF_TITLE}]: " TITLE
TITLE="${TITLE:-$DEF_TITLE}"
echo
echo hub pull-request -m \"${ISSUEN} ${TITLE}\" -h claudioc:${B}
{
// Details: https://github.com/victorporof/Sublime-JSHint#using-your-own-jshintrc-options
// Example: https://github.com/jshint/jshint/blob/master/examples/.jshintrc
// Documentation: http://www.jshint.com/docs/
"browser": true,
"jquery": true,
"node": true,
"esnext": false,
"globals": {},
"laxcomma": true,