Skip to content

Instantly share code, notes, and snippets.

View Quotes
In the grand scale of this cosmic universe, man is but a blip in the heavens. All his desires, wants, and needs pass on but a speck of dust in the vast nothinginess. His trials and tribulations, these are but meaningless distractions in his journey towards his own death. His lovers and passions are nothing compared to the great grand scale of the universe. His existence has no function, serves no propose, and is nothing. So, eat at Arby’s.
@elvinio
elvinio / patch_codegen_c_json_parser.c
Created Nov 4, 2016
Patch for flatcc to support null
View patch_codegen_c_json_parser.c
545 println(out, "if(*buf == 'n' && memcmp(buf+1, \"ull\", 3) == 0){buf+=4; ref = flatcc_builder_create_string(ctx->ctx, mark, 0);}else{");
546 indent();
565 unindent(); println(out, "}");
@elvinio
elvinio / chinesetech.md
Last active Sep 4, 2017
Chinese words you need to know to speak technical with Chinese developers
View chinesetech.md
Programming -
Abstract 抽象
Acronym 首字母缩写
Algorithm 算法
Array 数组
Assembly Language 汇编语言
Asynchronous 异步
Attribute 属性
Binary 二进制
@elvinio
elvinio / x86.json
Created Aug 24, 2016
x86 instruction set
View x86.json
{
" AAA":"ASCII Adjust After Addition",
" AAD":"ASCII Adjust AX Before Division",
" AAM":"ASCII Adjust AX After Multiply",
" AAS":"ASCII Adjust AL After Subtraction",
" ADC":"Add with Carry",
" ADCX":"Unsigned Integer Addition of Two Operands with Carry Flag",
" ADD":"Add",
" ADDPD":"Add Packed Double-Precision Floating-Point Values",
" ADDPS":"Add Packed Single-Precision Floating-Point Values",
View Perf
[ec2-user@ip-172-31-27-8 pmu-tools]$ ./ocperf.py
Downloading https://download.01.org/perfmon/mapfile.csv to mapfile.csv
Downloading https://download.01.org/perfmon/IVT/IvyTown_core_V17.json to GenuineIntel-6-3E-core.json
Downloading https://download.01.org/perfmon/IVT/IvyTown_matrix_V17.json to GenuineIntel-6-3E-offcore.json
Downloading https://download.01.org/perfmon/IVT/IvyTown_uncore_V17.json to GenuineIntel-6-3E-uncore.json
Downloading https://download.01.org/perfmon/readme.txt to readme.txt
perf
[ec2-user@ip-172-31-27-8 pmu-events]$ l
total 880
View .screenrc
startup_message off
#turn off visual bell
vbell off
shelltitle '> |'
maptimeout 5
#remove vim buffer when done
altscreen on
View .vimrc
execute pathogen#infect()
syntax on
filetype plugin indent on
set nocompatible
set exrc
set secure
set tabstop=4
set softtabstop=4
set shiftwidth=4
set wmh=0
View Check
/proc/sys/kernel/kptr_restrict
View .bashrc
PS1='\t $PWD$ '
################## Start of alias and function helpers #####################
# Change to directory and list content
c (){
if [ $# -eq 1 ]; then
cd $1; ls -ltr;
else
cd ..; ls -ltr;
fi
@elvinio
elvinio / color.reg
Created May 27, 2016
Putty color scheme
View color.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]
"Colour0"="217,230,242"
"Colour1"="217,230,242"
"Colour2"="14,27,48"
"Colour3"="14,27,48"
"Colour4"="14,27,48"
"Colour5"="217,230,242"
"Colour6"="0,0,0"
You can’t perform that action at this time.