Skip to content

Instantly share code, notes, and snippets.

View martonsereg's full-sized avatar

Marton Sereg martonsereg

  • Budapest, Hungary
View GitHub Profile
---
# Source: uistio/templates/metrics.yaml
apiVersion: config.istio.io/v1alpha2
kind: metric
metadata:
name: uistio
labels:
app.kubernetes.io/name: uistio
helm.sh/chart: uistio-1.0.0
app.kubernetes.io/managed-by: Tiller
{
"host_groups": [
{
"name": "master",
"components": [
{
"name": "NAMENODE"
},
{
"name": "SECONDARY_NAMENODE"
# List the blobs in an Azure storage container.
echo "usage: ${0##*/} <storage-account-name> <container-name> <access-key>"
storage_account="$1"
container_name="$2"
access_key="$4"
blob_store_url="blob.core.windows.net"
http="https"
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIJUMlsSlXqCZmCjlN4kV7hzP+p9pu0fwJ8r4m1qle58SoAoGCCqGSM49
AwEHoUQDQgAE4RBy+jCJXeKB1E7uso+tmtqjWEJCucLi2CzGpIl1AJsAEj68et1s
lF9Zk25KTjxoC0BEnMlWaSf+vrcQ8mCSHw==
-----END EC PRIVATE KEY-----
@martonsereg
martonsereg / gist:a38153817812b99d2a8c
Created April 23, 2015 15:33
break lease on azure blob
//export AZURE_STORAGE_ACCOUNT
//export AZURE_STORAGE_ACCESS_KEY=""
var azure = require('./node_modules/azure-storage');
var blobSvc = azure.createBlobService();
blobSvc.breakLease('<container-name>', '<blob-name>', {}, function(error, result, response){
if(!error) {
console.log(result);
@martonsereg
martonsereg / bootlocal.sh
Last active August 29, 2015 14:06 — forked from lalyos/bootlocal.sh
bootlocal script for boot2docker to use custom subdomain for docker
#################
# set your custom network here:
#################
B2D_NETWORK=172.20.0.1
#################
# install bridge-utils extension into tinycore
#################
[ -f /var/lib/boot2docker/bridge-utils.tcz ] || curl -Lo /var/lib/boot2docker/bridge-utils.tcz ftp://ftp.nl.netbsd.org/vol/2/metalab/distributions/tinycorelinux/4.x/x86/tcz/bridge-utils.tcz
# tce-load should'nt bee run as sudo
@martonsereg
martonsereg / .bash_profile
Last active August 29, 2015 14:06
my dotfiles
#!/bin/bash
export PATH=/usr/local/bin:$PATH
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Tell ls to be colourful
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
@martonsereg
martonsereg / start-uaa.sh
Last active August 29, 2015 14:06
sample uaa.yml
docker run -d --name="uaadblocal" -e USER="uaaadmin" -e DB="uaa" -e PASS="uaa123_" paintedfox/postgresql
export DB_PORT_5432_TCP_ADDR=172.20.0.8; export DB_PORT_5432_TCP_PORT=5432; export DB_ENV_DB=uaa; export DB_ENV_USER=uaaadmin; export DB_ENV_PASS=uaa123_; export UAA_CONFIG_PATH=~/tmp/uaa; ~/prj/apache-tomcat-7.0.55/bin/catalina.sh jpda start
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -584,9 +584,19 @@
int err = 0;
/* Only support the initial namespaces for now. */
+ /*
+ * We return ECONNREFUSED because it tricks userspace into thinking
+ * that audit was not configured into the kernel. Lots of users
+ * configure their PAM stack (because that's what the distro does)
@martonsereg
martonsereg / commit-msg
Created July 8, 2014 13:26
Commit message hook to always follow the message pattern on the Cloudbreak repo
#!/bin/sh
grep -qs "^CLOUD-[0-9]\{1,4\}\b " "$1" || {
echo "Your commit message does not follow the pattern: CLOUD-X commit-message"
exit 1
}