Skip to content

Instantly share code, notes, and snippets.

View versionsix's full-sized avatar
🦖
Using modern software.

Frank Meeusen versionsix

🦖
Using modern software.
  • Belgium, Antwerp
View GitHub Profile
@zenchicken
zenchicken / idm-tail.zsh
Last active September 1, 2018 17:28
Simple script to open new tmux window, split pane, and display tail of two logs
#!/bin/zsh
QA_SERVERS=(...list of servers separated by spaces as array...)
PRD_SERVERS=(...list of servers separated by spaces as array...)
SSH_USER=pingfederate
LOG_PATH=/ping/pingfederate-7.0.1/pingfederate/log/server.log
# Get qa or prod command argument from shell invocation
env="$1"
case "$env" in
@danehans
danehans / jool.MD
Last active September 24, 2019 12:08
Jool NAT64

Note: Dues to Jool's GRO offload limitation, it can not be used in cloud environments such as GCE.

Jool NAT64 (WIP)

NAT64 runs on an Ubuntu 16.04.2 host and is implemented using Jool v3.5.4. Start by installing the Jool dependencies:

sudo apt-get update && sudo apt-get install -y zip gcc make linux-headers-$(uname -r) dkms \
pkg-config libnl-genl-3-dev autoconf
@rys
rys / l2tp-ipsec-edgerouter-x.txt
Created March 11, 2016 21:47
L2TP/IPSec VPN configuration on EdgeRouter X
configure
set vpn ipsec ipsec-interfaces interface eth0 # your WAN interface
set vpn ipsec auto-firewall-nat-exclude enable
set vpn ipsec nat-networks allowed-network 0.0.0.0/0 # check that's OK before you set it
set vpn l2tp remote-access authentication mode local
set vpn l2tp remote-access authentication local-users username <user> password <password>
set vpn l2tp remote-access client-ip-pool start <starting IP>
set vpn l2tp remote-access client-ip-pool stop <end IP>
set vpn l2tp remote-access dns-servers server-1 <DNS server IP>
set vpn l2tp remote-access ipsec-settings authentication mode pre-shared-secret
@cvmiller
cvmiller / ipv6-httpd.py
Last active February 26, 2020 10:24 — forked from akorobov/ipv6-httpd.py
quick ipv6 http server using python's SimpleHttpServer
#!/usr/bin/env python3
"""
Python 3 webserver which supports IPv6
original from:
https://gist.github.com/akorobov/7903307
Pseudo path of /ip will report client IP address back to client,
otherwise, shows directory index
#!/bin/sh
showHelp() {
cat <<EOF
This script requires 2 or 3 arguments exactly.
"${0}" <redhat username> <redhat password> [<redhat release>]
examples:
"${0}" user1 passw0rd! 7Server
"${0}" user2 pAssw@rd
By default the omission of the release version will default to 7Server being set.
@AdamOssenford
AdamOssenford / ansible-summary.md
Created January 18, 2016 00:50
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@ebratb
ebratb / xsd-merge.xslt
Created October 2, 2012 15:11 — forked from dex4er/xsd-merge.xslt
XSLT tools for XSD and WSDL schemas
<?xml version="1.0"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsl:output version="1.0" encoding="utf-8" indent="yes" name="xml" />
<xsl:template match="/">
<xsl:apply-templates />
@philipz
philipz / gist:87ad761df64fb8c465a2
Last active March 9, 2021 18:47
QEMU QCOW2 Image
# Epitome
I want to have os image that can login with password.
download UEC image.
for example, this precise.
http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img
this image was forbidden to password login feature in terminal console.
it's reasonable for use of cloud image.
@partrita
partrita / 5myzsh.md
Last active March 23, 2021 11:57
personal set up of zsh.

0. pre-required

bash shell

1. install zsh

The Z shell is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting. Zsh is an extended Bourne shell with many improvements