Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Vasil ptrv

View GitHub Profile
@ptrv
ptrv / processing-mode.el
Created Nov 18, 2012 — forked from discolingua/processing-mode.el
Processing-mode for emacs and Processing 2.0
View processing-mode.el
;; processing-mode.el
;; Processing.org language based on Java mode. Adds keyword
;; highlighting for all recognized Processing language functions.
;; Allows compilation of buffers and "sketches" from within Emacs but
;; only for more recent versions of Processing.
;; Copyright (C) 2008, 2009 Rudolf Olah <omouse@gmail.com>
;; Modified for Processing 2.0 by Bunny Blake <discolingua@gmail.com>
@ptrv
ptrv / worldclock.sh
Created Mar 31, 2012 — forked from miku/worldclock.sh
Worldclock for bash.
View worldclock.sh
worldclock() {
ADDIS_ABABA=`TZ=Africa/Addis_Ababa date +"%a %d/%m/%Y %T (%z %Z)"`
BERLIN=`TZ=Europe/Berlin date +"%a %d/%m/%Y %T (%z %Z)"`
CHICAGO=`TZ=America/Chicago date +"%a %d/%m/%Y %T (%z %Z)"`
HONK_KONG=`TZ=Asia/Hong_Kong date +"%a %d/%m/%Y %T (%z %Z)"`
LONDON=`TZ=Europe/London date +"%a %d/%m/%Y %T (%z %Z)"`
LOS_ANGELES=`TZ=America/Los_Angeles date +"%a %d/%m/%Y %T (%z %Z)"`
MOSCOW=`TZ=Europe/Moscow date +"%a %d/%m/%Y %T (%z %Z)"`
NEW_YORK=`TZ=America/New_York date +"%a %d/%m/%Y %T (%z %Z)"`
SOFIA=`TZ=Europe/Sofia date +"%a %d/%m/%Y %T (%z %Z)"`
@ptrv
ptrv / build-zsh.sh
Created Feb 26, 2012 — forked from nicoulaj/build-zsh.sh
Build Zsh from sources on Ubuntu
View build-zsh.sh
#!/bin/sh​
# Build Zsh from sources on Ubuntu.
# From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file.
# Some packages may be missing
sudo apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo
git clone git://zsh.git.sf.net/gitroot/zsh/zsh
cd zsh
@ptrv
ptrv / build-zsh.sh
Created Jul 7, 2011 — forked from nicoulaj/build-zsh.sh
Build Zsh from sources on Ubuntu
View build-zsh.sh
#!/bin/sh​
# Build Zsh from sources on Ubuntu.
# From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file.
# Some packages may be missing
sudo apt-get install -y git-core gcc make autoconf yodl libncursesw5-dev texinfo
git clone git://zsh.git.sf.net/gitroot/zsh/zsh
cd zsh
You can’t perform that action at this time.