Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Bash script to setup testing alongside stable on Debian.
# Based on http://serverfault.com/a/382101
# with fixes from http://serverfault.com/a/653552
# FUNCTIONS #
# This is a general-purpose function to ask Yes/No questions in Bash, either
# with or without a default answer. It keeps repeating the question until it
# gets a valid answer.
# https://gist.github.com/davejamesmiller/1965569
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime_plugin
import subprocess
from time import sleep
import sys
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
log = lambda message: sys.stderr.write("Log: %s\n" % message)
@SavageCore
SavageCore / OpenWithSublimeTextAsAdmin.bat
Last active August 29, 2015 14:18 — forked from xtu/OpenWithSublimeTextAsAdmin.bat
Change menuText for folders to indicate opening as Project
@echo off
@rem ==================
@rem Source:
@rem https://gist.github.com/jcppkkk/8330314
@rem Description:
@rem Install context menu to allow user opens file with Sublime Text as User or Admin, or Open Folder with Sublime Text.
@rem Usage:
@rem Download this .bat file to in Sublime Text's installation folder.
@rem Execute this batch file. It will download elevate codes and setup context menu.
@rem ==================