- Chrome/ium or Firefox
- Metamask
a. Setting up Metamask
// Sometimes it's necessary to do a bit of clean-up | |
Array.prototype.forEach.call(document.querySelectorAll('.js-comment-delete button'), function(el, i) { | |
el.removeAttribute('data-confirm'); | |
el.click(); | |
}); |
#!/bin/sh | |
# put this file in /etc/network/if-up.d/ | |
if iwconfig wlp4s0 | grep -c "ESSID:\"WIFIonICE\"" | |
then | |
curl -s "https://www.ombord.info/hotspot/hotspot.cgi?connect=&method=login&realm=db_advanced_wifi" | |
fi |
a. Setting up Metamask
namespace :optimization do | |
desc "Provide DB vacuum for production environment" | |
task :vacuum => :environment do | |
begin | |
tables = ActiveRecord::Base.connection.tables | |
tables.each do |table| | |
ActiveRecord::Base.connection.execute("VACUUM FULL ANALYZE #{table};") | |
end | |
rescue Exception => exc | |
Rails.logger.error("Database VACUUM error: #{exc.message}") |
def alert(color=:default, message) | |
colors = {default: 0, black: 30, red: 31, green: 32, orange: 33, blue: 34, magenta: 35, teal: 36, white: 37} | |
$stdout.puts "----\e[#{colors[color]}m#{message}\e[0m----" | |
end | |
alert :red, 'before all tests' | |
at_exit { alert :red, 'after all tests' } | |
require 'minitest/autorun' |
FROM golang:1.14-alpine | |
COPY . /go/src/app | |
WORKDIR /go/src/app | |
RUN go get -v -d | |
RUN go install | |
CMD ["app"] |
#!/bin/sh | |
# qemu-img create -f qcow2 mac_hdd.img 64G | |
# echo 1 > /sys/module/kvm/parameters/ignore_msrs | |
# | |
# Type the following after boot, | |
# -v "KernelBooter_kexts"="Yes" "CsrActiveConfig"="103" | |
# | |
# printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256)) | |
# |
Draw | Numbers | Complementary # | |
---|---|---|---|
1979-03-31 | [2, 8, 17, 19, 21, 40] | 1 | |
1979-03-24 | [3, 0, 5, 16, 35, 36] | 37 | |
1979-03-17 | [0, 5, 6, 12, 19, 29] | 39 | |
1979-03-10 | [12, 18, 2, 0, 25, 35] | 38 | |
1979-03-03 | [3, 4, 11, 21, 27, 32] | 37 | |
1979-02-24 | [5, 6, 14, 24, 34, 36] | 26 | |
1979-02-17 | [5, 9, 17, 18, 20, 28] | 29 | |
1979-02-10 | [6, 11, 18, 27, 32, 40] | 13 | |
1979-02-03 | [6, 13, 23, 32, 36, 39] | 9 |
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso