Skip to content

Instantly share code, notes, and snippets.

View raugustinus's full-sized avatar
👾
Coding

Rob Augustinus raugustinus

👾
Coding
View GitHub Profile
@raugustinus
raugustinus / sxhkdrc
Created September 29, 2021 10:02
sxhkdrc dotfile
#
# wm independent hotkeys
#
# terminal emulator
super + Return
alacritty
# program launcher
super + @space
@raugustinus
raugustinus / bspwmrc
Created August 5, 2020 14:07
bspwm & sxhkd
#! /bin/sh
sxhkd &
bspc monitor -d I II III IV V VI VII VIII IX X
bspc config border_width 2
bspc config window_gap 6
bspc config split_ratio 0.52
@raugustinus
raugustinus / html
Created August 25, 2017 13:24
Aurelia i18n coolness
<li repeat.for="product of products" class="list-group-item">
<span i18n="products.${product.code}">[product description by code from translation.json]</span>
</li>
@raugustinus
raugustinus / promise.ts
Created August 9, 2017 15:09
Typescript and Promises
import * as fs from 'fs';
export class Runner {
constructor() {}
readFile(filename: string): Promise<any | Error> {
return new Promise((resolve, reject) => {
fs.readFile(filename, (err, result) => {
@raugustinus
raugustinus / TimeField.java
Last active May 20, 2016 21:04
wicket TimeField supporting the <input type="time" .../> attribute
import org.apache.wicket.markup.html.form.TextField;
import org.apache.wicket.model.IModel;
import org.joda.time.LocalTime;
import org.slf4j.Logger;
import static org.slf4j.LoggerFactory.getLogger;
public class TimeField extends TextField<LocalTime> {
private static final Logger LOG = getLogger(TimeField.class);
@raugustinus
raugustinus / serve.go
Created March 19, 2015 10:34
simple http serve util to serve a single static file on a port
package main
import (
"os"
"fmt"
"net/http"
"io/ioutil"
)
func handler(w http.ResponseWriter, req *http.Request, path string) {
@raugustinus
raugustinus / cloud-config-static-ip.yml
Last active May 8, 2017 01:17
coreos cloud-config static ip address with docker remote API
#cloud-config
ssh_authorized_keys:
- ssh-rsa AAAA.... you@example.com
coreos:
units:
- name: docker-tcp.socket
command: start
enable: yes
content: |
@raugustinus
raugustinus / artifactory.sh
Created April 15, 2014 20:55
freebsd artifactory rc.d script
#!/bin/sh
#
# artifactory startup script.
#
# $FreeBSD: artifactory 2014-04-15 raugustinus $
#
# Make sure you have the artifactory user and artifactory home or set them below accordingly!
# PROVIDE: artifactory
# REQUIRE: NETWORKING SERVERS