Skip to content

Instantly share code, notes, and snippets.

View vansteki's full-sized avatar
🍵

vansteki vansteki

🍵
  • Taiwan
View GitHub Profile
@vansteki
vansteki / aldnoah.zero.js
Created April 1, 2015 08:00
aldnoah.zero logo
var a = 'MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMMMMMMMM7777MMMMMMMMMMMMMMMMMM77MMMMMM777777777777MMMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMMMMMMM77777MMMMMMMMMMMMMMMMM777MMMMMM777777777777MMMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMMMMMMN777777MMMMMMMMMMMMMMM7777MMMMMMMMMMMMMM7777MMMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMMMMMM777M777NMMMMMMMMMMMMM7777MMMMMMMMMMMMM8777OMMMMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMMMMM7777MM777MMMMMMMMMMMM7777MMMMMMMMMMMMM$777NMMMMMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMMMMM777MMM7777MMMMMMMMMM7777MMMMMMMMMMMMM7777MMMMMMMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMMMM777OMMMM777MMMMMMMMMI777MMMMMMMMMMMMM777IMMMMMMMMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMMMZ777MMMMMI777MMMMMMMZ777MMMMMMMMMMMMM7777MMMMMMMMMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMMM777MMMMMMM7778MMMMMM777MMMMMMMMMMMMM7777MMMMMMMMMMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMM7777MMMMMMMN777MMMMM777MMMMMMMMMMMMM7777777777777MMMMMMMMMMMMMMMM@MMMMMMMMMMMMMMM777MMMMMMMMM777MMMMM77MMMMMM
@vansteki
vansteki / gccRpm.sh
Created March 29, 2015 04:13
install gcc from rpm
curl -O ftp://ftp.pbone.net/mirror/www.haoli.org/pub/redhat-6.x-outdated/RPMS/i386/gcc-2.95-1.i386.rpm
rpm -ivh gcc-2.95-1.i386.rpm
@vansteki
vansteki / oldGcc.sh
Last active August 29, 2015 14:17
install older versoin gcc test
curl -O http://gcc.cybermirror.org/releases/gcc-3.3.3/gcc-3.3.3.tar.gz
tar zxf gcc-* && cd gcc-*
./configure && make && make install
@vansteki
vansteki / test.s-proc.sh
Last active August 29, 2015 14:17
test s-proc
#s-proc.c
curl -kO https://gist.githubusercontent.com/vansteki/5d6aece4271ef08c3481/raw/282f3d9d676c0e1d28e9612e99a5659ca37db684/s-proc.c
#hello.asm
curl -kO https://gist.githubusercontent.com/vansteki/4437071eff38ba5666bb/raw/da9631242d1a5a61b0e3645d60650178481e60dc/hello.asm
gcc -o s-proc s-proc.c
nasm -o hello.o hello.asm
./s-proc -p hello.o
./s-proc -e hello.o
@vansteki
vansteki / hello.asm
Created March 27, 2015 18:26
Hello, world!
global _start
_start:
xor eax,eax
xor ebx,ebx
xor ecx,ecx
xor edx,edx
jmp short string
code:
pop ecx
mov bl,1
@vansteki
vansteki / dev-essential.sh
Last active September 15, 2016 12:01
dev-essential
apt-get update -y;
apt-get install nano git npm screen build-essential nasm s3cmd curl lrzsz dos2unix -y;
#for latest nodes
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
apt-get install -y nodejs
ln -s /usr/bin/nodejs /usr/bin/node;
@vansteki
vansteki / s-proc.c
Created March 27, 2015 16:32
s-proc.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
/*
* Print message function
*/
@vansteki
vansteki / pip.install
Created March 27, 2015 13:25
install pip & change env var
curl https://bootstrap.pypa.io/get-pip.py | python
setx PATH "%PATH%;C:\Python27\Scripts" /M
@vansteki
vansteki / installVMwareTool.sh
Last active August 29, 2015 14:12
install vmware-tool
apt-get upgrade -y
cp -f /media/cdrom0/VMwareTools-* /root/
tar -xf /root/VMwareTools-*
./root/vmware-tools-distrib/vmware-install.pl -d
@vansteki
vansteki / dev-essential.sh
Last active August 29, 2015 14:10
build-essential
apt-get update -y;
apt-get install nodejs nano git npm screen build-essential -y;
ln -s /usr/bin/nodejs /usr/bin/node;