Skip to content

Instantly share code, notes, and snippets.

Frostyfrog frostyfrog

Block or report user

Report or block frostyfrog

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ninja1.go
package main
import (
"fmt"
"log"
"os"
"strconv"
)
type Ninja struct {
View _etc_hostapd_hostapd.conf
##### 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
View keybase.md

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:

@frostyfrog
frostyfrog / .bashrc
Last active Dec 21, 2015
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.
View .bashrc
# 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
You can’t perform that action at this time.