This file contains hidden or 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 ( | |
"context" | |
"log" | |
"sync" | |
"time" | |
) | |
type abTestVariant struct{} |
This file contains hidden or 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
// Given a bson MongoDB query | |
q := bson.M{ | |
"$match": bson.M{ | |
"skill": bson.M{ | |
"$regex": "^cookie", | |
"$options": "-i", | |
}, | |
}, | |
} | |
// The following script will convert it into JSON |
This file contains hidden or 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
grep -r -P '[^\x00-\x7f]' /etc/apache2 /etc/letsencrypt /etc/nginx |
This file contains hidden or 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
# Auth is required | |
wget --no-cookies --header "Cookie: XSRF-TOKEN=token; laravel_session=session" --recursive --no-clobber --page-requisites --html-extension --convert-links --domains example.com --no-parent --reject-regex=example.com/logout http://example.com | |
# No auth | |
wget --no-cookies --no-clobber --page-requisites --html-extension --convert-links --domains example.com --no-parent http://example.com/ | |
This file contains hidden or 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
PUT _snapshot/backup1 | |
{ | |
"type": "gcs", | |
"settings": { | |
"bucket": "codersrank", | |
"base_path": "backup" | |
} | |
} |