Skip to content

Instantly share code, notes, and snippets.

section .data
filename: db 'begin.asm', 0x00
message: db 'Welcome to Reader', 0x0a, 0x00
section .bss
buffer: resb 64
section .text
global start
section .data
filename: db 'begin.asm', 0x00
message: db 'Welcome to Reader', 0x0a, 0x00
section .bss
buffer: resb 64
section .text
global start
default rel
section .bss
buffer: resb 64
section .text
global start
start:
cmp qword [rsp], 1
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Dec 11 2011 20:09:43)
MacOS X (unix) version
Included patches: 1-372
Compiled by Davis Gallinghouse
Normal version without GUI. Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent
-clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
-conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path
+find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv
LEADER='==>'
echo $LEADER 'Fetching vim from hg...'
hg clone https://vim.googlecode.com/hg/ vim
cd vim/src
echo $LEADER 'Configuring...'
./configure --enable-rubyinterp --enable-multibyte --enable-gui=no --disable-netbeans --with-compiledby=Ian\ Rahimi --enable-pythoninterp --disable-gtktest
echo $LEADER 'Building...'
default rel
bits 64
; stuff we need to export to C
global _fiber_new
global _fiber_yield
global _fiber_start
global _fiber_resume
global _main
@dgalling
dgalling / AndroidManifest.xml
Created August 16, 2012 03:53
Correct Android Manifest
<manifest ...>
<permission android:name="com.example.project.EXAMPLE_PERMISSION" android:protectionLevel="signature"/>
<uses-permission android:name="com.example.project.EXAMPLE_PERMISSION"/>
<application ...>
<provider android:name=".ExampleProvider" android:grantUriPermissions="false" android:permission="com.example.project.EXAMPLE_PERMISSION"/>
</application>
</manifest>
* * * * * /usr/bin/curl --user-agent "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16" --location http://www.google.com >/dev/null 2>&1
module RParse
class Parser
def initialize(&block)
@block = block
end
def char(c)
case @buffer[0]
when c
@dgalling
dgalling / play
Created July 13, 2014 00:56
iTunes stopped working again. I wrote a simple music queue/player.
#!/usr/bin/env sh
TIMEOUT=0
while true; do
AUDIO_FILE=$(redis-cli BLPOP "$MUSIC_QUEUE" $TIMEOUT | grep --max-count=1 '^/')
afplay "$AUDIO_FILE"
done