How to set up:
git clone --branch akkariiin/master https://github.com/shadowsocksrr/shadowsocksr.git
cd shadowsocksr
bash initcfg.sh
Edit the configurations:
$EDITOR user-config.json
| #!/bin/sh | |
| # Append a key (passed as argument $1) to the ~/.ssh/authorized_keys | |
| # file on a targed host. | |
| DOT_SSH=".ssh" | |
| AUTHORIZED_KEYS="$DOT_SSH/authorized_keys" | |
| if [ ! -e $DOT_SSH ]; then | |
| mkdir $DOT_SSH |
| class Concept | |
| include Neo4j::ActiveNode | |
| property :name | |
| def references | |
| Reference.where(concept_uuid: uuid) | |
| end | |
| end | |
| # example: Concept.first.references |
| require_relative 'offline' | |
| run Sinatra::Application |
| class ApplicationController < ActionController::Base | |
| ... | |
| before_filter :page_params, :only => :index | |
| def page_key | |
| (self.class.to_s + "_page").to_sym | |
| end | |
| # Use a before_filter on index action to remember the current page |
| require 'arduino_firmata' | |
| ArduinoFirmata.connect ARGV.shift, bps: 9600 do | |
| puts "firmata version #{version}" | |
| reset # This line did the trick! | |
| puts "led on ..." | |
| digital_write 13, true | |
| sleep 1 |
| { | |
| "*/apps.py": { | |
| "type": "app" | |
| }, | |
| "*/urls.py": { | |
| "type": "urls" | |
| }, | |
| "*/utils.py": { |
| import React from 'react' | |
| import { isEqual, template } from 'lodash' | |
| // This is a DOM library, some plumbing with refs is required. | |
| import 'json-editor' | |
| // Get the imported reference from the global namespace. | |
| const JSONEditor = window.JSONEditor | |
| // Set sensible defaults |
| #!/bin/sh | |
| # Adapted from bundled bin/dia script | |
| CWD="/Applications/Dia.app/Contents/Resources/bin" | |
| TOP="`dirname \"$CWD\"`" | |
| export DISPLAY=:0 | |
| export LANG="en_US.UTF-8" |
| arp -a | grep b8:27:eb |
How to set up:
git clone --branch akkariiin/master https://github.com/shadowsocksrr/shadowsocksr.git
cd shadowsocksr
bash initcfg.sh
Edit the configurations:
$EDITOR user-config.json