Skip to content

Instantly share code, notes, and snippets.

@laurenorsini
laurenorsini / MakeOpenVPN.sh
Last active June 25, 2025 05:19
MakeOpenVPN.sh by Eric Jodoin
#!/bin/bash
# Default Variable Declarations
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
CA="ca.crt"
TA="ta.key"
@laurenorsini
laurenorsini / server.conf
Last active June 2, 2023 15:45
OpenVPN configuration for /etc/openvpn/server.conf
local 192.168.2.0 # SWAP THIS NUMBER WITH YOUR RASPBERRY PI IP ADDRESS
dev tun
proto udp #Some people prefer to use tcp. Don't change it if you don't know.
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/Server.crt # SWAP WITH YOUR CRT NAME
key /etc/openvpn/easy-rsa/keys/Server.key # SWAP WITH YOUR KEY NAME
dh /etc/openvpn/easy-rsa/keys/dh1024.pem # If you changed to 2048, change that here!
server 10.8.0.0 255.255.255.0
# server and remote endpoints
@s-tajima
s-tajima / td-agent.conf
Created February 28, 2014 04:01
Configs for benchmarking of ElasticSearch compress.
<match *>
type copy
<store>
type forest
subtype elasticsearch
<template>
id es-test01.${tag}
include_tag_key true
tag_key @tag
host 127.0.0.1
@noteed
noteed / docker-ovs.md
Last active December 29, 2023 07:07
Docker - Open vSwitch setup
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active November 5, 2025 08:21
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@kvzhuang
kvzhuang / Dockerfile
Last active September 17, 2018 12:12
My Dockerfile, initial shell script and run shell script.
# DOCKER-VERSION 0.3.4
FROM ubuntu
MAINTAINER Kevin Zhuang <[email protected]>
#RUN echo "This is a ubuntu Dockerfile."
#replace source.list with http://repogen.simplylinux.ch/
RUN echo "deb http://02.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse" > /etc/apt/sources.list
RUN apt-get update
@krakatoa
krakatoa / dispatcher.list
Created December 2, 2013 14:36
Simple Kamailio round-robin configuration
# line format
# id(int,auto) setid(int) destination(string) flags(int) priority(int) attrs(string) description(string)
1 sip:10.0.0.9:5060
1 sip:10.0.0.10:5060
@guenter
guenter / Main.scala
Last active September 17, 2020 11:25
A simple Mesos "Hello World": downloads and starts a Python web server on every node in the cluster.
import mesosphere.mesos.util.FrameworkInfo
import org.apache.mesos.MesosSchedulerDriver
/**
* @author Tobi Knaup
*/
object Main extends App {
@Thermionix
Thermionix / pfsense.setup.sh
Last active January 27, 2016 23:20
pfsense setup on alix board
#!/bin/bash
read -e -n1 -p "flash pfSense to CF card [y/N]: " OPTION
if [ "$OPTION" == "y" ]; then
imgfile=pfSense-2.1-RELEASE-1g-i386-nanobsd.img.gz
if [ ! -f $imgfile ]; then
read -e -n1 -p "download $imgfile [y/N]: " OPTION
if [ "$OPTION" == "y" ]; then
@jerrac
jerrac / gist:6382702
Created August 29, 2013 19:58
Apache vhost that proxies elasticsearch for Kibana. Make sure Kibana's config.js points to your vhost on port 443. Need proxy and proxy_http apache modules enabled.
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName elasticsearch.domain.tld
ServerAlias kibana.domain.tld
DocumentRoot /path/to/kibana/docroot
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /path/to/kibana/docroot>