Skip to content

Instantly share code, notes, and snippets.

View rastasheep's full-sized avatar

Aleksandar Diklic rastasheep

View GitHub Profile
@rastasheep
rastasheep / br.sh
Created October 20, 2015 06:52 — forked from dmkash/br.sh
Shell Script for tmux setup
#!/bin/sh
SESSION_NAME="big_red"
cd ~/Sites/within3/big_red
tmux has-session -t ${SESSION_NAME}
if [ $? != 0 ]
then
@rastasheep
rastasheep / README.md
Last active August 29, 2015 14:17 — forked from JoelBesada/README.md
Backtick command for GoDoc bookmarklet

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@rastasheep
rastasheep / README.md
Last active August 29, 2015 14:12 — forked from JoelBesada/README.md

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@rastasheep
rastasheep / keyrepeat.shell
Last active January 1, 2020 20:09 — forked from kconragan/keyrepeat.shell
Enable key repeat in Apple Lion for Atom in Vim mode
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
# that enables you to choose a character from a menu of options. If you are on Lion
# try it by pressing and holding down 'e' in any app that uses the default NSTextField
# for input.
#
# It's a nice feature and continues the blending of Mac OS X and iOS features. However,
# it's a nightmare to deal with in Atom if you're running vim mode,
# as it means you cannot press and hold h/j/k/l to move through your file. You have
# to repeatedly press the keys to navigate.
@rastasheep
rastasheep / README.md
Last active August 29, 2015 13:57 — forked from JoelBesada/README.md

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Create a new Gist with a command.js and command.json file, or simply fork this one.

  2. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

  3. Add some metadata to the command.json file:

  • name: The name of the command.
@rastasheep
rastasheep / README.md
Last active August 29, 2015 13:57 — forked from JoelBesada/README.md
Pivotal Tracker commit message bookmarklet for Backtick

Bookmarklet to generate a commit message with Pivotal Tracker story ID and title

For clarity and traceability, your commit messages should include the ID and title of the Pivotal Tracker story you're working on. For example:

[#12345] Add Google Maps to user profiles

When you now open one ore more story in Pivotal Tracker and hit the bookmarklet, it will display a prompt with a commit message. You can also select the stories using the blue box next to them.


Original source

package main
import (
"database/sql"
"errors"
"fmt"
_ "github.com/bmizerany/pq"
"os"
"regexp"
"strings"
@rastasheep
rastasheep / gist:3724290
Created September 14, 2012 19:51 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts (Linux/Windows)

General

  • Ctrl + P | go to anything
  • Ctrl + R | go to methods
  • Ctrl + G | go to line
  • Ctrl + UP / DOWN | scroll up and down
  • Ctrl + KB | toggle side bar
  • Ctrl + ⇧P | command prompt
  • Ctrl + ⇧N | new window (useful for new project)