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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts] | |
"Segoe UI (TrueType)"="-segoeui.ttf" | |
"Segoe UI Black (TrueType)"="-seguibl.ttf" | |
"Segoe UI Black Italic (TrueType)"="-seguibli.ttf" | |
"Segoe UI Bold (TrueType)"="-segoeuib.ttf" | |
"Segoe UI Bold Italic (TrueType)"="-segoeuiz.ttf" | |
"Segoe UI Emoji (TrueType)"="-seguiemj.ttf" | |
"Segoe UI Historic (TrueType)"="-seguihis.ttf" |
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
const fs = require('fs'); | |
const Canvas = require('canvas'); | |
var offset = { top: {x: 0, y: 0}, bottom: {x: 250, y: 130} }; | |
var actualWidth = { top: 0, bottom: 0 }; | |
if (process.argv.length < 3) { | |
console.error('Usage: 5000choyen.js "text1" ["text2"]'); | |
process.exit(1); | |
} |
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
# Serving Random Payloads with NGINX | |
# add set_random module https://github.com/openresty/set-misc-nginx-module#set_random | |
# edit file /etc/nginx/sites-enabled/default | |
set_random $uri 1 3; | |
map $uri $payloads { | |
1 /payload.lnk; | |
2 /payload.hta; | |
3 /payload.exe; |
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
// TUPLE MICRO-BENCHMARKS, based on https://www.dotnetperls.com/tuple-keyvaluepair | |
// | |
// Tuples are generally fastest. | |
// ValueTuple is fastest in the particular case of GetHashCode. | |
// KeyValuePair is always worst. | |
// | |
// | |
// RAW RESULTS | |
// Numbers in milliseconds (lower is better) | |
// |
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
<?php | |
/** | |
* Dirty, dirty Reddit bot: Decronym | |
*/ | |
class Reddit { | |
const USERNAME = 'Decronym'; | |
const PASSWORD = '***'; | |
const CLIENTID = '***'; | |
const SECRET = '***'; |
Following are instructions on how to use the Internet Archive command-line tool, "ia", to download a collection from Archive.org and keep it synced. The only requirements are that you have Python 2 installed on a Unix-like operating system (i.e. Mac OS X, Linux).
- Download the latest binary of the
ia
command-line tool:
If field type is message, what should getter return if it is not set?
Proto2 specification does not define default value for message type, it is defined only for scalar types:
If the default value is not specified for an optional element, a type-specific