Skip to content

Instantly share code, notes, and snippets.

View jturmel's full-sized avatar

Josh Turmel jturmel

View GitHub Profile
#!/bin/bash
INSTALL_FOLDER=~/.macos-setup
mkdir -p $INSTALL_FOLDER
MACOS_SETUP_PROFILE=$INSTALL_FOLDER/macos-setup_profile
# sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
if ! hash brew
{
"definitions": {
"accoladeBadge": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"parent": {
"#ref": "#/definitions/badge"
@jturmel
jturmel / gist:6dc9d41ac33e1167c44ebd4622da6f61
Created May 27, 2016 20:15
Install PIL via Python pip
pip install --no-index -f http://effbot.org/downloads/ -U PIL --trusted-host effbot.org
@jturmel
jturmel / index.html
Created February 16, 2015 19:19
CSS specificity
<html>
<head>
<style>
div.foo {
color: red;
}
div:not([id="bar"]) {
color: green;
}
</style>

Keybase proof

I hereby claim:

  • I am jturmel on github.
  • I am jturmel (https://keybase.io/jturmel) on keybase.
  • I have a public key whose fingerprint is 3F77 9400 A4BA F1CB B6CA CE1B 5457 5787 8D28 A5EE

To claim this, I am signing this object:

Chromebook Pixel Configuration

What does this do? Good question. What you will end up with is essentially Chrome OS and Ubuntu (with KDE) running side by side.

1. Get in to developer mode

Hold down ESC + REFRESH + POWER, when it reboots hit CTRL + D, and ENTER to confirm.

(You will have to hit CTRL + D at ever boot when you see the scary dev mode OS screen.)

@jturmel
jturmel / pr.md
Created March 25, 2013 14:55 — forked from piscisaureus/pr.md

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

git config --global alias.rebase-last-ten '!b="$(git branch --no-color | cut -c3-)" ; h="$(git rev-parse $b)" ; echo "Current branch: $b $h" ; c="$(git rev-parse $b~9)" ; echo "Recreating $b branch with initial commit $c ..." ; git checkout --orphan new-start $c ; git commit -C $c ; git rebase --onto new-start $c $b ; git branch -d new-start ; git gc'
# TODO: Explain what some of this does..
bindkey -e
bindkey '\ew' kill-region
bindkey -s '\el' "ls\n"
bindkey '^r' history-incremental-search-backward
bindkey "^[[5~" up-line-or-history
bindkey "^[[6~" down-line-or-history
# make search up and down work, so partially type and hit up/down to find relevant stuff
@jturmel
jturmel / keys.zsh
Last active December 10, 2015 14:48
keys.zsh
autoload up-line-or-beginning-search
autoload down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey -v # set vim bindings
#http://zshwiki.org/home/zle/bindkeys
typeset -A key