Skip to content

Instantly share code, notes, and snippets.

View TheTechmage's full-sized avatar
🚩

The Tech Mage TheTechmage

🚩
View GitHub Profile
package main
import (
"fmt"
"log"
"os"
"strconv"
)
type Ninja struct {
##### hostapd configuration file ##############################################
# Empty lines and lines starting with # are ignored
# AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for
# management frames); ath0 for madwifi
interface=wifi
# In case of madwifi, atheros, and nl80211 driver interfaces, an additional
# configuration parameter, bridge, may be used to notify hostapd if the
# interface is included in a bridge. This parameter is not used with Host AP

Keybase proof

I hereby claim:

  • I am frostyfrog on github.
  • I am frostyfrog (https://keybase.io/frostyfrog) on keybase.
  • I have a public key whose fingerprint is 7A5B 339F 3F51 9D5E F516 7078 362D B4A5 0060 DF7B

To claim this, I am signing this object:

@TheTechmage
TheTechmage / .bashrc
Last active December 21, 2015 11:19
On login/connection, join an existing tmux session. If none exists, create one. If creating a session fails, drop back to the user's shell. Otherwise, if there weren't any errors, disconnect the user.
# Automatically connect to (or establish) a tmux session
## if we are in a TTY and we aren't in a tmux session and we aren't connected through a gui...
if ( [ -t 1 ] && ! [ -n "$TMUX" ] && [ -z "$DISPLAY" ] ); then
## Attach to tmux, if we fail, start tmux.
## On success, exit the ssh connection.
## On failure, give the user a warning and drop them to the shell
tmux a || tmux
if [ $? -eq 0 ]; then
exit
else