git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
If you want a run-down of the 1.3 changes and the design decisions behidn those changes, check out the LonestarElixir Phoenix 1.3 keynote: https://www.youtube.com/watch?v=tMO28ar0lW8
To use the new phx.new
project generator, you can install the archive with the following command:
$ mix archive.install https://github.com/phoenixframework/archives/raw/master/phx_new.ez
Phoenix v1.3.0 is a backwards compatible release with v1.2.x. To upgrade your existing 1.2.x project, simply bump your phoenix dependency in mix.exs
:
require 'openssl' | |
def hotp(secret, counter, digits = 6) | |
hash = OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha1'), secret, int_to_bytestring(counter)) | |
"%0#{digits}i" % (truncate(hash) % 10**digits) | |
end | |
def truncate(string) | |
offset = string.bytes.last & 0xf | |
partial = string.bytes[offset..offset+3] |
require 'openssl' | |
def hotp(secret, counter, digits = 6) | |
hash = OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha1'), secret, int_to_bytestring(counter)) | |
"%0#{digits}i" % (truncate(hash) % 10**digits) | |
end | |
def truncate(string) | |
offset = string.bytes.last & 0xf | |
partial = string.bytes[offset..offset+3] |
Reference: http://www.cnx-software.com/2012/07/31/84-mb-minimal-raspbian-armhf-image-for-raspberry-pi/
curl -O https://dl.dropbox.com/u/45842273/2012-07-15-wheezy-raspian-minimal.img.7z
yum install p7zip
7za e 2012-07-15-wheezy-raspian-minimal.img.7z
qemu-system-arm -kernel kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1" -hda 2012-07-15-wheezy-raspian-minimal.img -net nic -net user -vnc :0 -net tap,ifname=vnet0,script=no,downscript=no
#!/usr/bin/env python | |
#coding=utf-8 | |
# | |
# Generate a list of dnsmasq rules with ipset for gfwlist | |
# | |
# Copyright (C) 2014 http://www.shuyz.com | |
# Ref https://code.google.com/p/autoproxy-gfwlist/wiki/Rules | |
import urllib2 | |
import re |
#!/usr/bin/env bash | |
# names of latest versions of each package | |
export VERSION_PCRE=pcre-8.38 | |
export VERSION_OPENSSL=openssl-1.0.2d | |
export VERSION_NGINX=nginx-1.9.7 | |
# URLs to the source directories | |
export SOURCE_OPENSSL=https://www.openssl.org/source/ | |
export SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ |
#include <opencv/cv.h> | |
#include <opencv/highgui.h> | |
#include <opencv/ml.h> | |
void doMosaic(IplImage* in, int x, int y, | |
int width, int height, int size); | |
int main (int argc, char **argv) | |
{ | |
int i, c; |
1 # From http://goldmann.pl/blog/2014/01/21/connecting-docker-containers-on-multiple-hosts/ | |
2 # Edit this variable: the 'other' host. | |
3 REMOTE_IP=192.168.0.103 | |
4 | |
5 # Edit this variable: the bridge address on 'this' host. | |
6 BRIDGE_ADDRESS=172.17.43.1/24 | |
7 | |
8 # Name of the bridge (should match /etc/default/docker). | |
9 BRIDGE_NAME=docker0 | |
10 |
# This is an startup script example, how IPv6 should | |
# looks like, if not you will get some seriously | |
# problems. | |
# Some options may not work on your OS. | |
# ICMPv6 Stastics (optional) | |
# icmpv6_stats | |
# Optional may not work on all systems | |
ipset flush dns6 |