Skip to content

Instantly share code, notes, and snippets.

@just3ws
just3ws / conditionals.sh
Created March 7, 2014 04:02
Some checks for common env settings that are useful in ZSH scripts.
# checks (stolen from zshuery)
if [[ $(uname) = 'Linux' ]]; then
IS_LINUX=1
fi
if [[ $(uname) = 'Darwin' ]]; then
IS_MAC=1
fi
if [[ -x `which brew` ]]; then
@just3ws
just3ws / server version
Last active August 29, 2015 14:01
UGtastic Server Configuration
erver {
listen 80;
server_name ugtastic.com;
return 301 http://www.ugtastic.com$request_uri;
}
server {
listen 80;
# listen 443 default ssl;
@just3ws
just3ws / vagrant.yml
Created July 26, 2014 18:28
Coderwall Custom Developer Configuration for Vagrant
#
# This is a recommended settings if you use the `script/ide` Tmux configuration Coderwall development
#
# Custom Vagrant Settings [Example]
#
# This file allows the override of Vagrant settings.
# In order to use, create a copy named vagrant.yml
#
@just3ws
just3ws / heroku.log
Created August 5, 2014 19:21
ExecJS parsing error in production (can't repro in dev)
2014-08-05T19:19:50.312518+00:00 app[web.1]: URL: http://errbit.pre-history.com/locate/53e12e5589c5c39eff000392
2014-08-05T19:19:50.317455+00:00 app[web.1]:
2014-08-05T19:19:50.317459+00:00 app[web.1]: ActionView::Template::Error (Unexpected token: operator (<) (line: 23285, col: 0, pos: 793884)
2014-08-05T19:19:50.317461+00:00 app[web.1]:
2014-08-05T19:19:50.317463+00:00 app[web.1]: Error
2014-08-05T19:19:50.317466+00:00 app[web.1]: at new JS_Parse_Error (/tmp/execjs20140805-21-o7l23cjs:2357:10623)
2014-08-05T19:19:50.317468+00:00 app[web.1]: at js_error (/tmp/execjs20140805-21-o7l23cjs:2357:10842)
2014-08-05T19:19:50.317470+00:00 app[web.1]: at croak (/tmp/execjs20140805-21-o7l23cjs:2357:19067)
2014-08-05T19:19:50.317473+00:00 app[web.1]: at token_error (/tmp/execjs20140805-21-o7l23cjs:2357:19204)
2014-08-05T19:19:50.317475+00:00 app[web.1]: at unexpected (/tmp/execjs20140805-21-o7l23cjs:2357:19292)
@just3ws
just3ws / phantom_error.js
Created November 15, 2014 07:58
Error running Capybara Tests. UI works fine in browser but crashes when automated using PhantomJS
{"error"=>{"name"=>"Poltergeist.JavascriptError", "args"=>[[{"message"=>"TypeError: 'undefined' is not an object (evaluating 'jqXHR.responseJSON.join')", "stack"=>"TypeError: 'undefined' is not an object (evaluating 'jqXHR.responseJSON.join')
at http://127.0.0.1:51206/assets/application.js:12369
at http://127.0.0.1:51206/assets/application.js:3120
at http://127.0.0.1:51206/assets/application.js:3232
at http://127.0.0.1:51206/assets/application.js:9278 in done
at http://127.0.0.1:51206/assets/application.js:9686"}]]}}
@just3ws
just3ws / git-manage-changeable.sh
Created March 11, 2015 21:00
Toggle whether a file is changeable or unchangeable in a repo as well as list the unchangeable files.
git-assume-unchangeable () {
git update-index --assume-unchanged "$@"
}
git-assume-changeable () {
git update-index --no-assume-unchanged "$@"
}
git-show-unchangeable () {
git ls-files -v | grep -e "^[hsmrck]"
@just3ws
just3ws / keybase.md
Created March 13, 2015 15:23
Hi, my name is @just3ws

Keybase proof

I hereby claim:

  • I am just3ws on github.
  • I am just3ws (https://keybase.io/just3ws) on keybase.
  • I have a public key whose fingerprint is E399 41FC 8751 D07A F31F 5BD2 19FE 986E 901E 4A5F

To claim this, I am signing this object:

@just3ws
just3ws / toggle-assume-changeable.sh
Created May 20, 2015 14:19
Toggle a file from it's local changes being recognized by Git
git-assume-unchangeable () {
git update-index --assume-unchanged "$@"
}
git-assume-changeable () {
git update-index --no-assume-unchanged "$@"
}
git-show-unchangeable () {
git ls-files -v | grep -e "^[hsmrck]"
The original works were financially inert. They were posted out on the web for anyone to see them.
An artist sees the works, likes them.
Takes those selected works, enlarges, fine-tunes, prints, frames, and displays the works inside a context.
The artist then puts those pieces on display and for sale.
What is for sale?
@just3ws
just3ws / forwards_from_grannie.rb
Last active September 1, 2015 17:24
FW: FW: FW:
require 'forwardable'
class Said
attr_reader :msg
def initialize(msg = nil)
@msg = (msg || '').freeze
end
def loud_enough?