- WA-4929 / NF-18593 was merged and Michael verified it.
- Made good progress on NF-14938:
- Changed the designation/requirements job introduced in WA-4929 to work by applicant to not double process requirements owned by multiple programs and to take advantage of more eager loading and caching.
- Found out that the join table between programs and requirements allows duplicates, and actually there are 428k join records but only 64k of them are unique. Without doing anything, we would be processing records based on the extra joins so I made sure we were only processing unique jobs.
- Made a "performance" / integration type test that performs the job and counts the number of SQL queries executed since it's a good
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
sudo route add -host irc.freenode.net gw 192.168.1.1 |
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
#!/usr/bin/env bash | |
# Step 5b. (for Network Connection) Configure your printer on the cups web interface | |
# 5b-1. Open a web browser and go to "http://localhost:631/printers". | |
# 5b-2. Click "Modify Printer" and set following parameters. | |
# | |
# - "LPD/LPR Host or Printer" or "AppSocket/HP JetDirect" for Device | |
# - lpd://192.168.1.8/binary_p1 for Device URI | |
# - Brother for Make/Manufacturer Selection | |
# - Your printer's name for Model/Driver Selection |
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
# Throttle LO interface | |
sudo tc qdisc add dev lo root handle 1: htb default 12 | |
sudo tc class add dev lo parent 1:1 classid 1:12 htb rate 20kbps ceil 20kbps | |
sudo tc qdisc add dev lo parent 1:12 netem delay 1000ms | |
# Go back to the way things were. | |
sudo tc qdisc del dev lo root |
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
require 'tempfile' | |
t = Tempfile.new | |
t.write('data') | |
t.close # comment out to see difference | |
if File.open(t.path).read == 'data' | |
puts 'Tempfile was complete' | |
else |
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
#!/usr/bin/env bash | |
# Exit on any error (non-zero return code) | |
set -e | |
# Create swapfile of 2GB with block size 1MB | |
/bin/dd if=/dev/zero of=/swapfile bs=1024 count=2097152 | |
# Set up the swap file | |
/sbin/mkswap /swapfile |
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
#!/usr/bin/env ruby | |
# Usage: | |
# To search for all occurrences in history of text "perform" in app/models/model.rb: | |
# | |
# git search-file-history perform app/models/model.rb | |
# | |
# TODO: A good future enhancement would be to show the commit right after the last occurrence, to see where it was removed. | |
# | |
text, filename = ARGV |
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
require "test_helper" | |
require "support/matchers/scopes" | |
require "support/double_helpers" | |
describe Applicant do | |
it do | |
deprecation_warnings_for_file('app/models/applicant.rb').length.must_equal 0 | |
end | |
private |
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
tail -f staging.log | awk '/10.10.14.210/,/Completed/' | tee ip_address.log |
NewerOlder