Skip to content

Instantly share code, notes, and snippets.

@rabidcarrot
rabidcarrot / keybase.md
Created October 5, 2016 23:12
Keybase ID

Keybase proof

I hereby claim:

  • I am rabidcarrot on github.
  • I am rabidcarrot (https://keybase.io/rabidcarrot) on keybase.
  • I have a public key whose fingerprint is DF89 12F5 02FC 4258 4D60 FF6E FAFD C11B B1FC F64F

To claim this, I am signing this object:

@rabidcarrot
rabidcarrot / latency.txt
Created June 4, 2012 04:15 — forked from jboner/latency.txt
Latency numbers every programmer should know
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD 150,000 ns 0.15 ms
Read 1 MB sequentially from memory 250,000 ns 0.25 ms
Round trip within same datacenter 500,000 ns 0.5 ms
* 63 seconds ago Mark Turnley Merge branch 'master' into production (https://github.com/envato/marketplace/commit/20da61f)
* 2 days ago Justin French Merge pull request #328 from envato/3720-thumbnails (https://github.com/envato/marketplace/commit/acea95e)
|\
| * 2 days ago Justin French clear the ItemSummary#thumbnail_url when deleted via the UI (https://github.com/envato/marketplace/commit/5fdb36f)
* | 2 days ago Justin French Merge pull request #325 from envato/3794-make-wordpress-theme-required (https://github.com/envato/marketplace/commit/75f3940)
|\ \
| |/
|/|
| * 3 days ago Justin French fix whitespace (https://github.com/envato/marketplace/commit/13536da)
| * 3 days ago Justin French fix specs to include the uploading of a valid WP theme zip (https://github.com/envato/marketplace/commit/809a633)
* 64 seconds ago Mark Turnley Merge branch 'master' into production (https://github.com/envato/marketplace/commit/db35000)
* 2 days ago Justin French Merge pull request #325 from envato/3794-make-wordpress-theme-required (https://github.com/envato/marketplace/commit/75f3940)
|\
| * 3 days ago Justin French fix whitespace (https://github.com/envato/marketplace/commit/13536da)
| * 3 days ago Justin French fix specs to include the uploading of a valid WP theme zip (https://github.com/envato/marketplace/commit/809a633)
| * 3 days ago Justin French validating what page your on is less confusing than checking the state of a DB record when things fail (https://github.com/envato/marketplace/commit/613369f)
| * 3 days ago Justin French REVIEW: fix API spec now that the wordpress theme attachment already exists (https://github.com/envato/marketplace/commit/9c76ce9)
| * 3 days ago Justin French blueprint fix for theme items (https://github.com/envato/marketplace/commit/4b6f64c)
| * 3 days ago Justin French m
@rabidcarrot
rabidcarrot / ree_upgrade_via_rvm
Created January 4, 2012 02:54
REE upgrade via rvm
$rvm list
rvm rubies
=> ree-1.8.7-2011.03 [ i686 ]
$rvm upgrade ree-1.8.7-2011.03 ree-1.8.7-2011.12
Are you sure you wish to upgrade from ree-1.8.7-2011.03 to ree-1.8.7-2011.12? (Y/n): y
Installing new ruby ree-1.8.7-2011.12
@rabidcarrot
rabidcarrot / deployment_output.txt
Created November 21, 2011 05:25
Output from Friday deployment of Proofing Queue
Mark-Turnleys-iMac:marketplace mturnley$ rake deploy:production
(in /Users/mturnley/currentWork/marketplace)
Running a fetch and fetch --tags so we have a local copy of everything on github
From github.com:envato/marketplace
- [tag update] green -> green
- [tag update] production_deployed -> production_deployed
Excellent. Local production is ahead of origin/production
Your production head is 4bcd12b, current production_deployed tag is 1b99ee9
@rabidcarrot
rabidcarrot / move_files.rb
Created September 20, 2011 04:01
moving files to folders for import based on model release mapping
require "rubygems"
require "fastercsv"
require "pp"
require "fileutils"
=begin
Command to be run in rails console post file moving and cleanup: ItemImport::Builder::GenericPhotoFtp.new('disorderly').import_all
=end
@rabidcarrot
rabidcarrot / output
Created July 19, 2011 05:55
Output of 'rake deploy:production
Mark-Turnleys-iMac:marketplace mturnley$ rake deploy:production
(in /Users/mturnley/currentWork/marketplace)
Running a fetch and fetch --tags so we have a local copy of everything on github
Excellent. Local production is ahead of origin/production
Your production head is 0cfb903, current production_deployed tag is 7e660fc
This is what you are trying to deploy:
* 60 seconds ago Mark Turnley Merge remote branch 'origin/master' into production (https://github.com/envato/marketplace/commit/0cfb903)