This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# cmus-status-display | |
# | |
# Usage: | |
# in cmus command ":set status_display_program=cmus-status-display" | |
# | |
# This scripts is executed by cmus when status changes: | |
# cmus-status-display key1 val1 key2 val2 ... | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
usage() { | |
echo "usage: $0 <title>" | |
} | |
if [ $# -eq 0 ] ; then | |
usage | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
#RUNTIME is the path to the directory with the makefile/cubex_lib.h etc | |
#JARFILE is the path to your compiler | |
RUNTIME=../../../runtime | |
JARFILE=../../../x3c.jar | |
FLAGS= | |
FILES= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Starting out | |
============ | |
$ vim -u NONE | |
:syntax on # minimal configuration so we're all on the same page | |
$ vimtutor | |
:h | |
Basics | |
====== | |
the dot command (:h .) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following actions will be performed: | |
- install merlin.1.3.1 | |
1 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove | |
=-=-= Installing merlin.1.3.1 =-=-= | |
The archive for merlin.1.3.1 is in the local cache. | |
Extracting /home/andrew/.opam/archives/merlin.1.3.1+opam.tar.gz. | |
Building merlin.1.3.1: | |
./configure --prefix /home/andrew/.opam/4.00.1 | |
make |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# | |
# Script for notifying when battery is low | |
# Set it up as a cronjob with | |
# | |
# $ crontab -e | |
# | |
# put the following in your crontab file to check every minute | |
# | |
# * * * * * env DISPLAY=:0.0 <absolute path to script> |