Skip to content

Instantly share code, notes, and snippets.

View sgk's full-sized avatar

Shigeru KANEMOTO sgk

  • Switch Science /144Lab
  • Tokyo / Osaka
View GitHub Profile
@sgk
sgk / usrp-b200-enclosure.md
Last active January 29, 2016 03:36
Ettus Research USRP B200 Enclosure Ingredients
@sgk
sgk / README.md
Created May 21, 2014 01:36
Ubuntu 14.04LTS on Intel Rapid Storage Technology

Intel Rapid Storage TechnologyによるRAIDが動いているウィンドウズ機に、Ubuntu 14.04LTSを入れ、デュアルブートにする。

簡単にはいかない。 試行錯誤した結果、重要な点。

  • swapパーティションを作らずにインストールする。
  • 「/」用に作ったパーティションがドライブのように見えるエントリが有るので、ここにブートローダをインストールする。
  • インストール完了後、再起動せずに、「Boot Repair」等でブートローダを修復する。
  • 最後にswapパーティションを作って追加する。
@sgk
sgk / gist:8883849
Created February 8, 2014 13:38
Intel Rapid Storage TechnologyのRAID1でディスク容量を増やす

Intel Rapid Storage TechnologyのRAID1でディスク容量を増やす

  1. 電源オフにし、ドライブを1台外して、大きな容量のドライブを装着する。
  2. 電源オンにし、起動完了後、管理アプリを起動し、今装着したドライブを「スペア」として指定する。
  3. リビルドが行われるので、完了するまで待つ。
  4. 電源オフにし、もう1台のドライブも外して、大きな容量のドライブを装着する。
@sgk
sgk / reset.ino
Created December 7, 2013 16:32
Reset Arduino after flashing 100 times. The bootloader will not work. Arduinoで、100回点滅した後にリセットする。ブートローダは動きません。
#include <avr/wdt.h>
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
for (int i = 0; i < 100; i++) {
digitalWrite(13, HIGH);
delay(30);
@sgk
sgk / baseball.ino
Last active December 25, 2015 21:49
Arduino "baseball" game
#define BUTTON 2
#define SPEAKER 3
#define BALL5 9
#define BALL4 10
#define BALL3 11
#define BALL2 12
#define BALL1 13
#define DURATION 500000
unsigned long duration = DURATION;
% sudo apt-get install golang
% sudo apt-get install vim-syntax-go
% vim-addon-manager install go-syntax
@sgk
sgk / PatchYun.ino
Created September 20, 2013 17:50
Patch Yun to disable WiFi function.
#include <Process.h>
void setup() {
Bridge.begin();
Serial.begin(9600);
while (!Serial)
;
Serial.print("Patching...");
@sgk
sgk / delcom.bat
Created September 18, 2013 12:06
# execute this script as an administrator.
set devmgr_show_nonpresent_devices=1
start devmgmt.msc
@sgk
sgk / patch.ino
Last active April 9, 2017 20:36
Patch Arduino Yun to disable WiFi
#include <Process.h>
void setup() {
Bridge.begin();
Serial.begin(9600);
while (!Serial)
;
Serial.println("Invoking patch script on Yun.");
@sgk
sgk / EAGLE.SCR
Last active December 20, 2015 12:18
EAGLE.SCR
# Configuration Script
#
# This file can be used to configure the editor windows.
# GENERAL:
# Switch Science
ASSIGN C+0 WINDOW FIT;
ASSIGN F7 MOVE;
ASSIGN F8 ROUTE;