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
" http://recursivedream.com/blog/2012/auto-completing-google-contacts-in-vim/ | |
" Escape query and handle goobook errors | |
function! mailcomplete#Complete(findstart, base) | |
if a:findstart == 1 | |
let line = getline('.') | |
let idx = col('.') | |
while idx > 0 | |
let idx -= 1 | |
let c = line[idx] | |
" break on header and previous email |
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 noVNC Paste | |
// @include https://portal.arpnetworks.com/noVNC/console?* | |
// @version 1.0 | |
// ==/UserScript== | |
function sendString () { | |
var str = prompt("Please enter a string to paste"); | |
if (!str) | |
return; |
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 | |
PATH=/usr/local/bin:$PATH | |
PREFIX=`hostname -s` | |
format=%Y%m%d | |
DATE=`date +$format` | |
echo "Creating ${PREFIX}_$DATE" | |
tarsnap -cf ${PREFIX}_$DATE --quiet -X `dirname $0`/tarsnap-exclude / |
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
#!/usr/bin/python3 | |
try: | |
from configparser import RawConfigParser as ConfigParser | |
except ImportError: | |
from ConfigParser import ConfigParser | |
class T(ConfigParser): | |
def __init__(self, conf_dir=None): | |
ConfigParser.__init__(self, {"a": "False"}) |
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 -e | |
# Email used for registration and recovery contact. | |
EMAIL="" | |
BASEDIR="%%ETCDIR%%" | |
SSLDIR="%%PREFIX%%/etc/ssl/lego" | |
DOMAINSFILE="${BASEDIR}/domains.txt" | |
if [ -z "${EMAIL}" ]; then |
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
# generate two certificates | |
weekly_lego_certificates="one two" | |
# account for the certificates | |
weekly_lego_account="matt@matthoran.com" | |
# default flags if not overridden per certificate | |
weekly_lego_global_flags="--path /usr/local/etc/ssl/lego --email ${weekly_lego_account} --http --http.webroot /usr/local/www/acme" | |
weekly_lego_renew_flags="--days 30" |
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 Tarsnap Account Activity | |
// @namespace https://gist.github.com/mhoran/ | |
// @include https://www.tarsnap.com/manage.cgi?address=* | |
// @version 1.0 | |
// ==/UserScript== | |
by_machine_view = document.body.innerHTML.indexOf('usage by machine') > -1; | |
verbose_view = document.body.innerHTML.indexOf('account activity (verbose)') > -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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"os" | |
"time" | |
) | |
func main() { |
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
index d8e31a8..a0cfd53 100644 | |
--- a/CircuitBreaker/src/AspDotNet4/FortuneTeller/Fortune-Teller-UI4/appsettings.json | |
+++ b/CircuitBreaker/src/AspDotNet4/FortuneTeller/Fortune-Teller-UI4/appsettings.json | |
@@ -12,6 +12,9 @@ | |
} | |
}, | |
"hystrix": { | |
+ "stream": { | |
+ "validate_certificates": false | |
+ }, |
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
<?xml version="1.0" encoding="utf-8"?> | |
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | |
<!-- | |
For more information about unattended.xml please refer too | |
http://technet.microsoft.com/en-us/library/cc722132(v=ws.10).aspx | |
--> | |
<settings pass="generalize"> | |
<component name="Microsoft-Windows-PnpSysprep" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<PersistAllDeviceInstalls>true</PersistAllDeviceInstalls> | |
</component> |
NewerOlder