Skip to content

Instantly share code, notes, and snippets.

View jollyroger's full-sized avatar

Andrii Senkovych jollyroger

  • TRData Limited
  • Ukraine
View GitHub Profile
@offlinehacker
offlinehacker / README.rst
Last active January 8, 2022 18:21
Script that learns openvpn hostnames from cert CN filed

ovpn-learnaddress

openvpn learn-address script to manage a hosts-like file

  • intended to allow dnsmasq to resolve openvpn clients
  • written for openwrt (busybox), but should work most anywhere

How it works?

@jollyroger
jollyroger / fal.sh
Created December 9, 2009 21:50
"Fork, aggregate, log" script
#!/bin/bash
#
# NAME
# fal - wrapper script to run several concurrent commands and gather their
# output into one log file. fal is an abbreviation for "fork, aggregate, log"
#
# SYNOPSIS
# fal -c count [-l logfile] [-t] [-p pipe] [--] command [command_args]
#
# OPTIONS
@jollyroger
jollyroger / interfaces
Created October 24, 2009 07:42
Automatic Wi-Fi the Debian-way
auto wlan0
mapping wlan0
script /usr/local/sbin/wlan-detect.sh
map HomeAP wlan0-home
map OfficeAP wlan0-office
iface wlan0-home inet dhcp
wpa-ssid HomeAP
wpa-psk HomeAccessPointPassphrase
wpa-key-mgmt WPA-PSK