I hereby claim:
- I am blackthornyugen on github.
- I am jsteel (https://keybase.io/jsteel) on keybase.
- I have a public key whose fingerprint is 9E51 C6A0 D9A7 2863 28EA 1013 A356 539D 1BAA 7B27
To claim this, I am signing this object:
| /*\ A JS version of Conway's Game of Life v0.14 | |
| |*| | |
| |*| Revision History | |
| |*| 2013-12-30 - 1605: Setup countElementsFrom to keep track of coords. | |
| |*| 2013-12-30 - 1743: Added statics on hover. | |
| |*| 2014-01-02 - 0433: Began refactoring code to OOP. | |
| |*| 2014-01-02 - 0606: Making signifigent changes to scope on events. | |
| |*| 2014-01-02 - 2157: Changing code logic to optimize speed. Current method is extreamly wastefull. Checking ajacent cells of cells that are no where near living cells. | |
| |*| 2014-01-03 - 1240: Milestone .12 got it mostly working but auto-step needs to be a seperate function. | |
| |*| 2014-01-04 - 1309: Built autostep dealie. |
| function LinkList(){ | |
| var _first = null; | |
| var _last = null; | |
| var _length = 0; | |
| this.add = function(element){ | |
| if(_length === 0){ | |
| _last = _first = {element: element, prev:null, next:null}; | |
| } else { | |
| _last = _last.next = {element: element, prev: _last, next:null}; |
I hereby claim:
To claim this, I am signing this object:
The following API specification is for Assignment #1 in PROG3170 - Programming: Distributed Apps Development due October 1, 2015.
| #!/usr/bin/env bash | |
| DUCKPATH=~/duckdns | |
| TOKEN=changeme | |
| DOMAINS=steelcomputers | |
| curl -sSv "https://www.duckdns.org/update?domains=${DOMAINS}&token=${TOKEN}&ip=" \ | |
| 2>> ${DUCKPATH}/stderr.log \ | |
| >> ${DUCKPATH}/stdout.log | |
| printf ' - ' >> ${DUCKPATH}/stdout.log | |
| date >> ${DUCKPATH}/stdout.log |
| #!/usr/bin/env bash | |
| FILTER_YUBIKEY='/Yubikey/{print;getline;getline;print;getline;print}' | |
| EXPECTED_YUBI_MD5="1a067fac7f6915a0acd5a235876fd33e" # Hash of USB Device | |
| LONG_POLL_TIME=3 # Poll time after locking | |
| SHORT_POLL_TIME=1 # Poll time while waiting for yubikey to disconnect | |
| ARMED=0 | |
| DATESTRING=%Y-%m-%d\ %H:%M:%S.000 | |
| do_screen_saver() { | |
| echo "`date \"+${DATESTRING}\"` locking screen" |
| /* | |
| * Sending an email using kotlin and Apache Commons Email | |
| * | |
| * Usage: java -jar app.jar <user> <password> <from> <to> <cc> | |
| */ | |
| package main.kotlin.sendmail | |
| import org.apache.commons.mail.Email | |
| import org.apache.commons.mail.EmailException | |
| import org.apache.commons.mail.HtmlEmail |
| #!/usr/bin/env bash | |
| # Need a recent openssl to use -6 option (sha512). Either update openssl or change to -1 or similar if it doesn't work | |
| shuf -n30 /usr/share/dict/words | tr '\n' ' ' | fold -s -w 48 | tr ' ' ';' | openssl passwd -6 -noverify -table -stdin | |
| # Example Output: | |
| #carrotwood;sacerdotalist;unfallible;homeliness; $6$xGj40hGX9L0NyToC$hqPn25jIFzS2vzfEVpsmzbDe3XeXtUkTJPHKBO7SI6FTkub4gqUWq5dpB8wfqkEoQClTmWkuiuN8K8eYIcfXL1 | |
| #schoolteaching;moule;malesherbiaceous; $6$//mFpIknpKEToVt1$cyNLuPOsvPCW5KzJiS86rKKfonl8PBG0B/Xf5bLwiEvdcm64OX0jqwbhIxjOjrTejxUcB0ys.B0kdBLasb8l/. | |
| #hypsophonous;ungroundedness;did;sapek; $6$NA29jYnRwQ1Tstlh$AW0NoJSKXCIiBo86FB9TKmD0aS67fcdtc.x8.VjeGgj287EuREkDWRmh/cxArFs8rGSM5eDPVC0kYyn52DlpX0 | |
| #strepsinema;Thackerayana;camelman; $6$tze4YcdZgPo6e18o$PtsCCwvbkEuvfQoOnPH8ZErQeoGE8/PQvOhdkYioP687ZAujRbtK.IpKLSfVPM6tvsTkN9Z1qjrbssioezG1S. | |
| #amyelencephalia;creeded;city;Triodon;oosporic; $6$Jh/vWDP3BM5Wah/X$CVfCUvFVVXQRBdGPo0x8YiIlLm0mm/4uadaHP39tCITxij8T98HMtVD9khCrVce0D.7AaC1cetiOlX/BF3IG.. |
| # Make a neato jq filter that just gives us question and answer sections. | |
| JQ_FILTER='.[].message.response_message_data | [.QUESTION_SECTION[], ( .ANSWER_SECTION[]? | split(" ")[-1])]' | |
| # What are my name servers for each of these? | |
| for domain in jskw jsteel jsteelkw ; do for tld in ca dev ; do dig ${domain}.${tld} +yaml -tns | yq $JQ_FILTER ; done ; done # SHOW NS | |
| [ | |
| "jskw.ca. IN NS", | |
| "ns-cloud-c4.googledomains.com.", | |
| "ns-cloud-c3.googledomains.com.", | |
| "ns-cloud-c2.googledomains.com.", |