This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFLAGS="-O2 -ffast-math -fomit-frame-pointer -march=i686" ./configure --prefix=/opt/sourcenav --enable-mingw -C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# git config --global -e | |
# | |
# [diff] | |
# tool = winmerge | |
# [difftool "winmerge"] | |
# cmd = winmerge.sh $LOCAL $REMOTE $BASE | |
# [difftool] | |
# prompt = false | |
NULL="/dev/null" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Building src\uffs\uffs.gpj | |
Compiling uffs_version.c because uffs_version.o does not exist | |
Compiling uffs_badblock.c because uffs_badblock.o does not exist | |
"src\uffs\src\uffs\uffs_badblock.c", line 93: warning #550-D: variable "type" | |
was set but never used | |
u8 type; | |
^ | |
Compiling uffs_blockinfo.c because uffs_blockinfo.o does not exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Free jansson object by json_decref() | |
void cgi_JSON() | |
{ | |
json_t *pObj = json_pack ("{s:i, s:s}", "foo", 1, "bar", "string"); | |
char *pString = json_dumps(pObj, JSON_INDENT(2)); | |
HttpSend(pString); | |
free(pString); | |
json_decref(pObj); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gdb --args program arg1 arg2 ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local: | |
[email protected] /home/rogerz/cash | |
├─┬ [email protected] | |
│ ├─┬ [email protected] | |
│ │ ├── [email protected] | |
│ │ ├── [email protected] | |
│ │ └── [email protected] | |
│ ├── [email protected] | |
│ ├── [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <yaml.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#ifdef NDEBUG | |
#undef NDEBUG | |
#endif | |
#include <assert.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function() { | |
$.validator.addMethod("list", function(value, element, param) { | |
var isValid = false; | |
var list = $.parseJSON(param); | |
$.each(list, function() { | |
if (value == this) { | |
isValid = true; | |
return false; | |
}; | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
la = log --graph --oneline --decorate --all | |
lg = log --graph --oneline --decorate --all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST / HTTP/1.1 | |
Accept: text/html, application/xhtml+xml, */* | |
Referer: http://ec2-23-20-227-204.compute-1.amazonaws.com:3000/ | |
Accept-Language: zh-CN | |
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0) | |
Content-Type: multipart/form-data; boundary=---------------------------7dcf3a405aa | |
Accept-Encoding: gzip, deflate | |
Host: ec2-23-20-227-204.compute-1.amazonaws.com:3000 | |
Content-Length: 18271 | |
Connection: Keep-Alive |
OlderNewer