This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; -*- mode: emacs-lisp; lexical-binding: t -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Layer configuration: | |
This function should only modify configuration layer settings." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory | |
;; `+distribution'. For now available distributions are `spacemacs-base' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE OverloadedStrings #-} | |
import Control.Monad.State.Strict | |
import Data.Text | |
import qualified Data.HashMap.Strict as M | |
import Control.Monad | |
import Control.Monad.Reader | |
import Prelude hiding (unwords) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface=wlan0 | |
dhcp-range=net:wlan0,192.168.0.100,192.168.0.150,255.255.255.0,1440m | |
dhcp-option=wlan0,3,192.168.0.1 | |
dhcp-option=wlan0,6,208.67.222.222,208.67.220.220 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# broadcasting interface | |
BROADCAST="wlan0" | |
# receiving interface broadcast is connected to | |
RECEIVE="eth0" | |
if [[ $1 == "-0" || $1 == "--start" ]] | |
then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##### 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=wlan0 | |
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#change to Python 3.x and fixed a bug | |
import types | |
cursor = '\t' | |
def recur(arr, cursorList, result): | |
if arr == []: | |
return (result , cursorList) | |
head = arr[0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE BangPatterns #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE RecordWildCards #-} | |
module Snap.Snaplet.Auth.Backends.MongoDB | |
( initMongoAuth | |
) where | |
------------------------------------------------------------------------------ | |
import Control.Arrow |