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 ( | |
"context" | |
"fmt" | |
"net" | |
"os/exec" | |
"strconv" | |
"strings" | |
"sync" |
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
# See https://github.com/ebekker/ACMESharp/wiki/Quick-Start for background | |
# Could be enhanced by putting YOUR_CF_API_KEY and YOUR_EMAIL in environment vars | |
# Usage: | |
# > cf-update-dns-txt.ps1 -Domain example.com -Value vNx_fpLgvq0l4rqSATuxhxl9pa155SoeKvNZ98AFB_4 | |
param( [string]$domain, [string]$value ) | |
$headers = @{ | |
"X-Auth-Key" = "YOUR_CF_API_KEY" | |
"X-Auth-Email" = "YOUR_EMAIL" | |
"Content-Type" = "application/json" |
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
<NotepadPlus> | |
<UserLang name="Golang" ext="go" udlVersion="2.1"> | |
<!-- | |
NPP Syntax Highlight for Go | |
using most used color in NPP for Golang. | |
Author: blinksmith Version: 0.1.3 | |
Last tested in Notepad++ v7.5.9 | |
Quick start : | |
Method 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
## | |
# WHOIS servers for new TLDs (http://www.iana.org/domains/root/db) | |
# Current as of 2015-09-12 | |
## | |
\.abbott$ whois.afilias-srs.net | |
\.abogado$ whois-dub.mm-registry.com | |
\.ac$ whois.nic.ac | |
\.academy$ whois.donuts.co | |
\.accountant$ whois.nic.accountant |
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
# Show message box popup. | |
Add-Type -AssemblyName System.Windows.Forms | |
$result = [System.Windows.Forms.MessageBox]::Show("My message", "Window Title", [System.Windows.Forms.MessageBoxButtons]::OK, [System.Windows.Forms.MessageBoxIcon]::None) | |
# Show input box popup. | |
Add-Type -AssemblyName Microsoft.VisualBasic | |
$inputText = [Microsoft.VisualBasic.Interaction]::InputBox("Enter some value:", "Window Title", "Default value") | |
# Show an Open File Dialog and return the file selected by the user. | |
function Read-OpenFileDialog([string]$InitialDirectory, [switch]$AllowMultiSelect) |
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
var $jscomp = {scope:{}, getGlobal:function(a) { | |
return "undefined" != typeof window && window === a ? a : "undefined" != typeof global ? global : a; | |
}}; | |
$jscomp.global = $jscomp.getGlobal(this); | |
$jscomp.initSymbol = function() { | |
$jscomp.global.Symbol || ($jscomp.global.Symbol = $jscomp.Symbol); | |
$jscomp.initSymbol = function() { | |
}; | |
}; | |
$jscomp.symbolCounter_ = 0; |
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 ( | |
"fmt" | |
"os" | |
"crypto/tls" | |
"crypto/x509" | |
) | |
func main() { | |
var rsaCertPEM = [] byte(`-----BEGIN CERTIFICATE----- | |
MIICEzCCAXygAwIBAgIQMIMChMLGrR+QvmQvpwAU6zANBgkqhkiG9w0BAQsFADAS |
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" | |
) | |
func main() { | |
http.Handle("/", http.FileServer(http.Dir("."))) | |
http.ListenAndServe(":8080", nil) | |
} |
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
// ==UserScript== | |
// @name google search url cleaner | |
// @author blinksmith | |
// @version 0.1 | |
// @namespace https://gist.github.com/713fa531972fab77e5ad | |
// @description google search url cleaner | |
// @include https://encrypted.google.com/?* | |
// @include http://www.google.*/search?* | |
// @include https://www.google.*/search?* | |
// @grant none |
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
/* | |
* To Title Case 2.1 – http://individed.com/code/to-title-case/ | |
* Copyright © 2008–2013 David Gouch. Licensed under the MIT License. | |
*/ | |
/* | |
* modifications by @rvagg Apr-2014 | |
*/ | |
/* |
NewerOlder