Skip to content

Instantly share code, notes, and snippets.

Avatar

Martin Häger kvadevack

View GitHub Profile
View sap.pac
function FindProxyForURL(url, host) {
if (
dnsDomainIs(host, ".sap") ||
dnsDomainIs(host, ".sap.corp") ||
dnsDomainIs(host, ".sap.ondemand.com")) {
return "SOCKS5 127.0.0.1:10001";
}
return "DIRECT";
}
View keybase.md

Keybase proof

I hereby claim:

  • I am kvadevack on github.
  • I am kvadevack (https://keybase.io/kvadevack) on keybase.
  • I have a public key ASAhCfOZPanBHiGj24xic3eHiGN3ILS25dKPIfq_bSxA9wo

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am vrcsix on github.
  • I am vrcsix (https://keybase.io/vrcsix) on keybase.
  • I have a public key ASAG37cCiH26TlPmZ8PTLP7DkLgGWsFpedANNh_E89FxMAo

To claim this, I am signing this object:

@kvadevack
kvadevack / codebuild-hook.js
Created Feb 15, 2017
CodeBuild Lambda hook for CodeCommit
View codebuild-hook.js
'use strict';
const AWS = require('aws-sdk');
const codeBuild = new AWS.CodeBuild();
const codeCommit = new AWS.CodeCommit();
function listProjects() {
return new Promise((resolve, reject) => {
let projects = [];
View split.go
package main
import (
"bufio"
"bytes"
"flag"
"io"
"log"
"os"
"strings"
@kvadevack
kvadevack / letsencrypt-hook-aws.py
Created Feb 15, 2016
AWS hook for letsencrypt.sh
View letsencrypt-hook-aws.py
#!/usr/bin/env python -u
from __future__ import print_function
import os, sys, re, boto3
route53 = boto3.client('route53')
iam = boto3.client('iam')
def zone_cmp(first, second):
return first['Name'].count('.') - second['Name'].count('.')
View system-docker.log
time="2015-12-09T13:01:51.398751309Z" level=info msg="GET /v1.15/images/wowgroup/hello-world/json"
time="2015-12-09T13:01:51.398848536Z" level=error msg="Handler for GET /v1.15/images/wowgroup/hello-world/json returned error: No such image: wowgroup/hello-world"
time="2015-12-09T13:01:51.398869965Z" level=error msg="HTTP Error" err="No such image: wowgroup/hello-world" statusCode=404
time="2015-12-09T13:01:51.408722333Z" level=info msg="GET /v1.15/images/wowgroup/hello-world/json"
time="2015-12-09T13:01:51.408851913Z" level=error msg="Handler for GET /v1.15/images/wowgroup/hello-world/json returned error: No such image: wowgroup/hello-world"
time="2015-12-09T13:01:51.408872650Z" level=error msg="HTTP Error" err="No such image: wowgroup/hello-world" statusCode=404
time="2015-12-09T13:01:52.088161201Z" level=info msg="GET /v1.15/images/wowgroup/hello-world/json"
time="2015-12-09T13:01:52.088258529Z" level=error msg="Handler for GET /v1.15/images/wowgroup/hello-world/json returned error: No such image: wo
View cloud-config.yml
#cloud-config
write_files:
- path: /var/lib/rancher/conf/hello-world.yml
permissions: "0600"
owner: root
content: |
hello-world:
image: wowgroup/hello-world
restart: always
labels:
View zip-contains-crc
#!/usr/bin/env python
from __future__ import print_function
import sys
from string import zfill
from zipfile import ZipFile
def main(path, crc, *args):
with ZipFile(path, 'r') as zip:
View update-csshx-config
#!/usr/bin/env ruby
require 'erb'
Cluster = Struct.new(:name, :hosts)
class Host
attr_accessor :fqdn, :port, :user, :name, :proxy