Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
cd ~/
if [[ $(uname) != "Darwin" ]]; then
pulseaudio --start
xsetroot -cursor_name left_ptr
xsetroot -bg "#121212" -mod 3 3
xscreensaver -no-splash &
chromium&
urxvt&
#include <alpm.h>
#include <alpm_list.h>
#include <stdio.h>
static void alpm_init();
int main() {
alpm_list_t *i;
set bind-tty-special-chars on
set blink-matching-paren on
set byte-oriented off
set completion-ignore-case on
set convert-meta off
set disable-completion off
set echo-control-characters on
set enable-keypad off
set enable-meta-key on
set history-preserve-point off
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
source ~/bin/key
source ~/.bash/functions
#!/bin/sh
cd ~/
if [[ $(uname) != "Darwin" ]]; then
pulseaudio --start
xsetroot -cursor_name left_ptr
xsetroot -bg "#121212" -mod 3 3
xscreensaver -no-splash &
google-chrome&
urxvt&
include $(GOROOT)/src/Make.inc
CMDS=\
command-1\
command-2\
command-3
PKGS=\
package-1\
package-2\
#include <git2.h>
#include <stdio.h>
#define BARE 1
#define NOTBARE 0
int test_repo(const char *path, unsigned type);
int main()
*
!rc.conf
!hosts
!hosts.allow
!pacman.d/mirrorlist
!locale.gen
!.gitignore
func (v *Oid) String() string {
p := C.git_oid_allocfmt(v.git_oid)
sha := C.GoString(p)
C.free(unsafe.Pointer(p))
return sha
}
include $(GOROOT)/src/Make.inc
export LD_LIBRARY_PATH := libgit2/build/shared
TARG=git
CGOFILES=git.go
GOFILES=defs.go
CGO_CFLAGS:=`pkg-config --cflags libgit2`