Skip to content

Instantly share code, notes, and snippets.

sudo docker rm -f $(sudo docker ps -a -q)
sudo docker rmi -f $(sudo docker images -q)
sudo docker volume rm $(sudo docker volume ls -qf dangling=true)
@robeastham
robeastham / cloud-config.yml
Last active May 17, 2019 20:36
This is a cloud-config file template for Rancher OS. Fill in the blanks and it'll automatically setup your Rancher Server behind an Nginx proxy and register Let's Encrypt SSL certs and then renew them automatically
#cloud-config
ssh_authorized_keys:
- ssh-rsa <my-public-key>
rancher:
services:
nginx-proxy:
image: jwilder/nginx-proxy:0.4.0
restart: unless-stopped
ports:
- "80:80"
@robeastham
robeastham / install-pacaur.sh
Created October 1, 2016 04:46 — forked from ansemjo/install-pacaur.sh
A small script for arch linux which builds and installs "pacaur" automatically
#!/bin/sh
#
# LICENSE AT END OF FILE
#
# This is a script to automatically install pacaur from the AUR. It is
# intended for fresh systems with no other means to install from AUR.
# Theoretically, this script can install other packages too. Just modify
# the $aurpkgs variable below.
#
@robeastham
robeastham / Workflow.py
Created October 2, 2015 15:02
A PhotoScan workflow to process multiple projects at once
import PhotoScan
import datetime
import glob
import os
'''
A workflow to process multiple set of photos in Photoscan.
See the bottom of the file for configuration options and documentation.
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
xfce4-session &
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 340.24 (buildmeister@swio-display-x64-rhel04-07) Wed Jul 2 15:50:44 PDT 2014
Section "DRI"
Mode 0666
EndSection
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
controller#index (ActionView::TemplateError) "Read-only file system - /disk1/home/slugs/133600_55f32b2_831e/mnt/public/stylesheets/base.css - Heroku has a read-only filesystem. See http://docs.heroku.com/constraints#read-only-filesystem"
On line #18 of app/views/layouts/application.html.haml
15: #logo.span-6
16: %a{:href => '/map/'}
17: %img{:src => '/images/logo.gif'}
18: #app_title.span-10
19: Application 1.0
20: #user_nav.span-8
$(document).ready(function() {
$('#on').click(function() {
$('#hud').show(250);
});
$('#off').click(function() {
$('#hud').hide(250);
});