(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
# | |
# vault-ec2-auth.sh | |
# Authenticates an EC2 instance to Hashicorp Vault | |
# | |
# configuration stored in environment variables in /etc/vault/client.conf | |
# expected configuration (defaults are selected below if none is specified): | |
# VAULT_ADDR = url of vault server | |
# VAULT_ROLE = role name to authenticate as |
#!/usr/bin/env python | |
from ansible.module_utils.basic import * | |
module = AnsibleModule( | |
argument_spec = dict( | |
hour = dict(default=12,type='int'), | |
), | |
supports_check_mode=True, | |
) |
package reqresp | |
type ReqResp interface { | |
HashableString() string | |
IgnoreList() map[string]string | |
} | |
type Response struct { | |
Type Type | |
Details DataTypes |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/usr/bin/env python | |
# Quick and dirty demonstration of CVE-2014-0160 by | |
# Jared Stafford ([email protected]) | |
# Modified so that it finds cookies | |
import sys | |
import struct | |
import socket | |
import time | |
import select |
--- acng.conf.orig 2013-05-23 21:20:04.000000000 +0100 | |
+++ acng.conf 2013-05-28 15:02:23.000000000 +0100 | |
@@ -100,6 +100,7 @@ | |
# | |
#VfilePattern = (^|.*?/)(Index|Packages\.bz2|Packages\.gz|Packages|Release|Release\.gpg|Sources\.bz2|Sources\.gz|Sources|release|index\.db-.*\.gz|Contents-[^/]*\.gz|pkglist[^/]*\.bz2|rclist[^/]*\.bz2|/meta-release[^/]*|Translation[^/]*\.bz2)$ | |
#PfilePattern = .*(\.deb|\.rpm|\.dsc|\.tar\.gz\.gpg|\.tar\.gz|\.diff\.gz|\.diff\.bz2|\.jigdo|\.template|changelog|copyright|\.udeb|\.diff/.*\.gz|vmlinuz|initrd\.gz|(Devel)?ReleaseAnnouncement(\\?.*)?)$ | |
+PfilePattern = .*(\.deb|\.rpm|\.dsc|\.tar\.gz\.gpg|\.tar\.gz|\.tgz|\.zip|\.diff\.gz|\.diff\.bz2|\.jigdo|\.bin(\?AuthParam=.*)?|\.template|changelog|copyright|\.udeb|\.diff/.*\.gz|vmlinuz|initrd\.gz|(Devel)?ReleaseAnnouncement(\\?.*)?)$ | |
# Whitelist for expiration, file types not to be removed even when being | |
# unreferenced. Default: same as VfilePattern which is a safe bed. When and | |
# only when the only used mirrors are official repositories |
class phantomjs { | |
include xvfb | |
$version = '1.8.1' | |
$basename = "phantomjs-${version}-linux-x86_64" | |
$tarball = "${basename}.tar.bz2" | |
$tarball_path = "/opt/${tarball}" | |
$url = "http://phantomjs.googlecode.com/files/${tarball}" | |
$destdir = "/opt/${basename}" |
# remove any bad refs | |
git remote prune origin | |
# pipe into bash and auto-delete any branches that have been merged into master! | |
git log master --pretty=format:'%d' | grep '^ (origin' | tr -d ' ()' | sed 's/origin\//git push origin :/' |
# Description: | |
# Log all the things to ElasticSearch then lets you ask hubot what you missed | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# ELASTICSEARCH_HOSTNAME - E.G. elasticsearch.example.com:9200, where to send the put requests | |
# ELASTICSEARCH_USERNAME - OPTIONAL basic auth username | |
# ELASTICSEARCH_PASSWORD - OPTIONAL basic auth password |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: znc | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: znc initscript | |
# Description: This is the init-Script for znc. | |
### END INIT INFO | |
# Author: Henner M. Kruse |