Skip to content

Instantly share code, notes, and snippets.

View ryuone's full-sized avatar

Ryuichi Maeno ryuone

View GitHub Profile
@ryuone
ryuone / AES.c
Created October 13, 2015 13:02 — forked from bricef/AES.c
A simple example of using AES encryption in Java and C.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
* MCrypt API available online:
* http://linux.die.net/man/3/mcrypt
*/
#include <mcrypt.h>
@ryuone
ryuone / connect_air.sh
Created October 18, 2015 13:31 — forked from j3tm0t0/connect_air.sh
SORACOM Air + FS01BU を、Raspberry Pi や Intel Edison (debianインストール&USB-OTGケーブルで接続) で使用するための接続スクリプト(要: wvdial / usb-modeswitch)
#!/bin/bash
lsusb
# USB modem device information
vendor=1c9e # OMEGA TECHNOLOGY
product=6801 # 3G(FS01BU)
tty=/dev/ttyUSB2
init_modem()
{