Skip to content

Instantly share code, notes, and snippets.

View stavarotti's full-sized avatar

Steve Chikwaya stavarotti

  • Papillion, NE
View GitHub Profile
@stavarotti
stavarotti / gist:8176858
Created December 30, 2013 01:40
OpenEmu Crashlog
Process: OpenEmu [86026]
Path: /Users/USER/Downloads/OpenEmu 2.app/Contents/MacOS/OpenEmu
Identifier: org.openemu.OpenEmu
Version: 1.0
Code Type: X86-64 (Native)
Parent Process: launchd [162]
Responsible: OpenEmu [86026]
User ID: 501
Date/Time: 2013-12-29 19:34:45.910 -0600
@stavarotti
stavarotti / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@stavarotti
stavarotti / ssh-agent-auto-add.bat
Created May 5, 2015 22:14
Automatically add ssh-keys when cmder starts
:: Automatically add ssh keys when cmder starts
::cmder\1.1.4.1\vendor\init.bat
:: Run ssh-agent initialisation
@if "%SSH_AGENT_PID%"=="" (
@bash C:\opt\cmder\1.1.4.1\bin\ssh-agent-init.sh
@call ssh-agent-setter.cmd
@del ssh-agent-setter.cmd
ssh-add %USERPROFILE%/.ssh/20150505_rsa
) else (
@stavarotti
stavarotti / setEnv.bash
Last active October 11, 2018 16:32
Set environment variables for node (windows cmder)
$ set KEY_1='1' && set KEY_2='2' && npm start
@stavarotti
stavarotti / env-examples.md
Last active August 29, 2015 14:26 — forked from ericelliott/env-examples.md
env-examples

Most configuration really isn't about the app -- it's about where the app runs, what keys it needs to communicate with third party API's, the db password and username, etc... They're just deployment details -- and there are lots of tools to help manage environment variables -- not the least handy being a simple .env file with all your settings. Simply source the appropriate env before you launch the app in the given env (you could make it part of a launch script, for instance).

env files look like this:

SOMEVAR="somevalue"
ANOTHERVAR="anothervalue"

To source it:

$ source dev.env # or staging.env, or production.env, depending on where you're deploying to

@stavarotti
stavarotti / sublime-settings-user-prefs.json
Last active August 29, 2015 14:27
Sublime Text 3 User Preferences
{
"always_show_minimap_viewport": true,
"auto_indent": true,
"auto_match_enabled": true,
"bold_folder_labels": true,
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/Babel/Monokai Phoenix.tmTheme",
"copy_with_empty_selection": false,
@stavarotti
stavarotti / st3-material-theme-settings.json
Created August 21, 2015 22:10
Sublime Text 3 Material Theme Settings
{
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"material_theme_disable_fileicons": false,
"material_theme_disable_folder_animation": true,
"material_theme_small_tab": true,
"theme": "Material-Theme-Darker.sublime-theme"
}
@stavarotti
stavarotti / st3-spacegray-theme-settings.json
Created August 21, 2015 22:12
Sublime Text 3 Spacegray Theme Settings
{
"color_scheme": "Packages/Theme - Spacegray/base16-ocean.dark.tmTheme",
"spacegray_sidebar_font_small": false,
"spacegray_sidebar_tree_xsmall": false,
"spacegray_tabs_font_small": true,
"spacegray_tabs_small": true,
"theme": "Spacegray.sublime-theme"
}
@stavarotti
stavarotti / st3-key-bindings.json
Created August 21, 2015 23:57
Sublime Text 3 key bindings
[
{ "keys": ["super+shift+o"], "command": "prompt_open_folder"}
]
@stavarotti
stavarotti / st3-package-control-settings.json
Created August 22, 2015 00:01
Sublime Text 3 packages
{
"in_process_packages":
[
],
"installed_packages":
[
"Alignment",
"ApplySyntax",
"Babel",
"BracketHighlighter",