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
'use strict'; | |
var sinon = require('sinon'); | |
var assert = require('assert'); | |
var testObject = { | |
'testMethod': function () { | |
return 'testtest'; | |
} |
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
'use strict'; | |
var sinon = require('sinon'); | |
var assert = require('assert'); | |
var testObject = { | |
'testMethod': function () { | |
return 'testtest'; | |
} |
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 | |
# Configure IP address for WLAN | |
sudo ifconfig wlan0 192.168.150.1 | |
# Start DHCP/DNS server | |
sudo service dnsmasq restart | |
# Enable routing | |
sudo sysctl net.ipv4.ip_forward=1 | |
# Enable NAT | |
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE |
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
bind-interfaces | |
interface=wlan0 | |
dhcp-range=192.168.150.2,192.168.150.20 |
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
# Name of the Wi-Fi interface | |
interface=wlan0 | |
# Hostapd driver | |
driver=nl80211 | |
# Wi-Fi Properties | |
ssid=myhotspot | |
# Set access point harware mode to 802.11g | |
hw_mode=g | |
# Set WIFI channel (can be easily changed) |
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
# sample /etc/network/interfaces file | |
# local network | |
auto lo | |
iface lo inet loopback | |
# Auto-start Network with Static IP | |
auto eth0 | |
iface eth0 inet static | |
address 192.168.1.11 |
NewerOlder