Find main.scm and replace
(sleeper)
with
((λ () (get-block stdin 1)))
ruby_regex | |
# Capture groups | |
if /(hello) (world)/ =~ "hello world" | |
puts "#{$2} #{$1}" # => "world hello" | |
end | |
# Named groups | |
if /(?<domain>rubycademy)/ =~ 'https://www.rubycademy.com' | |
puts domain # => "rubycademy" |
Well it's a well-known fact sonny jim that there's a secret society of the five | |
wealthiest people in the world known as...The Pentaverate, who run everything in | |
the world, including the newspapers, and meet tri-annually at a secret country | |
mansion in colorado known as...The Meadows. The Queen, the Vatican, the Gettys, | |
the Rothchilds and Colonel Sanders before he went teats up. Oh I hated the colonel | |
with his wee beedy eyes and that smug look on his face `ohh you're gonna buy my | |
chicken ohhh` | |
- Dad how can you hate the colonel? | |
Because he puts an addictive chemical in his chicken that makes you crave it | |
fortnightly smart-arse! |
# This was probably encountered and overcome a long time ago, but I ran into it in my own Ruby dealings and thought maybe it could be an issue elsewhere: | |
# Ruby string encoding defaults to UTF-8, but String#strip doesn't alter its | |
# definition of whitespace to match the encoding | |
# https://ruby-doc.org/core-2.6.8/String.html#method-i-strip | |
# String#strip removes lead/trail whitespace defined as: '\x00\t\n\v\f\r ' | |
# null, horiz tab, line feed, vert tab, form feed, carriage return, & space | |
# This does not include unicode whitespace no matter the string's encoding, | |
# see Regexp for more info | |
# https://ruby-doc.org/core-2.6.8/Regexp.html#class-Regexp-label-Character+Classes |
Find main.scm and replace
(sleeper)
with
((λ () (get-block stdin 1)))
names = [ | |
["D'Marcus Williums", "1", "east", "University of Georgia"], | |
["T.J. Juckson", "1", "east", "Wayne State University"], | |
["T'varisuness King", "1", "east", "Merrimack College"], | |
["Tyroil Smoochie-Wallace", "1", "east", "University of Miami"], | |
["D'Squarius Green, Jr.", "east", "University of Notre Dame"], | |
["Ibrahim Moizoos", "1", "east", "University of Tennessee at Chatanooga"], | |
["Jackmerius Tacktheritrix", "1", "east", "Michigan State University"], | |
["D'Isiah T. Billings-Clyde", "1", "east", "Coastal Carolina University"], | |
["D'Jasper Probincrux III", "1", "east", "South Carolina State University"], |
curl -s -I $url | grep \^Location: | cut -d ':' -f 2- | |
# I had a longer version that continued following redirects up to a limit, but | |
# can't find it atm | |
# if you'd like to do the above anonymously, you can use https://hurl.it and | |
# change the HTTP method from GET to HEAD and paste in your URL (assuming HEAD | |
# is supported by the webserver). In the response you'll see the | |
# Location: HTTP header w/the redirected URL (assuming nominal situation). |
I just found this API ridiculously confusing to use, and maybe I just suck, but I don't want to figure it out again, so I'm writing it down here
Optional, but if you have an established gpg home dir that you want to use or you don't want it chosen for you
GPGME::Engine.home_dir = "/some/dir" # e.g. env['GNUPG_HOME']
sudo /etc/vmware-tools/services.sh restart
sudo /etc/vmware-tools/services.sh status
#!/bin/sh | |
# change this value to suit you, see below for further guidance | |
DESIRED_TIME_ZONE="US/Central" | |
# Note, if you were to get this value from an argument etc, keep | |
# in mind it would be vulnerable to command injection | |
# get timezone values from `ls /usr/share/zoneinfo` if you need them | |
# for example, you can see there's a /usr/share/zoneinfo/US/Central and | |
# /usr/share/zoneinfo/America/Chicago etc |