Skip to content

Instantly share code, notes, and snippets.

View gerardroche's full-sized avatar

Gerard Roche gerardroche

View GitHub Profile
@gerardroche
gerardroche / exec.py
Created September 23, 2016 15:07
Default/exec.py (Sublime Text 3124 Default Package)
import collections
import functools
import html
import os
import subprocess
import sys
import threading
import time
import sublime
@gerardroche
gerardroche / gist:cd1dd9cb73b9c84c89f7a0def1ca7779
Last active July 8, 2016 12:08
sublime-generate-package-file-icon-preferences
#!/bin/sh
set -e
unset CDPATH
unset IFS
readonly SOURCE=$(readlink -nf "$0")
readonly SOURCE_PATH=$(dirname "$SOURCE")
readonly SOURCE_NAME=$(basename "$SOURCE")
show_usage() {
# 301 https://github.com/gerardroche/dotfiles
//////////////////
// vim_hardtime //
//////////////////
// { "keys": ["left"], "command": "null", "context": [ { "key": "setting.command_mode", "operand": true } ]},
// { "keys": ["left"], "command": "null", "context": [ { "key": "setting.command_mode", "operand": false }, { "key": "setting.is_widget", "operand": false }, { "key": "auto_complete_visible", "operand": false } ]},
// { "keys": ["down"], "command": "null", "context": [ { "key": "setting.command_mode", "operand": true } ]},
// { "keys": ["down"], "command": "null", "context": [ { "key": "setting.command_mode", "operand": false }, { "key": "setting.is_widget", "operand": false }, { "key": "auto_complete_visible", "operand": false } ]},
// { "keys": ["up"], "command": "null", "context": [ { "key": "setting.command_mode", "operand": true } ]},
// { "keys": ["up"], "command": "null", "context": [ { "key": "setting.command_mode", "operand": false }, { "key": "setting.is_widget", "operand": false }, { "key": "auto_c
#!/bin/sh
set -e
unset CDPATH
unset IFS
init_strip_require_once() {
current_dir_name="$(basename "$PWD")"
# 301 https://github.com/gerardroche/dotfiles
# 301 https://github.com/gerardroche/dotfiles
@gerardroche
gerardroche / sublime-debug
Last active August 1, 2016 18:57
Run Sublime Text with debug flags
# 301 https://github.com/gerardroche/dotfiles
@gerardroche
gerardroche / sublime-clean
Last active December 17, 2022 06:15
Clean Sublime Text caches and optionally clean out any sessions
#!/bin/sh
set -e
unset CDPATH
unset IFS
show_usage() {
cat <<USAGE
Usage: [PROJECTS_PATH=<PATH>] $(basename "$0") [--exclude-sessions] [--exclude-workspaces]