Debian: debuild

sudo mk-build-deps -i debian/control

debuild -b -uc -us

2015-12-19 00:2824CommandsDebianLinux

Arch Linux Docker Container

docker run --name arch -h arch --privileged -v /root/arch:/root -dit base/archlinux init

$ cat start

docker start $1

$ cat exec

docker exec -it $1 sh -c 'exec >/dev/tty 2>/dev/tty </dev/tty && su -'

2015-10-14 20:2538DockerCommandsLinux

Differences between BSD Grep and GNU Grep

$ cat 1.txt

321

123

1234

1452314124123

$ cat 2.txt

321

1452314124123

1452314124123123123123

1234

3214

BSD grep:

$ grep -V

grep (BSD grep) 2.5.1-FreeBSD

$ grep -f 1.txt 2.txt -w

321

$ grep -f 2.txt 1.txt -w

321

1234

1452314124123

GNU grep:

$ gre......

2015-09-20 14:5243CommandsOS XLinux

Determine Palindrome using Stack

Ruby Code:

a = gets.strip

b = []

c = []

for i in 0 .. a.length / 2

b.push(a[i])

c.push(a[a.length - i - 1])

end

if b == c

puts "It's palindrome."

end

ECMAScript/JavaScript Code:

"use strict";

process.stdin.on('dat......

Windows Link Explicitly

typedef BOOL(WINAPI *nGetFirmwareType)(

PFIRMWARE_TYPE FirmwareType);

static nGetFirmwareType pGetFirmwareType = NULL;

static HMODULE hKernel32 = NULL;

if (IsWindows8OrGreater()) {

FIRMWARE_TYPE FirmwareType;

if (!hKernel32) {

h......

2015-09-15 00:0736Windows

Merge two Ascending Singly Linked Lists to a Descending Singly Linked List

void merge (LinkList La, LinkList Lb)

{

LNode *tmp, *pa = La->next, *pb = Lb->next;

La->next = NULL;

for (pa && pb)

{

if (pa->data <= pb->data)

{

tmp = pa->next;

pa-......

2015-09-13 11:3848Data Structure

WeChat Cloud Backup

WeChat 6.2.5 has disabled cloud backup function, just roll back to 6.2.4:

http://dla.newhua.com/down/weixin624android600.apk

MD5: 7ae64dd74cae20c69dc876357cda2e55

SHA1: 0ac0b60eac009e0e67285aff71bce60021f51070

2015-09-10 16:57108Android

Android: SONiVOX MIDI DLS

android/platform/external/sonivox/arm-hybrid-22k/lib_src/hybrid_22khz_mcu.c

android/platform/external/sonivox/arm-wt-22k/lib_src/wt_22khz.c

android/platform/external/sonivox/arm-wt-22k/jetcreator_lib_src/darwin-x86/wt_44khz.c

https://android.google......

2015-08-07 00:2059AndroidMIDI

Music: The Range of Danso

音乐:短箫的音域

Using the scientific pitch notation:

使用科学音调记号法:

The range of danso is G4 to G6.

短箫的音域为G4至G6。

Using the Helmholtz pitch notation:

使用亥姆霍兹音调记号法:

The range of danso is g1 to g3.

短箫的音域为g1至g3。

References:

参考资料:

https://github.com/musesc......

2015-08-05 00:3428InstrumentMusicMIDI

Music: The Range of Koto

音乐:日本筝的音域

Using the scientific pitch notation:

使用科学音调记号法:

The range of koto is G2 to B5.

日本筝的音域为G2至B5。

Using the Helmholtz pitch notation:

使用亥姆霍兹音调记号法:

The range of koto is G to b2.

日本筝的音域为G至b2。

References:

参考资料:

https://github.com/musesco......

2015-08-05 00:3023InstrumentMusicMIDI