This file contains hidden or 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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <sys/mman.h> | |
typedef int (*func_t)(void); | |
int main(int argc, char *argv[]) | |
{ | |
/* push %ebp |
This file contains hidden or 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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <sys/mman.h> | |
typedef int (*func_t)(void); | |
int main(int argc, char *argv[]) | |
{ | |
char *fstart = "\x55\x48\x89\xe5\x48\x31\xc0"; |
This file contains hidden or 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 <aklisp.h> | |
#include <stdio.h> | |
AKL_CFUN_DEFINE(hello, in, args) | |
{ | |
printf("Hello, world from 'hello' module!\n"); | |
/* Every function must return something, | |
the type of 'akl_value' */ | |
return &NIL_VALUE; | |
} |
This file contains hidden or 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
#!/usr/bin/env ruby | |
HEIGHT = 1024 | |
WIDTH = 1024 | |
f = File.new("sample.pgm", "w") | |
f.puts "P2" | |
f.puts "#{HEIGHT} #{WIDTH}" | |
f.puts 255 | |
f.puts "# Generated by pgen.rb (C) Akos Kovacs" | |
HEIGHT.times do |row| |
This file contains hidden or 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
#!/usr/bin/env ruby | |
# Run with | |
# $ chmod +x chat.rb && ./chat.rb | |
# or | |
# $ ruby chat.rb | |
require 'socket' | |
require 'thread' |
This file contains hidden or 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
syntax on | |
set autoindent | |
set smartindent | |
set nocp | |
filetype plugin on | |
au BufRead,BufNewFile *.rc set filetype=rc | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set number |
NewerOlder