Skip to content

Instantly share code, notes, and snippets.

View dudymas's full-sized avatar
👾
devop'n

Jeremy White dudymas

👾
devop'n
View GitHub Profile
### Keybase proof
I hereby claim:
* I am dudymas on github.
* I am dudymas (https://keybase.io/dudymas) on keybase.
* I have a public key ASBGAAZki9diB5PBaYRxz0dPSxwVv4zIdI-9aeGZdxNyjwo
To claim this, I am signing this object:
{-
I used GLUT's Hello.hs as a starting point...
I was just trying to get the smallest working particle sim possible
-}
module ParticleSim ( Particle, random, size, vx, vy, px, py, genParticles, move, rebound, particlePosition)
where
import Data.IORef ( IORef, newIORef )
import Graphics.UI.GLUT
import Control.Monad.Cont
import qualified System.Random as Randy
@dudymas
dudymas / Development.ps1
Created August 22, 2016 17:55 — forked from brentarias/Development.ps1
Powershell chocolatey script for building a software developer's machine.
<#
visual studio
#>
choco install -y sysinternals
#add ssh.bat with "stermc %1"
#choco install -y bitvise-ssh-client
choco install -y nuget.commandline
choco install -y nugetpackageexplorer
choco install -y python2
choco install -y nodejs.install
#!/bin/echo please source me, do not run me
function git-setup-pullrequest-branch() {
PULLREQUEST=${1:?Please specify a branch name for your pull request}
REMOTE=${2:-origin}
CURRENT=$(git rev-parse --abbrev-ref HEAD)
git branch --set-upstream-to=${REMOTE}/${PULLREQUEST} 2>/dev/null
if [ $? -ne 0 ] ; then
echo "Create pull request branch ${REMOTE}/${PULLREQUEST}? [y/N]"
read answer
#!/bin/bash
if [[ "$(which jq)" == "" ]]; then
echo Please install jq \(i.e. brew install jq \)...
echo jq is used to parse configs.
exit 1
fi
function repoint-config {
MACHINE_CONFIG=$1
@dudymas
dudymas / 404.py
Last active September 23, 2015 18:59 — forked from faruken/lol.py
Flask running behind Twisted
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from twisted.application import service
from twisted.web import server, static
from twisted.web.resource import Resource
from twisted.web.wsgi import WSGIResource
from twisted.internet import reactor
from flask.views import MethodView
@dudymas
dudymas / stacktrace
Created January 19, 2015 22:23
opencrowbar - network range validation error
Error Backtrace
/opt/opencrowbar/core/chef/cookbooks/barclamp/libraries/ip.rb:89:in `coerce'
/opt/opencrowbar/core/rails/app/models/network_range.rb:26:in `first'
/opt/opencrowbar/core/rails/app/models/network_range.rb:134:in `sanity_check_range'
/var/cache/crowbar/gems/ruby/2.1.0/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:377:in `_run__2615059233174908453__validate__callbacks'
/var/cache/crowbar/gems/ruby/2.1.0/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:80:in `run_callbacks'
/var/cache/crowbar/gems/ruby/2.1.0/gems/activemodel-4.0.13/lib/active_model/validations.rb:373:in `run_validations!'
/var/cache/crowbar/gems/ruby/2.1.0/gems/activemodel-4.0.13/lib/active_model/validations/callbacks.rb:106:in `block in run_validations!'
/var/cache/crowbar/gems/ruby/2.1.0/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:373:in `_run__2615059233174908453__validation__callbacks'
@dudymas
dudymas / index.html
Last active August 29, 2015 14:11
Messing with factorization
<!DOCTYPE html>
<meta charset="utf-8">
<title>Factorisation Diagrams - Jason Davies</title>
<style>
body {
font-family: sans-serif;
}
svg {
margin: 5px;
}