Skip to content

Instantly share code, notes, and snippets.

View narze's full-sized avatar
🕺
You know the rules, and so do I

Manassarn "Noom" Manoonchai narze

🕺
You know the rules, and so do I
View GitHub Profile
The basic idea was to create a wifi hotspot using a raspberry pi. The RasPi is connected to ethernet and should share the wifi to access the web.
So here's what I did basically:
Resources:
[0] http://sourceforge.net/apps/trac/hotcakes/wiki/WikiStart - Good starting point
[1] http://www.coova.org/CoovaChilli.org/ - A OpenSource Access Controller for Linux
[2] http://freeradius.org/ - An Open Source Radius Server
[3] http://rubygems.org/gems/hotspotlogin - A Ruby'n'Sinatra based login solution
@nazt
nazt / autologin.js
Created August 12, 2015 01:50
autologin.js
var request = require("request");
var cheerio = require('cheerio');
var $;
var post = function(form) {
request.post({
followAllRedirects: true,
url: 'http://202.162.79.194/login/sz/hotspotlogin.php',
form: form
@rubenfonseca
rubenfonseca / backbone.sync.js
Created April 10, 2012 19:08
Backbone + Titanium - part 2
//Customise Backbone.sync to work with Titanium rather than jQuery
var getUrl = function(object) {
if (!(object && object.url)) return null;
return _.isFunction(object.url) ? object.url() : object.url;
};
Backbone.sync = (function() {
var methodMap = {
'create': 'POST',
'read' : 'GET',
@descovi
descovi / gist:2699883
Created May 15, 2012 08:00
Sublime Text 2 - Sublime Linter - Remove
//remove annoying hint about semicolon in sublime linter
"jshint_options":
{
"evil": true,
"regexdash": true,
"browser": true,
"wsh": true,
"trailing": true,
"sub": true,
@MattesGroeger
MattesGroeger / NSNotificationMatcher.h
Created November 13, 2012 14:44
Matcher for Kiwi testing framework that allows testing notifications.
#import "KWHCMatcher.h"
#import "KWMessageTracker.h"
#import "Kiwi.h"
@interface NSNotificationMatcher : NSObject <HCMatcher>
{
NSDictionary *_userInfo;
}
+ (id)matcherWithUserInfo:(NSDictionary *)dictionary;
@byllc
byllc / RaspiNotes.md
Last active December 5, 2015 00:39
Some initial configurations for Headless Raspberry Pi

###IF you are using Raspian many of these tasks are unescessary. With Raspbian:

  • SSH is ready to go out of the box
  • default runlevel is 3
  • many items can be configured with raspi-config tool

###Adding more swap for high memory use concerns

  sudo dd if=/dev/zero of=/swap bs=1M count=1024
  sudo mkswap /swap
  sudo swapon /swap
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>TestConsoleTheme</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
@mpbod
mpbod / gist:6660454
Last active December 23, 2015 16:09
Dolphin I/O iOS SDK Closed alpha testing release documentation 22/9/2013.
# Dolphin I/O iOS SDK
###### Closed Alpha Release 22/9/2013
---
Thank you for trying Dolphin I/O. This release is the **closed alpha** release, meaning things will probably break and implementation of the **DolphinSDK** will change in the very near future.
The purpose of this release is for interested developers to try out how Dolphin I/O will work for their application.
If you run into any problem or bugs, we'd love to help. Please feel free to contact Max, <max@socialhappen.com>.
@mpbod
mpbod / gist:6897399
Last active December 25, 2015 01:49
Dolphin I/O iOS SDK - Partner Release 01/04/2014
# Dolphin I/O iOS SDK
###### Partner Release 01/04/2014
---
Thank you for trying Dolphin I/O. This release is the **partner** release. The SDK is compiled and will only work with the application ids you have provided.
If you run into any problem or bugs, we'd love to help. Please feel free to contact Max, <max@socialhappen.com>.
---
@jacklynrose
jacklynrose / Steps.md
Last active January 1, 2016 09:09
Bootstrapping your app for working with frank and location services and the frank step to turn location services for your app on and off

This assumes you're using bubble-wrap

  1. Put osx-plist in your Gemfile
  2. Put the code from bootstrap.rb gist into your AppDelegate's application:didFinishLaunchingWithOptions: method
  3. Run rake
  4. Press either "OK" or "Don't Allow"
  5. Exit the app via terminal
  6. Delete the code from bootstrap.rb
  7. You're now ready to use step, create features/step_definitions/location_services_steps.rb
  8. Paste in the code from location_services_steps.rb in this gist