This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p = Enumerator.new { |y| o = (31..36).to_a-[34]; loop { y << o.first; o.shuffle! } } | |
c = ->(l) { "\e[1;5;#{p.next}m#{l}\e[0m" } | |
r = ->(s) { s.gsub(/\S/) { |l| c[l] } } | |
puts nil, "\t\e[34m<#{19479728.to_s(36)}>\e[0m#{r["#{[16712,8265].pack("s*")}#{ENV["USER"].upcase}"]}\e[34m</#{19479728.to_s(36)}>\e[0m", nil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# What I expect it to be corrected to: | |
# | |
# something = begin | |
# raise "thing" | |
# rescue => e | |
# p e | |
# end | |
# What it's actually corrected to (standard gem v0.4.7) | |
something = begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module GivenWhenThen | |
module ClassMethods | |
def def_Given(name, *args, &block) | |
_gwt_define(:Given, name, *args, &block) | |
end | |
def def_When(name, *args, &block) | |
_gwt_define(:When, name, *args, &block) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To configure mariadb@10.2 on macOS under homebrew. | |
# Stick in /usr/local/etc/my.cnf.d/override.cnf | |
[mysqld] | |
# Only allow connections from localhost | |
bind-address = 127.0.0.1 | |
innodb_file_per_table = ON | |
innodb_flush_method=O_DIRECT | |
innodb_log_file_size=50M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script src="https://unpkg.com/stimulus/dist/stimulus.umd.js"></script> | |
<script> | |
(() => { | |
const inactivityController = class extends Stimulus.Controller { | |
connect() { | |
this.timeoutInterval = parseInt(this.data.get("timeout")) | |
this.redirectDestination = this.data.get("destination") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script src="https://unpkg.com/stimulus/dist/stimulus.umd.js"></script> | |
<script> | |
(() => { | |
const counterController = class extends Stimulus.Controller { | |
static get targets() { | |
return [ "count" ] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt update | |
apt full-upgrade -y | |
curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | bash | |
readonly optargs="$*" | |
cat >/etc/systemd/system/hab-sup.service <<EOF | |
[Unit] | |
Description=The Habitat Supervisor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
↳ caius$ deploy --demo --dry-run | |
🎉🎉 Deploying to demo.uk, demo.tx 🎉🎉 | |
⚛️ Checking deploy dependencies are installed | |
✅ dependencies fine | |
⚛️ Checking deploy can proceed | |
✅ proceeding | |
👍🏻 DRY RUN: Exiting now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Unique headers | |
GNU "Terry Pratchett", Terry Pratchett | |
GNU #1 | |
GNU Aaron Swartz | |
GNU Aaron Swartz, Boris Floricic, Wau Holland, Stephen Hawking | |
GNU Arthur William Bell III, Natalie Nguyen, Terry Pratchett, Chris Long, Howard Gobioff | |
GNU Douglas Adams, Terry Pratchett, Lester Haines | |
GNU GNU: Terry Pratchett, Jon Postel, Dennis Ritchie, Evi Nemeth, Ray Tomlinson, Evelyn Berezin | |
GNU Jerry Jackowski, Natalie Nguyen | |
GNU John Dearheart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| backup1 | RUNNING | 10.0.0.99 (eth0) | 2a02:8010:62f1:2:216:3eff:fe50:6cec (eth0) | PERSISTENT | 0 | | |
| | | 10.0.0.98 (eth0) | | | | | |
| | | 10.0.0.95 (eth0) | | | | | |
| | | 10.0.0.93 (eth0) | | | | | |
| | | 10.0.0.92 (eth0) | | | | | |
| | | 10.0.0.90 (eth0) | | | | | |
| | | 10.0.0.9 (eth0) | | | | | |
| | | 10.0.0.89 (eth0) | | | | | |
| | | 10.0.0.88 (eth0) | | | | | |
| | |