Skip to content

Instantly share code, notes, and snippets.

echo "USAGE: rpi-netflix.sh workdirectory"
echo "THIS ASSUMES YOU HAVE CHROMIUM!!!"
echo "IF NOT, PRESS CTRL+C"
sleep 5
wget https://dl.google.com/dl/edgedl/chromeos/recovery/linux_recovery.sh
echo "YOU MUST HAVE ENOUGH FREE SPACE!!!"
echo "14\n" | sudo WORKDIR=$1 ./linux_recovery.sh
cd $1
sudo apt-get install kpartx
sudo kpartx -avs chromeos*.bin
@angp
angp / docker-web-app.md
Created January 25, 2016 08:32 — forked from kevingo/docker-web-app.md
Dockerizing a Node.js web app

Dockerizing a Node.js web app

如果想要在 Docker 在跑 NodeJS 的應用,可以參考 NodeJS 官網上有一篇 「Dockerizing a Node.js web app」介紹,還蠻簡單易懂的,這邊稍微紀錄一下相關步驟。

建立 package.json

{
  "name": "docker_web_app",
  "version": "1.0.0",
package com.example.anothersignintest;
import java.io.IOException;
import com.google.android.gms.auth.GoogleAuthException;
import com.google.android.gms.auth.GoogleAuthUtil;
import com.google.android.gms.auth.UserRecoverableAuthException;
import com.google.android.gms.common.Scopes;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesClient.ConnectionCallbacks;
//Origional code from http://www.ediy.com.my/index.php/blog/item/74-digispark-infrared-receiver
//Modified by Daniel Splawski 02/11/2013
//Uncomment DigiKeyboard statments for debugging
//#include <DigiKeyboard.h>
#include <SoftwareSerial.h>
SoftwareSerial mySerial(0,1); // RX, TX
int irPin = 2; //Sensor pin connect to digital pin2 (ATINY85 pin7)
/* A simple ADC example that checks the analog reading on ADC0 and turns
* an LED on if the reading is higher than a threshold value and turns if
* off if it is under that value. */
#include <avr/io.h>
#include <stdint.h>
/* Which analog pin we want to read from. The pins are labeled "ADC0"
* "ADC1" etc on the pinout in the data sheet. In this case ADC_PIN
* being 0 means we want to use ADC0. On the ATmega328P this is also
* the same as pin PC0 */