Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
| FROM alpine:latest | |
| RUN apk add --update php python py-pip mysql-client \ | |
| && pip install awscli \ | |
| && rm -rf /var/cache/apk/* | |
| RUN touch crontab.tmp \ | |
| && echo '* */6 * * * /usr/bin/php /var/www/partkeepr/app/console partkeepr:cron:run' > crontab.tmp \ | |
| && echo '0 2 * * * /usr/bin/sql_backup' >> crontab.tmp \ | |
| && crontab crontab.tmp \ |
| SPC s c remove highlight | |
| **** Files manipulations key bindings | |
| Files manipulation commands (start with ~f~): | |
| | Key Binding | Description | | |
| |-------------+----------------------------------------------------------------| | |
| | ~SPC f c~ | copy current file to a different location | | |
| | ~SPC f C d~ | convert file from unix to dos encoding | | |
| | ~SPC f C u~ | convert file from dos to unix encoding | |
emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/C-?M-c
2. Upper Case : M-uM-l| #!/home/sblip/article.2 | |
| using the getdents(2) Linux syscall to read directory entries from disk. | |
| This article assumes basic knowledge of at&t syntax assembly, and basic | |
| understanding of how to make system calls in linux through int 0x80h. |
| Printing an integer to stdout with printf in 64-bit NASM (Linux) | |
| While doing some debugging, I found myself wanting to print an address to the screen, and it | |
| took me forever to piece together how to do it from several tutorials. | |
| The main things you need to know are | |
| 1) use 'main:' as a label and not '_start:' - because you are calling libc, it won't work without main. | |
| 2) compile or link with -lc (that's short for libc). | |
| 3) declare printf as extern | |
| 4) zero the vector registers (put 0 into rax). I don't know why, but apparently you are supposed to. |
| [9/17/2014] Challenge #180 [Intermediate] Tamagotchi emulator | |
| http://www.reddit.com/r/dailyprogrammer/comments/2gryun/ | |
| Only for windows x64 | |
| compile this with: | |
| nasm -f win64 t_main.asm | |
| nasm -f win64 t_pet.asm | |
| nasm -f win64 t_random.asm |
| BITS 64 | |
| org 0x08048000 | |
| ehdr: ; ELF64_Ehdr(ELF header) | |
| db 0x7f, "ELF", 2, 1, 1 ; e_ident | |
| times 9 db 0 ; e_ident | |
| dw 2 ; u16 e_type | |
| dw 0x3e ; u16 e_machine /usr/include/linux/elf-em.h | |
| ; 62 = x86-64 | |
| dd 0x01 ; u32 e_version |
Tired of waiting for emacs to start on OS X? This step by step guide will
teach you how to install the latest version of emacs and configure it to start
in the background (daemon mode) and use emacsclient as your main editor.
Download the latest pretest version of [Emacs for Mac OS X]: http://emacsformacosx.com/builds