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 | |
# Idea snatched from http://kb.sp.parallels.com/en/115348 | |
# Command for quick installation: | |
# url='https://gist.githubusercontent.com/andsens/573186933e80a74462bb/raw/throughput.sh'; curl -so throughput.sh $url || wget --quiet -O throughput.sh $url; chmod +x throughput.sh | |
server() { | |
type pv > /dev/null 2>&1 | |
if [ $? -eq 0 ]; then | |
while true; do | |
nc -l 1122 | pv --rate > /dev/null | |
printf "\n" |
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/env python | |
from collections import Counter | |
import csv | |
all_tags = [] | |
lines = [] | |
with open('passpack.csv') as passwords_handle: | |
passwords = csv.reader(passwords_handle, delimiter=',', | |
quotechar='"', quoting=csv.QUOTE_MINIMAL) |
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/bash -xe | |
deinit() { | |
module_path=$1 | |
test -d $module_path | |
current_branch=$(git rev-parse --abbrev-ref HEAD) | |
url=$(cd $module_path; git config --get remote.origin.url) | |
remote_name=$(basename $url) | |
branch_name=$(basename $url) | |
head=$(cd $module_path; git rev-parse HEAD) |
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
Loading provider ec2 | |
Loading plugin cloud_init | |
Tasklist: | |
bootstrapvz.providers.ec2.tasks.packages.DefaultPackages | |
bootstrapvz.providers.ec2.tasks.host.AddExternalCommands | |
bootstrapvz.common.tasks.bootstrap.AddRequiredCommands | |
bootstrapvz.common.tasks.locale.LocaleBootstrapPackage | |
bootstrapvz.providers.ec2.tasks.host.GetInstanceMetadata | |
bootstrapvz.common.tasks.apt.AddDefaultSources | |
bootstrapvz.plugins.cloud_init.tasks.AddCloudInitPackages |
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
Counting objects: 5, done. | |
Delta compression using up to 8 threads. | |
Compressing objects: 100% (5/5), done. | |
Writing objects: 100% (5/5), 464 bytes | 0 bytes/s, done. | |
Total 5 (delta 4), reused 0 (delta 0) | |
remote: Resolving deltas: 100% (4/4), completed with 4 local objects. | |
remote: ruby-jemalloc: symbol lookup error: /data/github/current/vendor/gems/2.1.7/ruby/2.1.0/gems/json-1.8.3/lib/json/ext/generator.so: undefined symbol: rb_data_typed_object_alloc | |
To git@github.com:user/repo | |
! [remote rejected] master -> master (pre-receive hook declined) | |
error: failed to push some refs to 'git@github.com:user/repo' |
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
[log] | |
date = relative | |
[format] | |
pretty = shortlog | |
[pretty] | |
shortlog = format:%C(auto,yellow)%h%C(auto,magenta)% G? %C(auto,blue)%>(12,trunc)%ad %C(auto,green)%<(7,trunc)%aN%C(auto,reset)%s%C(auto,red)% gD% D |
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/bash -e | |
function merge_repo_to_subdir { | |
local url=$1 | |
local commit=$2 | |
local module_path=$3 | |
if [[ -z $url || -z $commit || -z $module_path ]]; then | |
echo "Usage: merge-repo-to-subdir.sh URL BRANCH PATH" >&2 | |
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
npm list --json | |
{ | |
"name": "@secoya/rabbitmq-tools", | |
"version": "0.1.8", | |
"problems": [ | |
"missing: amqplib@0.4.2, required by @secoya/rabbitmq-tools@0.1.8", | |
"missing: babel-runtime@6.9.2, required by @secoya/rabbitmq-tools@0.1.8", | |
"missing: bitsyntax@0.0.4, required by amqplib@0.4.2", | |
"missing: buffer-more-ints@0.0.2, required by amqplib@0.4.2", | |
"missing: readable-stream@1.1.14, required by amqplib@0.4.2", |
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
.:53 { | |
cache 30 | |
log | |
errors | |
prometheus | |
etcd k8s { | |
stubzones | |
endpoint http://etcd:2379 | |
} | |
} |
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
apiVersion: apiextensions.k8s.io/v1beta1 | |
kind: CustomResourceDefinition | |
metadata: | |
creationTimestamp: null | |
labels: | |
controller-tools.k8s.io: "1.0" | |
name: certificates.certmanager.k8s.io | |
spec: | |
additionalPrinterColumns: | |
- JSONPath: .status.conditions[?(@.type==\"Ready\")].status |