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
### Keybase proof | |
I hereby claim: | |
* I am klinkby on github. | |
* I am klinkby (https://keybase.io/klinkby) on keybase. | |
* I have a public key whose fingerprint is F9D7 19F6 A0A0 0278 FFB3 3AF0 BC98 741A 9997 9D59 | |
To claim this, I am signing this object: |
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
function QueryString(qs) { | |
var re = /([^&=]+)=([^&]*)/g, | |
m; | |
while (m = re.exec((qs || location.search).substring(1))) { // skip the question mark | |
this[decodeURIComponent(m[1])] = decodeURIComponent(m[2]); | |
} | |
} | |
QueryString.prototype.toString = function () { | |
var ser = "?"; |
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
(ContentTypeId:0x0104*) (contentclass:STS_ListItem) (Path:{SiteCollection.URL}) NOT (ExpirationTime<{Today}) | |
OOB on O365 |
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
# | |
# This is a VCL file for Varnish used with @TryGhost blog. | |
# It rewrites Wordpress-style /yyyy/mm/dd/slug urls | |
# to /slug and /rss20.xml to Ghost's /rss/ | |
# Adds 60 mins cachability to pages, adds AMP Project CSP header and a few other | |
# security headers giving the site an A+ on https://securityheaders.io/ | |
# Marker to tell the VCL compiler that this VCL has been adapted to the | |
# new 4.0 format. |
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
#!/bin/bash | |
sudo docker pull nginx:alpine | |
sudo docker pull jwilder/docker-gen | |
sudo docker pull jrcs/letsencrypt-nginx-proxy-companion | |
sudo docker pull zzrot/alpine-ghost | |
wget https://raw.githubusercontent.com/jwilder/nginx-proxy/master/nginx.tmpl | |
sudo cp nginx.tmpl /volumes/proxy/templates/ |
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
#!/bin/sh | |
curl 'http://192.168.1.1/log/in?un=admin&pw=SECRET&rd=%2Fuir%2Fstatus.htm&rd2=%2Fuir%2Fwanst.htm&Nrd=1' --user-agent 'Mozilla/4.0' --header 'Connection: keep-alive' --header 'Accept: text/html' --cookie-jar /tmp/cookiejar.txt | |
sleep 1 | |
curl 'http://192.168.1.1/uir/rebo.htm?Nrd=0&ZT=1489819874729' --user-agent 'Mozilla/4.0' --header 'Connection: keep-alive' --header 'Accept: text/html' --cookie /tmp/cookiejar.txt | |
rm /tmp/cookiejar.txt |
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
/** | |
* NAV client control with a simple multiline text box | |
* Exposes the following methods: | |
* GetText() : string | |
* SetText(string) | |
* GetReadOnly() : boolean | |
* SetReadOnly(boolean) | |
* | |
* And the following events: | |
* Blur |
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
(function () { | |
"use strict"; | |
var t = performance.timing, | |
t1 = t.navigationStart, | |
arr = [t.responseEnd - t1, t.domContentLoadedEventStart - t1, t.loadEventEnd - t1], | |
storage = sessionStorage, | |
storageKey = "perf-coll", | |
coll = JSON.parse(storage.getItem(storageKey) || "[]"), | |
serialized; | |
coll.push(arr); |
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
function Get-Spreadsheet { | |
param( | |
[Parameter(Mandatory = $true)] | |
[ValidateScript({ Test-Path $_ -PathType Leaf })] | |
[string]$Path | |
) | |
try { | |
[DocumentFormat.OpenXml.Packaging.SpreadsheetDocument] | Out-Null | |
} | |
catch { |
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 apt-get update | |
sudo apt-get dist-upgrade | |
sudo apt-get install boinc-client | |
sudo /etc/init.d/boinc-client restart | |
boinccmd --project_attach https://boinc.bakerlab.org/rosetta/ {your-weak-key-here} | |
boinccmd --set_run_mode always | |
boinccmd --set_network_mode always | |
boinccmd --get_simple_gui_info |
OlderNewer