RVI = Remote Virtual Interface
Using RVI, you can capture network packages in iOS using any normal package capturing tools like tcpdump etc.
| #define ANALOG_IN 0 | |
| void setup() { | |
| Serial.begin(9600); | |
| //Serial.begin(115200); | |
| } | |
| void loop() { | |
| int val = analogRead(ANALOG_IN); | |
| Serial.write( 0xff ); |
| #!/usr/bin/env python | |
| # | |
| # import modules used here -- sys is a very standard one | |
| import sys, argparse, logging | |
| # Gather our code in a main() function | |
| def main(args, loglevel): | |
| logging.basicConfig(format="%(levelname)s: %(message)s", level=loglevel) | |
| # creates a sparsebundle disk image with a 128MB band size | |
| MACHINE_NAME=your-machine-name | |
| echo $MACHINE_NAME | |
| hdiutil create -size 900g -type SPARSEBUNDLE -nospotlight -volname "Backup of $MACHINE_NAME" -fs "Case-sensitive Journaled HFS+" -imagekey sparse-band-size=262144 -verbose ./$MACHINE_NAME.sparsebundle |
| ADMIN_PASSWORD=devstack | |
| MYSQL_PASSWORD=devstack | |
| RABBIT_PASSWORD=devstack | |
| SERVICE_PASSWORD=devstack | |
| SERVICE_TOKEN=devstack | |
| FLAT_INTERFACE=br100 | |
| PUBLIC_INTERFACE=eth0 | |
| VOLUME_BACKING_FILE_SIZE=20480M |
| package main | |
| import ( | |
| "reflect" | |
| "appengine" | |
| "appengine/datastore" | |
| ) | |
| // define Map |
| # Tell system when Xcode utilities live: | |
| sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer | |
| # Set "opendiff" as the default mergetool globally: | |
| git config --global merge.tool opendiff |
| #!/usr/bin/python | |
| import subprocess | |
| import re | |
| import os | |
| import sys | |
| import optparse | |
| import time | |
| def call_checked(*args): | |
| r = subprocess.call(args) |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).