Skip to content

Instantly share code, notes, and snippets.

Avatar

Bob R tzbob

  • Cleverbase
View GitHub Profile
@tzbob
tzbob / build.sbt
Created Sep 9, 2016
sbt-web-scalajs alternative structure
View build.sbt
lazy val foo = crossProject
.in(file("."))
.settings(
organization := "foo",
name := "foo",
)
.jvmSettings(
...
)
.jsSettings(
View bashrc
#
# ~/.bashrc
#
Color_Off='\e[0m' # Text Reset
Black='\e[0;30m' # Black
Red='\e[0;31m' # Red
Green='\e[0;32m' # Green
Yellow='\e[0;33m' # Yellow
Blue='\e[0;34m' # Blue
@tzbob
tzbob / uhosts.scala
Created Nov 7, 2013
automatically update pdnsd.adblock
View uhosts.scala
#!/usr/bin/env scala
import scala.io.Source
import java.io.FileWriter
import java.util.Calendar
import scala.util.matching.Regex
val resources = List(
Resource("http://someonewhocares.org/hosts/hosts"),
Resource(
View termite config
[options]
resize_grip = false
scroll_on_output = false
scroll_on_keystroke = true
audible_bell = false
visible_bell = true
mouse_autohide = false
allow_bold = false
dynamic_title = true
urgent_on_bell = true
@tzbob
tzbob / .vimrc
Created Oct 16, 2013
current .vimrc using vundle as bundler
View .vimrc
" Vundle "
" ========== "
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
View syslinux.cfg
# Config file for Syslinux -
# /boot/syslinux/syslinux.cfg
#
# Comboot modules:
# * menu.c32 - provides a text menu
# * vesamenu.c32 - provides a graphical menu
# * chain.c32 - chainload MBRs, partition boot sectors, Windows bootloaders
# * hdt.c32 - hardware detection tool
# * reboot.c32 - reboots the system
# * poweroff.com - shutdown the system
View .vimrc
" Vundle "
" ========== "
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
View .config_termite_config
[options]
resize_grip = false
scroll_on_output = false
scroll_on_keystroke = true
audible_bell = false
visible_bell = false
mouse_autohide = false
allow_bold = false
dynamic_title = true
urgent_on_bell = true
View xmobar.hs
Config {
font = "xft:inconsolata:size=10:antialias=true"
, fgColor = "#EFEFEF"
, bgColor = "#333333"
, position = Static { xpos = 0, ypos = 1050, width = 1920, height = 30 }
, lowerOnStart = True
, commands = [
Run Battery ["-t", "<left>"] 100
, Run MultiCpu ["-t","<total0>"] 30
, Run Date "%_d %#B %Y <fc=#AEB898>|</fc> %H:%M" "date" 600
@tzbob
tzbob / gist:3959764
Created Oct 26, 2012
Micro TDD Prolog
View gist:3959764
% test predicate
test(Summary, Predicate) :-
string_concat('\n ', Summary, Buf),
string_concat(Buf, ' is running', Message),
write(Message),
call(Predicate),
write('\ndone.').
% example
force(anakin, 9).