Skip to content

Instantly share code, notes, and snippets.

@wilsonkhlam
wilsonkhlam / wvdiald.pl
Created February 3, 2022 14:40 — forked from kumarasinghe/wvdiald.pl
wvdial daemon : Auto Connect USB modems / Mobile Broadbands on Linux / Raspberry Pi
#!/usr/bin/perl -l
# wvdiald.pl - Auto connect USB modems on Linux
# Author: naveenk <dndkumarasnghe@gmail.com>
# License: MIT
# Make sure you have wvdial and usb-modeswitch installed. Fill the connection parameters below.
# Run this as root. Add "perl /path/to/wvdiald.pl" to /etc/rc.local to make this a service
######################### CHANGE AS NEEDED ################################
# connection parameters
@wilsonkhlam
wilsonkhlam / example.sh
Created September 25, 2020 08:56
Screen Recording to GIF
alias gifify='docker run -it --rm -v $(pwd):/data maxogden/gifify'
gifify container-registry.mov -o container-registry.gif --resize 800:-1
@wilsonkhlam
wilsonkhlam / haproxy.cfg
Last active August 31, 2020 10:13
Passing SSL and Client Cert Authentication Data to Tomcat through HTTP Headers
global
log stdout format raw daemon
maxconn 2000
daemon
defaults
mode http
option dontlognull
retries 3
timeout connect 5000
@wilsonkhlam
wilsonkhlam / Vagrantfile
Created September 25, 2019 16:18
Provision Single Master, Multi-nodes Kubernetes Cluster with Vagrant
IMAGE_NAME = "bento/ubuntu-16.04"
N = 2
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vm.provider "virtualbox" do |v|
v.memory = 1024
v.cpus = 2
@wilsonkhlam
wilsonkhlam / Dockerfile
Created September 24, 2019 16:07
Terraform in Docker
# build step to create a Terraform bundle per our included terraform-bundle.hcl
FROM golang:1.13.0-alpine3.10 AS bundler
RUN apk add --no-cache git unzip && \
go get -d -v github.com/hashicorp/terraform && \
git -C ./src/github.com/hashicorp/terraform checkout v0.12.9 && \
go install ./src/github.com/hashicorp/terraform/tools/terraform-bundle
COPY terraform-bundle.hcl .