Skip to content

Instantly share code, notes, and snippets.

View alkalinecoffee's full-sized avatar

Joe Martin alkalinecoffee

  • Comcast
  • Philadelphia, PA
View GitHub Profile
wget https://github.com/nodemcu/nodemcu-firmware/releases/download/0.9.6-dev_20150704/nodemcu_float_0.9.6-dev_20150704.bin
git clone https://github.com/themadinventor/esptool.git
cd esptool
sudo python setup.py install
sudo python ./esptool.py --port=/dev/cu.SLAB_USBtoUART write_flash -fm=dio -fs=32m 0x00000 nodemcu_float_0.9.6-dev_20150704.bin
brew install bash-completion
brew tap cloudfoundry/tap && brew install cf-cli
brew tap drone/drone && brew install drone
brew install tomcat
brew install phantomjs
brew install python@2
pip install ansible
# add to /usr/local/Cellar/tomcat/8.5.8/libexec/conf/tomcat-users.xml
<role rolename="admin"/>
@alkalinecoffee
alkalinecoffee / linux_cheat_sheet.txt
Last active January 21, 2016 01:21
Common linux commands
############
# SYSTEM
############
# show running daemons (CentOS)
systemctl
# show daemon status (CentOS)
systemctl status sshd.service
############
@alkalinecoffee
alkalinecoffee / simple_form_bootstrap.rb
Last active November 5, 2015 19:23
custom simple form component
SimpleForm.setup do |config|
config.wrappers :half_width_checkboxes, tag: 'div', class: 'row', error_class: 'has-error' do |b|
b.use :html5
b.wrapper tag: 'div', class: 'col-md-5' do |ba|
ba.wrapper tag: 'div', class: 'panel panel-default' do |bb|
bb.wrapper tag: 'div', class: 'panel-heading' do |bc|
bc.use :h_label, class: 'panel-title'
end
bb.wrapper tag: 'div', class: 'panel-body' do |bc|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AdjustWindowForFontSizeChange</key>
<true/>
<key>AllowClipboardAccess</key>
<false/>
<key>AnimateDimming</key>
<false/>
//bool DEBUG = true;
bool DEBUG = false;
int chans[] = {9, 10, 11, 12};
int relays[] = {5, 6, 7, 8};
int relay;
int chan;
int chan_status;
@alkalinecoffee
alkalinecoffee / gist:ffa2c69ef79c1f9f1928
Created March 13, 2015 15:40
(Ruby/Rails) Phone screen/Interview questions
BACKGROUND/PERSONALITY
- Tell me about yourself
- Tell me about what your current project
- What are your responsibilities?
- Describe your workflow (how are requirements/issues submitted and handled?)
- Describe the infrastructure for your current project
- Why were these technologies chosen?
- What is the biggest challenge about your current project?
- Were you able to overcome it? If so, how?
- How many people are on the team?
@alkalinecoffee
alkalinecoffee / .bash_profile
Last active November 23, 2016 19:30
dotfiles
# this file is loaded on every session
######################### ALIASES #############################
alias be="bundle exec"
alias bi="bundle install"
alias bu="bundle update"
alias g="bundle exec guard"
alias r="bundle exec rake"
alias rs="bundle exec rails s"
alias rc="bundle exec rails c"
@alkalinecoffee
alkalinecoffee / gist:6b14706dded2b2f9833e
Last active November 23, 2016 19:19
applescript to toggle visiblity status of system/hidden files (sierra 10.12)
# for Sierra
try
set setting to (do shell script "defaults read com.apple.Finder AppleShowAllFiles")
on error line number num
set setting to 0
end try
if setting is equal to "0" then
set setting to 1
@alkalinecoffee
alkalinecoffee / gist:5f36973ba83c8860168d
Last active December 27, 2016 18:43
sublimetext config
{
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"copy_with_empty_selection": false,
"detect_indentation": false,
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns": [".svn", ".hg", "CVS"],
"ignored_packages":
[
"Vintage"
],