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
package main | |
import ( | |
"net/http" | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
) |
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
For PPTP: | |
IP Protocol=TCP, TCP Port number=1723 <- Used by PPTP control path | |
IP Protocol=GRE (value 47) <- Used by PPTP data path | |
For L2TP: | |
IP Protocol Type=UDP, UDP Port Number=500 <- Used by IKEv1 (IPSec control path) | |
IP Protocol Type=UDP, UDP Port Number=4500 <- Used by IKEv1 (IPSec control path) | |
IP Protocol Type=ESP (value 50) <- Used by IPSec data path | |
For SSTP: |
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
Thu Apr 28 20:15:29 UTC 2016 |
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 | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
find_files() { | |
find . -not \( \ | |
\( \ | |
-wholename '*/vendor/*' \ |
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 joshua on github. | |
* I am suggs (https://keybase.io/suggs) on keybase. | |
* I have a public key ASBRaw3Jul98kKZo14kLu0w5XzS5lvUCUtOLI8UAQ92R6wo | |
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
package main | |
import ( | |
"bytes" | |
"context" | |
"fmt" | |
"log" | |
"net" | |
"net/http" | |
"os" |
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 | |
case "${1}" in | |
"save") | |
# dump image tags so they can be restored later | |
echo "saving tags to image-tags.txt" | |
docker images | sed '1d' | awk '{print $1 " " $2 " " $3}' > allimages-tags.txt | |
# save all images to a single tar | |
echo "saving images to allimages.tar" |
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 getColumnNumberByName(name, sheet) { | |
if (!sheet) { | |
sheet = SpreadsheetApp.getActiveSheet() | |
} | |
var headers = sheet.getDataRange().offset(0, 0, 1).getValues()[0] | |
var column = false | |
for (var i = 0; i < headers.length; i++) { | |
if (headers[i].trim() === name) { |
OlderNewer