Skip to content

Instantly share code, notes, and snippets.

View ScottDillman's full-sized avatar
🏠
Working in ways that dramatically strain or break gestalt and abstraction.

Scott Dillman ScottDillman

🏠
Working in ways that dramatically strain or break gestalt and abstraction.
View GitHub Profile
#!/bin/bash
#title...........:raspi-fixup.sh
#description.....:mount raspbian image and fixup some files
#author..........:scott@bitwise.ninja
#date............:2015.07.20
#version.........:0.5
#usage...........:sudo bash raspi-fixup.sh
#notes...........:none
#==============================================================================
#!/bin/bash
#title...........:raspi-boot.sh
#description.....:Set up bridged network and launch raspberry pi image
#author..........:scott@bitwise.ninja
#date............:2015.07.20
#version.........:0.5
#usage...........:sudo bash raspi-boot.sh <usernmae>
#notes...........:none
#==============================================================================
@ScottDillman
ScottDillman / gogs-service.sh
Last active August 29, 2015 14:26
Debian init script for Gogs
#!/bin/bash
#/etc/init.d/gogs-service
#
### BEGIN INIT INFO
# Provides: gogs-service
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@ScottDillman
ScottDillman / AGE.bpmn
Created December 21, 2015 23:21
Rough BPMN build model for AtomicGameEngine Linux build
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
<bpmn:process id="Process_1" isExecutable="false">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>SequenceFlow_1tazv6x</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:task id="Task_0fevegc" name="run Build_AtomicEngine.sh">
<bpmn:incoming>SequenceFlow_1tazv6x</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_17itu1h</bpmn:outgoing>
</bpmn:task>
@ScottDillman
ScottDillman / get_IK.py
Created January 5, 2016 14:58
Download Indoor Kids podcasts
#!/usr/bin/env python
import urllib2
import re
import subprocess
## settings, could make these all command line args
## if it is worth it
## get everything after this
last_ep = 217
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* _POOL - pool
* int size - the size of the pool in bytes
* void* ipPool - pointer to memory malloc'd by the operating system
*/
typedef struct _POOL
{
@ScottDillman
ScottDillman / build_AtomicGameEngine.txt
Last active June 26, 2016 00:59
Build AtomicGameEngine from source on Windows in 10 Easy Steps
Build AtomicGameEngine from source on Windows in 10 Easy Steps
I. From a fresh Windows install
A. [ Install build tools ] Run the following in an admin console:
01. @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH% ; %ALLUSERSPROFILE% \chocolatey\bin
02. Restart admin shell:
% sudo apt-get install freeglut3-dev !315
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libdmx-dev libfontenc-dev libfs-dev libpciaccess-dev
libunity-control-center1 libxaw7-dev libxfont-dev libxmu-dev libxmu-headers
libxmuu-dev libxpm-dev libxres-dev libxss-dev libxtst-dev libxvmc-dev
libxxf86dga-dev unity-settings-daemon x11proto-bigreqs-dev x11proto-dmx-dev
x11proto-dri3-dev x11proto-fonts-dev x11proto-present-dev
"P:\projects\age\builds\JM_BAT\Artifacts\Build\Windows\Source\AtomicTool\GenerateAtomicNET.vcxproj" (default target) (1) - >
(CustomBuild target) ->
P:\projects\age\builds\JM_BAT\Script\AtomicNET\AtomicNET\Core\AtomicNET.cs(5,7): error CS0246: The type or namespace nam e 'AtomicPlayer' could not be found (are you missing a using directive or an assembly reference?) [P:\projects\age\builds\ JM_BAT\Artifacts\AtomicNET\Build\AtomicNET\AtomicNET.csproj] [P:\projects\age\builds\JM_BAT\Artifacts\Build\Windows\Source \AtomicTool\GenerateAtomicNET.vcxproj]
P:\projects\age\builds\JM_BAT\Script\AtomicNET\AtomicNET\Application\PlayerApp.cs(9,38): error CS0246: The type or names pace name 'AppBase' could not be found (are you missing a using directive or an assembly reference?) [P:\projects\age\buil ds\JM_BAT\Artifacts\AtomicNET\Build\AtomicNET\AtomicNET.csproj] [P:\projects\age\builds\JM_BAT\Artifacts\Build\Windows\Sou rce\AtomicTool\GenerateAtomicNET.vcxproj]
P:\projects\age\builds\JM_BAT\Script\AtomicNET\AtomicN
@ScottDillman
ScottDillman / fmsnbc.user.js
Last active October 19, 2017 02:11
greasemonkey script to get direct link to video on msnbc.com
// ==UserScript==
// @name fmsnbc
// @author ctrauma
// @namespace http://dreamcyclestudios.com
// @description Create a direct link to MSNBC videos to avoid poor video performance
// @twitterURL https://twitter.com/chalktrauma
// @homepage http://dreamcyclestudios.com
// @license https://creativecommons.org/licenses/by-sa/4.0/
// @updateURL https://gist.github.com/CTrauma/a0bd3e89d8e05fd5ea3d3a92d55db702
// @downloadURL https://gist.github.com/CTrauma/a0bd3e89d8e05fd5ea3d3a92d55db702