brew update
brew install yarn
Add export PATH="$PATH:`yarn global bin`" to your profile
yarn start
Starts the development server.
yarn run build
Bundles the app into static files for production.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Restore heroku database backup | |
$ pg_restore --verbose --clean --no-acl --no-owner -h localhost -U myuser -d mydb latest.dump |
I hereby claim:
- I am mribica on github.
- I am mmr (https://keybase.io/mmr) on keybase.
- I have a public key whose fingerprint is 91CC E70B 7C12 AB24 13CB E72C 9E94 AC8F B57F 36FA
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use_bpm 130 | |
base = 70 | |
live_loop :theme do | |
use_synth :prophet | |
with_fx :distortion do | |
"2--2--5-2-5-4--2-4--1--1--".split("").each do |n| | |
sleep 0.5 and next if n == "-" | |
play base + n.to_i, amp: 1, cutoff: 90, sustain: 0.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "Starting Intruder" | |
sleep 3 | |
while true do | |
result = `ioreg -r -k AppleClamshellState -d 4 | grep AppleClamshellState | head -1` | |
lid_closed = result.split("=")[1].strip | |
puts "Closed #{lid_closed}" | |
if lid_closed == "No" | |
sleep 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'viewpoint' | |
class EmailExchange | |
attr_accessor :folder_name | |
def initialize username, password, ews_endpoint, exchange_folder_name, proxy | |
if not (proxy.nil? or proxy.empty?) | |
Viewpoint::EWS::EWS.set_trust_ca './owasp_zap_root_ca.pem' | |
end | |
Viewpoint::EWS::EWS.endpoint = ews_endpoint | |
Viewpoint::EWS::EWS.set_auth username,password |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew update | |
$ brew install rbenv | |
$ brew install ruby-build | |
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
$ env CFLAGS='-g -O2' RUBY_CONFIGURE_OPTS="--with-readline-dir=/usr/include/readline" rbenv install 2.0.0-p451 | |
$ rbenv global 2.0.0-p451 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
group :development, :test do | |
gem 'minitest-focus' | |
gem 'guard-minitest' | |
gem 'factory-girl-rails' | |
gem 'database-cleaner' | |
end | |
gem 'spring' | |
$ guard init minitest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :api, :defaults => {:format => :json} do | |
namespace :v1 do | |
resources :people | |
end | |
end |
NewerOlder