Skip to content

Instantly share code, notes, and snippets.

View Ramblurr's full-sized avatar

Casey Link Ramblurr

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ramblurr on github.
  • I am caseylink (https://keybase.io/caseylink) on keybase.
  • I have a public key ASCb33jInVGl6pol9gDuCX-VwHm5ylRpPYKgjFO5TmEnFQo

To claim this, I am signing this object:

@Ramblurr
Ramblurr / RoomVisual.prototype.ts
Last active April 19, 2017 06:16
RoomVisual update for screeps that draws structures and CostMatrix
const colors = {
dark: "#181818",
gray: "#555555",
light: "#AAAAAA",
outline: "#8FBB93",
power: "#f4331f ",
road: "#666",
};
const dirs: number[][] = [[-1, -1], [1, -1], [-1, 1], [1, 1], [0, -1], [-1, 0], [0, 1], [1, 0]];
@Ramblurr
Ramblurr / install-letsencrypt-in-jdk.sh
Created July 8, 2016 15:44
install-letsencrypt-in-jdk.sh
#!/bin/bash
set -e
JAVA_HOME=${1-text}
[ $# -eq 0 ] && { echo "Usage: sudo $0 \$(/usr/libexec/java_home -v '1.8*')" ; exit 1; }
KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts
wget https://letsencrypt.org/certs/letsencryptauthorityx1.der
wget https://letsencrypt.org/certs/letsencryptauthorityx2.der
<!--- the consuming component --->
{{#needy-component as |sub-component|}}
<h1>Hello</h1>
<div>
{{sub-component}}
</div>
<!--- ... -->
{{/needy-component}}
@Ramblurr
Ramblurr / gist:0a3c2ed3cf596fb9ffe7
Created May 15, 2015 16:13
Using Docker data containers
For smaller defaults, like sane config files, I put them into the application container, and then create a data volume container using the same image as the container that runs the application.
for example, When I make an apache image, the /etc/apache dir will contain working defaults. When I want to deploy a customised Apache container, I will
`docker run --name apache-cfg -v /etc/apache apache true`
then edit the cfg in that volume container - lets be primitve
`docker run --rm -it --volumes-from apache-cfg my-dev-tools bash`
@Ramblurr
Ramblurr / build local
Last active August 29, 2015 14:21
Build Custom Fedora Atomic images
git clone https://git.fedorahosted.org/git/fedora-atomic.git
cd fedora-atomic
git checkout -b f22 origin/f22
sudo -s
mkdir -p /srv/rpm-ostree/repo
@Ramblurr
Ramblurr / Dockerfile
Created April 6, 2015 10:40
A little container that creates a database and user on linked mysql container. Useful on Tutum w/ the Mysql and Wordpress services.
FROM ubuntu:trusty
MAINTAINER Casey Link <[email protected]>
WORKDIR /
RUN apt-get update && \
apt-get -yq install mysql-client
ADD run.sh /run.sh
RUN chmod 755 /*.sh
@Ramblurr
Ramblurr / instructions.md
Created February 19, 2015 10:57
A minimum proof of concept for the ssl bundle location bug

Running ebook-convert poc.recipe foo.mobi --test

  1. Case 1 /etc/ssl/cert.pem exists
1% Converting input to HTML...
InputFormatPlugin: Recipe Input running
Using custom recipe
SSL verification succeeded! You're not affected.
@Ramblurr
Ramblurr / sudoers-vagrant
Created February 18, 2015 15:35
Vagrant sudo permissions for NFS in Fedora.
## drop this in the new file /etc/sudoers.d/sudoers-vagrant
## add add your user to the vagrant group
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/tee -a /etc/exports
Cmnd_Alias VAGRANT_NFSD_CHECK = /usr/bin/systemctl status nfs-server
Cmnd_Alias VAGRANT_NFSD_START = /usr/bin/systemctl start nfs-server
Cmnd_Alias VAGRANT_NFSD_APPLY = /usr/sbin/exportfs -ar
Cmnd_Alias VAGRANT_EXPORTS_REMOVE = /bin/sed -r -e * d -ibak /etc/exports
%vagrant ALL=(root) NOPASSWD: VAGRANT_EXPORTS_ADD, VAGRANT_NFSD_CHECK, VAGRANT_NFSD_START, VAGRANT_NFSD_APPLY, VAGRANT_EXPORTS_REMOVE
@Ramblurr
Ramblurr / deu-reading-list.md
Last active August 29, 2015 14:12
German Language Listening-Reading List

NA: No Audio, NE: No E-book,
DRM-XX: Country DRM Restricted to country XX, OL: Original Language is Deutsch

Titel Title Author Info Genre
Wolf ohne Fährte The Blessing Way Tony Hillerman NA,DRM-DE Fiction,Modern
Kinder des Nebel Mistborn: The Final Empire Brandon Sanderson DRM-DE Fiction,Fantasy
Homo Faber Homo Faber Max Frisch OL,DRM-DE Fiction,Fantasy
Momo Momo Michael Ende OL,DRM-DE Fiction,Fantasy