Boot up with an Fedora Live USB stick.
- Run
vgs
to check if there's any space:
$ sudo vgs
VG #PV #LV #SN Attr VSize VFree
fedora 1 3 0 wz--n- <237.28g 0
# app/models/application_record.rb | |
class ApplicationRecord < ActiveRecord::Base | |
self.abstract_class = true | |
# When true, the database automatically switches connections | |
@@auto_switch_connection = true | |
# returns the name of the read replica if one is defined in database.yml, otherwise returns :primary | |
def self.reading_db |
Homebrew build logs for crystal-lang on 4.16.15-300.fc28.x86_64 | |
Build date: 2018-06-18 16:32:06 |
module MadBomber | |
module Kernel | |
# When if and unless seem too black and white, use maybe | |
# | |
# Usage: | |
# | |
# maybe(some_condition, 50) do | |
# puts "When some_condition is true, 50% of the time print this message" | |
# end |
#!/bin/env ruby | |
########################################### | |
### | |
## File: normalize_pathnames.rb | |
## Desc: renames directory and file names such that any | |
## embedded special characters are translated to an underscore. | |
# | |
$debug = ARGV.include?('-d') || ARGV.include?('--debug') | |
$changed = 0 |
#!/bin/env ruby | |
############################################### | |
## extract_fav_gems.rb | |
## An html file obtained from twitter.com is passed | |
## on the command line. The file is the favorite tweets | |
## of a specific user. Tweets from RubyGems are reviewed | |
## abd the gem name extracted. If the gem is not currently | |
## installed it will be nominated for installation. Gems | |
## are not installed automatically. The gem install command | |
## line containing the nominated gems is printed to stdout |
######################################################################## | |
## debug_web_service.rb | |
## A sinatra web application provides an embedded web service for setting | |
## global variables that include 'debug' in their name | |
## | |
## Usage: | |
## Inside of an event-machine run loop (if Thin is used) or in a new Thread do this ... | |
## | |
## DebugWebService::Gui.run!( :ip => '0.0.0.0', :port => 4567 ) | |
## |
#!/bin/env ruby | |
############################################################################ | |
## summarize_all_gems.rb | |
class NilClass | |
def split(*args) | |
[" "] | |
end | |
def strip | |
"" |
################################################## | |
## debug_me.rb | |
## A tool to print the labeled value of variables. | |
## Works with local, instance and class variables. | |
## Example usage: | |
=begin | |
debug_me # Prints only the header banner consisting of tag, method name, file name and line number | |
debug_me('INFO') # Also prints only the header but with a different tag | |
debug_me {} # prints the default header and __ALL__ variables | |
debug_me {:just_this_variable} # prints the default header and the value of only one specific variable |