Skip to content

Instantly share code, notes, and snippets.

View cadesalaberry's full-sized avatar
👀
Watching you

C-A de Salaberry cadesalaberry

👀
Watching you
View GitHub Profile
@kernelsmith
kernelsmith / useful_sublime_text2_plugins.txt
Last active December 15, 2015 18:59
useful sublime text 2 plugins
1) Install package control in sublime: http://wbond.net/sublime_packages/package_control/installation. For the impatient:
a) Ctl-` (control backtick, might be command-backtick for macsters)
b) Paste the following:
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation')
c) Hit enter
d) Restart sublime
2) Install the git package (https://github.com/kemayo/sublime-text-2-git/wiki):
a) Bring up the Command Palette (Command+Shift+p on OS X, Control+Shift+p on Linux/Windows).
b) Select "Package Control: Install Package" (it'll take a few seconds)
@akost
akost / convert.sh
Created April 4, 2012 19:06
Bash script for recursive file convertion windows-1251 --> utf-8
#!/bin/bash
# Recursive file convertion windows-1251 --> utf-8
# Place this file in the root of your site, add execute permission and run
# Converts *.php, *.html, *.css, *.js files.
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command
find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f |
while read file
do