Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
br0ns committed Dec 22, 2012
1 parent 4809330 commit 4d05db6
Show file tree
Hide file tree
Showing 12 changed files with 5,055 additions and 37 deletions.
Binary file added blink
Binary file not shown.
23 changes: 23 additions & 0 deletions blink.c
@@ -0,0 +1,23 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

char *on = "0 on";
char *off = "0 off";

int main () {
int fd, i;
setuid(0);
setgid(0);
if ((fd = open("/proc/acpi/ibm/led", O_WRONLY)) == -1) _exit(0);
for (i = 0; i < 10; i++) {
write(fd, off, strlen(off));
usleep(200000);
write(fd, on, strlen(on));
usleep(200000);
}
close(fd);
}
1 change: 1 addition & 0 deletions dotXresources
@@ -1 +1,2 @@
Emacs.Font: Liberation Mono-7
XTerm*bellIsUrgent: true
2 changes: 2 additions & 0 deletions dotbashrc
Expand Up @@ -116,6 +116,8 @@ alias gdb='gdb -n -x ~/.gdbinit'
alias mosml='rlwrap mosml'
alias sml='rlwrap sml'
alias emacs='emacs -nw'
alias strings='strings -a'
alias nasm='nasm -I $HOME/zomg_pwnies/tools/pwn/include/nasm/'
function odl () { objdump -dMintel "$1" | less; }
function oDl () { objdump -DMintel "$1" | less; }
function hdl () { hexdump -C "$1" | less; }
Expand Down
5 changes: 5 additions & 0 deletions dotemacs.d/config/bindings.el
Expand Up @@ -54,3 +54,8 @@
(global-set-key [(meta control left)] 'evil-numbers/dec-at-pt)
(global-set-key (kbd "<f7>") 'clipboard-kill-ring-save)
(global-set-key (kbd "<f8>") 'clipboard-yank)
(global-set-key (kbd "C-<") 'decrease-indentation)
(global-set-key (kbd "C->") 'increase-indentation)
(global-set-key (kbd "C-<") 'decrease-left-margin)
(global-set-key (kbd "C->") 'increase-left-margin)
(global-set-key (kbd "C-S-d") 'kill-word)

0 comments on commit 4d05db6

Please sign in to comment.