Skip to content

Instantly share code, notes, and snippets.

View wf9a5m75's full-sized avatar
💭
I may be slow to respond.

Masashi Katsumata wf9a5m75

💭
I may be slow to respond.
View GitHub Profile
@wf9a5m75
wf9a5m75 / filedownload.sh
Last active June 28, 2018 01:23
Download a file from your github repository directly (without git clone). You need to get your personal access key at https://github.com/settings/tokens
#!/usr/bin/env bash
export GITHUB_ACCESS_TOKEN=""
export GITHUB_USERNAME=""
export REPO_OWNER=""
BRANCH=""
REPO=""
FILE_PATH=""
. ~/.profile
@wf9a5m75
wf9a5m75 / fb2bmp.c
Created August 5, 2015 17:22
Android Screen Capture
/************************************************/
// 2012.07.12
// Author: pentux
// http://android-dev-log.ldblog.jp/archives/11346611.html
/************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
{ errors: [],
code: 503,
message: 'Backend Error',
response:
{ _readableState:
{ highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
### _/IMPORTANT NOTE_/
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
### i really prefer ruby, python, C, sh, pgsql or whatever. but this was done for a DIY project, so
### please do not flame on the mariadb and php5 installation, thats not whats important here anyways.
###
### if i forgot someting, please drop me a line instantly via: Mail: azet@azet.org (GPG prefered) or
### via XMPP (OTR prefered): azet@jabber.ccc.de - see also: www.azet.org / https://twitter.com/a_z_e_t
###
### as always, of course: this is public domain knowledge. no warranties.
### - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@wf9a5m75
wf9a5m75 / file0.txt
Last active August 29, 2015 14:18
Redisで複数キーを操作する ref: http://qiita.com/wf9a5m75/items/79bb58f945520404b997
$ redis-cli
keys key:*
1) "key:01"
2) "key:02"
3) "key:03"
4) "key:04"
5) "key:05"
# これは日本語のファイル
第1章 HelloWorld
- 第1節 テスト
第2章 How to use Atom?
- 第1節 Atomのインストール
---
writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"------(change)sceneMode=action\0", 31}], 3) = 43
writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> this.mCamera.getParameters()\0", 37}], 3) = 49
ioctl(9, 0xc0186201, 0xbea1e2d8) = 0
writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> params.setSceneMode(sceneMode);\0", 40}], 3) = 52
writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> mCamera.setParameters(params);;\0", 40}], 3) = 52
00:54:14.692691 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"------(change)sceneMode=fireworks\0", 34}], 3) = 46
00:54:14.693628 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> this.mCamera.getParameters()\0", 37}], 3) = 49
00:54:14.694277 ioctl(9, 0xc0186201, 0xbea1e2d8) = 0
00:54:14.695542 ioctl(9, 0xc0186201, 0xbea1e2d8) = 0
00:54:14.700098 mprotect(0x4412b000, 8192, PROT_READ|PROT_WRITE) = 0
00:54:14.700822 futex(0x4155f130, 0x80 /* FUTEX_??? */, 2) = 0
00:54:14.701454 mprotect(0x6bd9b000, 64, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
00:54:14.701733 syscall_983042(0x6bd9b03c, 0x6bd9b040, 0, 0xfff, 0x4155f0b0, 0x6bd9b03c, 0x6bd9b5b1, 0xf0002, 0, 0x6bd9b040, 0x4300e2b8, 0x4412a978, 0, 0xbea1e5a8, 0x41527bd5, 0x40081810, 0xf0010, 0x6bd9b03c, 0, 0, 0xc764, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = 0
00:54:14.701855 mprotect(0x6bd9b000, 64, PROT_READ|PROT_EXEC) = 0
00:54:14.701980 futex(0x4155f130, 0x81 /* FUTEX_??? */, 1) = 1
00:54:20.663379 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"------(change)sceneMode=action\0", 31}], 3) = 43
00:54:20.663928 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> this.mCamera.getParameters()\0", 37}], 3) = 49
00:54:20.665147 ioctl(9, 0xc0186201, 0xbea1e2d8) = 0
00:54:20.665530 ioctl(9, 0xc0186201, 0xbea1e2d8) = 0
00:54:20.666586 mprotect(0x44161000, 8192, PROT_READ|PROT_WRITE) = 0
00:54:20.666903 mprotect(0x44163000, 4096, PROT_READ|PROT_WRITE) = 0
00:54:20.667118 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> params.setSceneMode(sceneMode);\0", 40}], 3) = 52
00:54:20.667444 writev(3, [{"\3", 1}, {"MainScreen\0", 11}, {"----> mCamera.setParameters(params);;\0", 40}], 3) = 52
00:54:20.667810 mprotect(0x44164000, 4096, PROT_READ|PROT_WRITE) = 0
00:54:20.667989 mprotect(0x44165000, 4096, PROT_READ|PROT_WRITE) = 0