Skip to content

Instantly share code, notes, and snippets.

View chancez's full-sized avatar

Chance Zibolski chancez

View GitHub Profile
@robszumski
robszumski / makeapp.sh
Created May 23, 2018 15:51 — forked from demonbane/makeapp.sh
Create a Fluid-style app launcher for single-window Chrome instances on OSX
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"
@danrigsby
danrigsby / gist:8346b842d1446628de5223b600668dca
Created December 12, 2017 14:34
Copy kubernetes secrets between namespaces
kubectl get secrets -o json --namespace old | jq '.items[].metadata.namespace = "new"' | kubectl create -f -
@brianredbeard
brianredbeard / README.md
Last active July 19, 2023 19:25
fedora public bridge configs

Container / VM Bridging

About

Traditionally virtual machines and containers are exposed on a bridge which is solely available behind a single IP address exposed behind network/port address translation (NAT/PAT). This is, in general an acceptable practice but leads to some configuration challenges when testing out technologies like network booting of hosts, firewalling, equal cost multipath, etc.

This configuration will allow a user to move the IP address of the host to an internal bridge

@polvi
polvi / README.md
Created May 3, 2017 23:53
HDFS of Kubernetes

Easiest HDFS cluster in the world with kubernetes.

Inspiration from kimoonkim/kubernetes-HDFS

kubectl create -f namenode.yaml
kubectl create -f datanode.yaml

Setup a port-forward to so you can see it is alive:

@chancez
chancez / Jenkinsfile
Created December 16, 2016 22:09 — forked from amaksoft/Jenkinsfile
My example Jenkins Pipeline setup for Android app project
#!/usr/bin/groovy
/*
* Copyright (c) 2016, Andrey Makeev <[email protected]>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
@chancez
chancez / java
Last active December 9, 2016 02:15
#!/bin/bash -x
exec sudo rkt \
run \
--insecure-options=image,ondisk \
--inherit-env \
--volume dns,kind=host,source=/etc/resolv.conf \
--mount volume=dns,target=/etc/resolv.conf \
--volume jenkins,kind=host,source=/opt/jenkins,readOnly=false \
--mount volume=jenkins,target=/opt/jenkins \
@amaksoft
amaksoft / Jenkinsfile
Last active December 29, 2021 08:15
My example Jenkins Pipeline setup for Android app project
#!/usr/bin/groovy
/*
* Copyright (c) 2016, Andrey Makeev <[email protected]>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
@sandrinodimattia
sandrinodimattia / automate-login-page-email-templates.md
Last active April 8, 2019 18:26
Automatic configuration of the Auth0 Login Page and Email Templates

Customzing the Password Reset Page

Go to the API v2 explorer and generate a token with update:tenant_settings. Then call the tenants endpoint with the new HTML:

PATCH https://{YOUR_DOMAIN}/api/v2/tenants/settings

{
  "change_password": {
    "enabled": true,
@chancez
chancez / v3api.go
Last active September 16, 2015 00:16
package clientv3
import "github.com/coreos/etcd/storage/storagepb"
// A KV executes etcd key-value operations
type KV interface {
Execute(KvOp) (*Response, error)
}
// A Txn executes multiple etcd operations atomically
@gregorynicholas
gregorynicholas / ndb_json_helpers.py
Created February 6, 2013 18:42
helper methods for working with appengine ndb models and dict / json serialization
from json import JSONEncoder, loads
from time import mktime
from datetime import date, datetime
from google.appengine.ext import ndb
from google.appengine.ext.ndb import query
def to_epoch(value):
"""
This is a view method to return the data in milli-seconds.