- Download Image
- Unzip Image
- Copy Image on SD Card (dd if=./ArchLinuxARM-2014.03-rpi.img of=/dev/disk2)
- Boot Raspberry Pi
- Find out IP
#!/bin/bash | |
LINES=$(tput lines) | |
COLUMNS=$(tput cols) | |
declare -A snowflakes | |
declare -A lastflakes | |
clear |
cd ~ | |
sudo yum update | |
sudo yum install java-1.7.0-openjdk.i686 -y | |
wget https://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.9.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
mv elasticsearch-* elasticsearch | |
sudo mv elasticsearch /usr/local/share |
<?php | |
$secret = "supersecret"; | |
if(isset($_COOKIE['secret']) && $_COOKIE['secret'] == $secret) | |
{ | |
} | |
else | |
{ | |
if(!isset($_GET['secret'])) | |
{ |
# -*- mode: ruby -*- | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.network :public_network, :bridge => "eth0" | |
config.vm.synced_folder "data", "/data" | |
config.vm.synced_folder "mesos", "/mesos" | |
config.vm.synced_folder "/home/dln/src/mesos-docker/target/scala-2.10", "/mesos/mesos-docker" | |
config.vm.synced_folder "salt", "/srv/salt" |
#user nobody; | |
worker_processes 1; | |
#error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; |
The patch described below may no longer be necessary. CloudFlare instructions here. Perl module JSON::Any
may still be required, however, see comments.
Dyn's free dynamic DNS service will be ending on Wednesday, May 7th, 2014.
CloudFlare, however, has a little known feature that will allow you to update your DNS records via API or a command line script called ddclient. This will
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
use std::collections::HashMap; | |
use std::num::abs; | |
pub struct Preference { | |
name: String, | |
flavors: HashMap<String, int> | |
} | |
impl Preference { | |
pub fn compare_preference<'a>(&'a self, preferences: &'a[Preference]) -> Option<&'a str> { |
# Maintainer: Juan Diego Tascon | |
# Maintainer: Swift Geek | |
pkgname=bluez-git | |
pkgver=20130324 | |
pkgrel=1 | |
pkgdesc="Libraries and tools for the Bluetooth protocol stack" | |
url="http://www.bluez.org/" | |
arch=('i686' 'x86_64') | |
license=('GPL2') |