- My yubikey GPG key is on Keybase.io so this imports it locally:
curl https://keybase.io/mecrawlings/key.asc | gpg --import
- Once I have the key locally I need to trust it:
gpg --edit-key <keyid>
| require 'csv' | |
| file = "path/to/file" | |
| CSV.open("tmp/schools_mp.csv", "wb") do |csv| | |
| csv << School.attribute_names | |
| School.includes(:local_authority, :local_authority_district).select(&:condition?).each do |school| | |
| csv << school.attributes.values | |
| end | |
| end |
sudo ln -s /usr/lib/libSystem.B.dylib /usr/local/lib/libgcc_s.10.4.dylib
pg_ctl -D /usr/local/var/postgres start && brew services start postgresqlpsql postgrescreateuser -s postgrespsql postgres - check 'postgres' user is listedSave and open the page:
Capybara.save_and_open_page
| require 'benchmark' | |
| def print_memory_usage | |
| memory_before = `ps -o rss= -p #{Process.pid}`.to_i | |
| yield | |
| memory_after = `ps -o rss= -p #{Process.pid}`.to_i | |
| puts "Memory: #{((memory_after - memory_before) / 1024.0).round(2)} MB" | |
| end |
| sudo ln -s /usr/lib/libSystem.B.dylib /usr/local/lib/libgcc_s.10.4.dylib |
I hereby claim:
To claim this, I am signing this object:
| // Private | |
| let two = 2 | |
| // fucntion | |
| function sum(x, y) { | |
| return x + y | |
| } | |
| // arrow, has to be assigned | |
| const multiply = (x,y) => x * y |