Skip to content

Instantly share code, notes, and snippets.

@steriley
steriley / sublime preferences
Created May 25, 2017 11:34
sublime preferences
{
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
@steriley
steriley / console_log.sublime-snippet
Created October 10, 2016 20:50
Sublime Text console.log Snippet
<snippet>
<!-- Tools -> Developer -> New Snippet..., Save As... console_log.sublime-snippet -->
<content><![CDATA[console.log($1)$0]]></content>
<tabTrigger>log</tabTrigger>
<scope>text.html,source.js,source.jsx</scope>
<description>console.log()</description>
</snippet>
@steriley
steriley / mput.js
Last active May 10, 2019 17:31
promise-ftp with multi-file upload
var promisify = require('promisify-node'),
PromiseFtp = require('promise-ftp'),
fs = promisify('fs')
var _ftp = new PromiseFtp(),
_localFilePath = './data/',
_remoteFilePath = '/public_html/temp/'
function Ftp(env){
this.config = {
@steriley
steriley / .bash_profile
Created September 18, 2012 18:12
My Bash Profile
export PATH=~/bin:/usr/local/bin:/usr/local/mysql/bin:$PATH
export EDITOR=subl
# command prompt change:
# http://osxdaily.com/2006/12/11/how-to-customize-your-terminal-prompt/
export PS1="$ "
# add colour to the terminal output
export CLICOLOR=1
export LSCOLORS=cxFxCxDxBxegedabagacad