Skip to content

Instantly share code, notes, and snippets.

View serra-allgood's full-sized avatar

Serra Allgood serra-allgood

View GitHub Profile

Keybase proof

I hereby claim:

  • I am serra-allgood on github.
  • I am jump_spider (https://keybase.io/jump_spider) on keybase.
  • I have a public key ASB_EKzTLaiNM7fsVXTAWRBaKXzrva3hcTFG7dE8c1ckKgo

To claim this, I am signing this object:

@serra-allgood
serra-allgood / blockstack.txt
Last active June 13, 2019 06:51
Blockstack verification
Verifying my Blockstack ID is secured with the address 1C56nWHjFfsDFpap1VTHumjs56av4RpZBw https://explorer.blockstack.org/address/1C56nWHjFfsDFpap1VTHumjs56av4RpZBw
@serra-allgood
serra-allgood / clear_dev_logs.rb
Created July 18, 2014 16:32
Truncates development.log if it's larger than 1 MB
# Cool little gist obtained from Leif Ringstad at his blog bitelem.com
if Rails.env.development?
MAX_LOG_SIZE = 1.megabytes
DEV_LOG_FILE = File.join(Rails.root, "log", "development.log")
if File.size?(DEV_LOG_FILE).to_i > MAX_LOG_SIZE
$stdout.puts "-----------------------------------------------------"
$stdout.puts "Truncating development.log..."
$stdout.puts "-----------------------------------------------------"