Skip to content

Instantly share code, notes, and snippets.

View smunilla's full-sized avatar

Samuel Munilla smunilla

View GitHub Profile
@smunilla
smunilla / projects.md
Last active August 19, 2023 16:47
Hobby Projects

In Progress

  • Old West (28mm)
  • Tau

On Deck

  • Infamy Germans
  • Arena Rex
  • VBCW Scottish Republic
  • Kill Team Kommandos
  • Night Goblins (28mm)
// START of parameters
// gamma of simulated CRT
CRTgamma = 2.4;
// gamma of display monitor (typically 2.2 is correct)
monitorgamma = 2.2;
// overscan (e.g. 1.02 for 2% overscan)
overscan = vec2(1.001,1.001);
// aspect ratio
aspect = vec2(1.0, 0.75);
@smunilla
smunilla / gist:b9453c27069efe97e5ddf5c2082ea6a7
Created April 11, 2017 18:06
Interesting Docker Cleanup Things
#!/bin/bash
THREEWEEKSAGO="$(date --date="3 Weeks Ago")"
NOW="$(date)"
echo "${THREEWEEKSAGO}"
echo "${NOW}"
if [ $NOW -gt $THREEWEEKSAGO ]; then
echo "Yes"
find /var/tmp/* -mtime +4 -exec rm -r {} \;
import random
from roborally.api import *
def move():
vision = sight()
in_front = list(vision[4][5], vision[3][5], vision[2][5], vision[1][5], vision[0][5])
if any(space.content and space.content[TYPE] == ROBOT for space in in_front):
return FORWARD
# Load deploy key for cloning/pushing openshift/openshift-online
ssh-add -D
ssh-add ${HOME}/.ssh/openshift-online/id_rsa
rm -rf online
git clone git@github.com:openshift/online.git
cd online/
# Check to see if there have been any changes since the last tag
if git describe --abbrev=0 --tags --exact-match HEAD >/dev/null 2>&1; then
MINOR="5"
# Load deploy key for cloning/pushing openshift/openshift-ansible
#ssh-add -D
#ssh-add ${HOME}/.ssh/openshift-ansible/id_rsa
rm -rf openshift-ansible
git clone git@github.com:openshift/openshift-ansible.git
cd openshift-ansible/
git checkout release-1.${MINOR}
#!/bin/sh
IFS=$'||'
PRODUCT="OpenShift Container Platform"
OUTPUT_FORMAT='{"bug_id": "%{bug_id}", "status": "%{status}, "versions": "%{versions}", target_release": "%{target_release}", "components": "%{components}"}||'
modified_bugs=$(bugzilla query --product="${PRODUCT}" --bug_status=MODIFIED --outputformat="${OUTPUT_FORMAT}")
for bug in $modified_bugs; do
echo -n ${bug}
#!/bin/bash
######################################################################
# ocp-merge: Merge origin to enterprise in preparation for a release
#
# Usage: Takes no options. Just run it.
#
# Note: This is heavily based on versionmerge which was originally
# written by Tim Bielawa.
#
#!/bin/ruby
unless ARGV.length > 0
puts "You must specify a number of pages."
return -1
end
num_pages = ARGV.first.chomp.to_i
remainder = num_pages % 4