- rails new memeorama
- rails server
- rails generate scaffold meme name:string description:text picture:string
#!/usr/bin/env ruby | |
require 'httparty' | |
require 'blink1' | |
class PagerDuty | |
include HTTParty | |
TOKEN = "YOUR_PAGERDUTY_API_TOKEN" | |
PAGERDUTY_DOMAIN = "YOUR_PAGERDUTY_DOMAIN" | |
base_uri "https://#{PAGERDUTY_DOMAIN}.pagerduty.com/api/v1" |
require 'benchmark/ips' | |
require 'securerandom' | |
BIG_STRING = <<-EOS | |
{:event_id=>"c18ae35e83234021bb78d8ba8a8ef2da", :timestamp=>"2016-11-16T23:27:52", :time_spent=>nil, :level=>40, :platform=>"ruby", :sdk=>{"name"=>"sentry-raven", "version"=>"2.1.3"}, :contexts=>{:server_os=>{"name"=>"Darwin", "version"=>"Darwin Kernel Version 16.1.0: Thu Oct 13 21:26:57 PDT 2016; root:xnu-3789.21.3~60/RELEASE_X86_64", "build"=>"16.1.0", "kernel_version"=>"Darwin nodachi.local 16.1.0 Darwin Kernel Version 16.1.0: Thu Oct 13 21:26:57 PDT 2016; root:xnu-3789.21.3~60/RELEASE_X86_64 x86_64"}, :runtime=>{"name"=>"ruby", "version"=>"ruby 2.3.2p217 (2016-11-15 revision 56796) [x86_64-darwin16]"}}, :logger=>"", :culprit=>"benchmarks/benchmark.rb in / at line 10", :server_name=>"nodachi.local", :release=>"425c535", :environment=>"default", :modules=>{"rake"=>"11.3.0", "concurrent-ruby"=>"1.0.2", "i18n"=>"0.7.0", "minitest"=>"5.9.1", "thread_safe"=>"0.3.5", "tzinfo"=>"1.2.2", "activesupport"=>"5.0.0.1", "builder"=>"3.2.2", "erubis"=>"2 |
gem 'elasticsearch', '>= 1.0.15' | |
gem 'elasticsearch-model' | |
gem 'elasticsearch-rails' | |
gem 'patron' | |
gem 'faraday_middleware-aws-signers-v4' | |
gem 'searchkick' |
#!/usr/bin/env ruby | |
# | |
# for use with ugol's pomodoro app (https://github.com/ugol/pomodoro) and tmux | |
# use applescript to set the time | |
# How to use it: | |
# 1. Open preferences from the pomodoro app | |
# 2. Choose script | |
# 3. Set start, reset and end to: do shell script "/usr/local/bin/pomodoro reset" | |
# 4. set every 1 min to: do shell script "/usr/local/bin/pomodoro decrease" |
source "https://rubygems.org" | |
gem "octokit", "~> 2.0" | |
gem "json" | |
gem "recursive-open-struct" |
Floating serenely through a peaceful abyss, a sigh escapes; content. | |
A siren wails, you're jolted from your respite | |
/dev/xsdb1 is at 100% | |
A cacophony of alerts screech from the phone. | |
Upset is the fragile balance, failure cascades. | |
Was only a matter of time. | |
Get some coffee. | |
All you ping seems to crumble, machine after machine fall; a massacre of uptime. |
NOTE: this is out of date - refer to moby/moby#9694
Here is a preview build of two new features we’re working on concurrently: container grouping (docker groups
) and stack composition (docker up
). Together, they will eventually form a complete replacement for Fig.
(* Import and update your Pinboard bookmarks to DEVONthink | |
Based on work done by Christian Grunenberg on Mon Jan 23 2006, | |
Rafael Bugajewski to support Pinboard instead of Delicious on Sun Dec 19 2010 and | |
Andreas Zeitler on Sun Mar 03 2011 to display user feedback when finished. | |
By Sascha A. Carlin <https://sascha.carlin.de/> on 2018-03-07 to set the creation date of new record, show progress bar, use Pinboard Auth Token, use modification date of folder to fetch only recent items | |
Copyright (c) 2018. All rights reserved. *) | |
use framework "Foundation" |
def pascal_calc(row_num) | |
if row_num == 0 | |
return [1] | |
end | |
previous = pascal_calc(row_num - 1) | |
ret = [] | |
(previous.length - 1).times do |i| |