Skip to content

Instantly share code, notes, and snippets.

View legokichi's full-sized avatar
😇
neary heaven

Legokichi Duckscallion legokichi

😇
neary heaven
View GitHub Profile
@legokichi
legokichi / vpnclient
Last active May 8, 2021 17:05
softether vpn client for ubuntu /etc/init.d/vpnclient
#! /bin/sh
### BEGIN INIT INFO
# Provides: vpnclient
# Required-Start: $all
# Required-Stop: $network $local_fs $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start VPN Client at boot time
# chkconfig: 345 44 56
# description: Start VPN Client at boot time.
@legokichi
legokichi / gist:b898512ccf26ba714146
Last active August 29, 2015 14:02
リモセン
6/24 出番
7/4
7/11
この論文は役に立つのか
カネになるのか
@legokichi
legokichi / file0.txt
Last active August 29, 2015 14:03
ArduinoからRoombaをSoftware Serialで動かす ref: http://qiita.com/DUxCA/items/36a13e68722c51c72927
#include <SoftwareSerial.h>;
SoftwareSerial device(10, 11);
void setup(){
device.begin(115200);
}
void loop(){}
@legokichi
legokichi / mpi.c
Last active August 29, 2015 14:03
台形積分
$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU L5630 @ 2.13GHz
stepping : 2
cpu MHz : 426.069
cache size : 12288 KB
fpu : yes
// This provides symbolic names for the octal modes used by git trees.
window.modes = require('./lib/modes');
// Create a repo by creating a plain object.
window.repo = {};
// This provides an in-memory storage backend that provides the following APIs:
// - saveAs(type, value) => hash
// - loadAs(type, hash) => hash
@legokichi
legokichi / e7.md
Last active August 29, 2015 14:27
2015夏イベ投入戦力計画表
XY削り第一 制空246 ---- ---- ----
あきつ 烈風 烈風 司令
長門 試41 試41 零観 三式
陸奥 試41 41 零観 三式
摩耶 2号 90mm単装高角 FuMO 集中配備
千代田 烈風改 天山友永 烈風601 FuMO
千歳 烈風601 天山村田 烈風 彩雲
XY削り第二 ---- ---- ---- ----
阿武隈改一 3号 3号 夜偵
import UIKit
import XCPlayground
// see also
// https://github.com/pixiv/summer-intern-2015-a
// https://github.com/pixiv/summer-intern-2015-a-server
// ===========
let baseURL = "http://133.242.234.139/api/"
第二十二駆逐隊: 皐月、文月、長月
海上突入部隊: 比叡、霧島、長良、暁、雷、電
新編第六駆逐隊: 暁改二、響、雷、電
第五航空戦隊:翔鶴、瑞鶴、朧、秋雲
新編第二十一戦隊:那智改二、足柄改二、多摩、木曽
第十六戦隊:足柄、球磨、長良
第六戦隊南西海域:古鷹、青葉、加古、衣笠
新編「三川艦隊」ソロモン方面へ!:鳥海改二、古鷹、加古、青葉、衣笠、夕張
第一水雷戦隊ケ号作戦:阿武隈、響、初霜、若菜、五月雨、島風
@legokichi
legokichi / NarLoader.d.ts
Last active August 16, 2016 05:41
dtsm local repo
// Generated by typings
// Source: https://gist.githubusercontent.com/legokichi/c3d5420057bcb554dc11/raw/39f6b9a3852daed2d88c75b737247c59eccb4c3a/NarLoader.d.ts
declare module NarLoader {
function loadFromBuffer(buffer: ArrayBuffer): Promise<NanikaDirectory>;
function loadFromURL(url: string): Promise<NanikaDirectory>;
function loadFromBlob(blob: Blob): Promise<NanikaDirectory>;
}
declare class NanikaFile {
constructor(file: ArrayBuffer);