Install Xcode. Be sure to open it once an install the additional components.
Install Homebrew.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# app/assets/stylesheets/application.css | |
@import 'cookieconsent/build/cookieconsent.min.css'; | |
# In dev 200 | |
https://localhost:3000/assets/cookieconsent/build/cookieconsent.min.css | |
# In prod 404 |
#!/usr/bin/env ruby | |
# | |
# gem install cloudapp_api | |
# ruby cloud-delete.rb | |
# | |
EMAIL_ADDRESS = "**************" | |
PASSWORD = "**************" | |
ROOT = File.expand_path('../cloudapp-export', __FILE__) | |
PER_PAGE = 50 |
I hereby claim:
To claim this, I am signing this object:
# 1.install gource using HomeBrew | |
$ brew install gource | |
# 2.install avconv | |
git clone git://git.libav.org/libav.git | |
cd libav | |
# it will take 3-5 minutes to complie, be patient. | |
./configure --disable-yasm | |
make && make install |
require 'curb' | |
if ARGV[0].nil? || ARGV[1].nil? | |
puts "usage 'ruby checkfeed.rb FEEDURL TIMESTORUN'" | |
else | |
ttr = ARGV[1].to_i | |
x = 0 | |
while x < ttr | |
http = Curl.get(ARGV[0]) | |
puts http.total_time |
# Script to send push notifications for each song in a Phish Setlist via an updateable Push Notification. | |
# Place a config.yml in the same directory as the script and your push notification PEM file. | |
# | |
# Config Format: | |
# push_token: XXXXXXXXXXXXXX | |
# phish_api_key: XXXXXXXXXXXXXX | |
# push_mode: XXXXXXXXXXXXXX # development or production | |
require 'apnotic' |
#!/usr/bin/env ruby | |
# Example usage: | |
# curl https://api.twitter.com/1/statuses/show.json?id=231426135903305728 | jsonviewer.rb | |
# | |
require 'rubygems' | |
require 'awesome_print' | |
require 'json' |
#!/usr/bin/env ruby | |
# Example usage: | |
# curl https://api.twitter.com/1/statuses/show.json?id=231426135903305728 | jv.rb | |
# | |
require 'rubygems' | |
require 'awesome_print' | |
require 'json' |
Seeing errors like this? | |
" NoMethodError: undefined method `process_Reset_directive' for #<Sprockets::DirectiveProcessor:0x007fc96d8de918> (in ../app/assets/stylesheets/style.css.scss:1)02f assets\002f stylesheets\002f style.css.scss:1)" | |
"/gems/sprockets-2.0.0.beta.13/lib/sprockets/directive_processor.rb:191:in `block in process_directives'ctive_processor.rb:191:in `block in process_directives'" | |
Don't make comments like this: | |
/* =Something ----*/ |