Skip to content

Instantly share code, notes, and snippets.

Write something..

Fatih Mert Doğancan fatihmert

Write something..
Block or report user

Report or block fatihmert

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
armicron / hello_world_into_file.asm
Created Oct 10, 2016
NASM x86_64 open file and write 'Hello world'
View hello_world_into_file.asm
section .text
global _start ;must be declared for linker (ld)
_start: ;tell linker entry point
mov rdi, filename
mov rsi, 0102o ;O_CREAT, man open
mov rdx, 0666o ;umode_t
mov rax, 2
gaearon / slim-redux.js
Last active Nov 7, 2019
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
View slim-redux.js
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
wenzhixin / ubuntu14.04-command-line-install-android-sdk
Last active Sep 26, 2019
Ubuntu 14.04 command line install android sdk
View ubuntu14.04-command-line-install-android-sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
gabrielfalcao / gist:4216897
Created Dec 5, 2012
TCP socket error codes
View gist:4216897
0 = Success
1 = Operation not permitted
2 = No such file or directory
3 = No such process
4 = Interrupted system call
5 = Input/output error
6 = No such device or address
7 = Argument list too long
8 = Exec format error
You can’t perform that action at this time.