Skip to content

Instantly share code, notes, and snippets.

View askl56's full-sized avatar
😡
I may be slow to respond.

Andrew Scott askl56

😡
I may be slow to respond.
View GitHub Profile
# content has to be in .config/fish/config.fish
# if it does not exist, create the file
setenv SSH_ENV $HOME/.ssh/environment
function start_agent
echo "Initializing new SSH agent ..."
ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV
echo "succeeded"
chmod 600 $SSH_ENV
. $SSH_ENV > /dev/null

Keybase proof

I hereby claim:

  • I am askl56 on github.
  • I am askl56 (https://keybase.io/askl56) on keybase.
  • I have a public key ASAOv54sj8tLTt1jzDz7F9BkTLDfgVL3St6IADO7RjW6Ygo

To claim this, I am signing this object:

1) Counter outputs the 'File checked' output
Failure/Error: expect { subject.call }.to output("File checked: test_files/test-1.txt").to_stdout
expected block to output "File checked: test_files/test-1.txt" to stdout, but output "File checked: test_files/another-test.txt\nRange: 1000..10000\nPalindromes: 90\n========================\n\nFile checked: test_files/example.txt\nRange: 1..100\nPalindromes: 18\n========================\n\nFile checked: test_files/test-1.txt\nRange: 1034567..2888888\nPalindromes: 1854\n========================\n\nFile checked: test_files/test-2.txt\nRange: 11200000..11300000\nPalindromes: 10\n========================\n\n"
Diff:
@@ -1,2 +1,20 @@
+File checked: test_files/another-test.txt
+Range: 1000..10000
+Palindromes: 90
+========================
@askl56
askl56 / log
Created October 10, 2015 13:35
[14:16:36] Diabolik: what's the best way in a routes file of routing my show action to another url, e.g. 'capacity'
[14:16:40] Diabolik: atm i have
[14:16:51] Diabolik: resource :capacity, controller: 'providers/installer_capacity', only: [:show, :update]
[14:16:54] Diabolik: in my routes file
[14:16:54] Diabolik: then
[14:17:09] Diabolik: render :capacity
[14:17:12] Diabolik: in my show action
[14:17:17] Diabolik: but obviously that makes it difficult to test
<html>
...
<script src="https://metrik.herokuapp.com/scripts/_blocmetrics.js"></script>
...
</html>