Skip to content

Instantly share code, notes, and snippets.

View WillSams's full-sized avatar
🚀

Will Sams WillSams

🚀
View GitHub Profile
@marcusholmgren
marcusholmgren / CSharp-Mode.xshd
Created January 21, 2010 19:02
VibrantInk inspired syntax highligthing for C# in SharpDevelop
<?xml version="1.0" encoding="utf-8"?>
<!--This file was autogenerated by the #Develop highlighting editor.-->
<!--VibrantInk inspired syntax highligthing for C# in #Develop.-->
<SyntaxDefinition name="C#" extensions=".cs">
<Environment>
<Custom name="TypeReference" bold="false" italic="false" color="Pink" />
<Custom name="UnknownEntity" bold="false" italic="false" color="Yellow" />
<Default bold="false" italic="false" color="White" bgcolor="Black" />
<Selection bold="false" italic="false" color="White" bgcolor="#6897BB" />
<VRuler bold="false" italic="false" color="Pink" bgcolor="#E3E3E3" />
@Tatsh
Tatsh / burn-cdi.sh
Last active December 16, 2016 14:59
Burn a CDI (not by me)
#!/usr/bin/env bash
set -o errexit
cdi_img="$1"
device="${2:-/dev/sr0}"
cdirip "$cdi_img" -cdrecord
i=1
while true; do
@shadowmint
shadowmint / gist:6928668
Created October 11, 2013 02:20
SDL2 mixer example
import ctypes
import unittest
import time
import os.path
from sdl2 import *
from sdl2.sdlmixer import *
class MixerTests(unittest.TestCase):
@defnull
defnull / gist:1224387
Created September 17, 2011 21:22
Deploy a Bottle app on Heroku
mkdir heroku
cd heroku/
virtualenv --no-site-packages env
source env/bin/activate
pip install bottle gevent
pip freeze > requirements.txt
cat >app.py <<EOF
import bottle
import os
@michaelkarrer81
michaelkarrer81 / git_tricks
Last active January 31, 2019 20:37
[GIT Installation and Configuration] Git installation and configuration options #git
#!/usr/bin/env bash
# https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407#.3o6drt47o
# http://blogs.atlassian.com/2013/03/git-submodules-workflows-tips/#scenarios
# http://stackoverflow.com/questions/2144406/git-shallow-submodules
# -----------------
# INSTALL AND SETUP
# -----------------
# https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion
@RicoP
RicoP / gist:7357080
Last active May 1, 2019 00:02
NES Rescources
http://www.6502.org/tutorials/6502opcodes.html
http://www.thealmightyguru.com/Games/Hacking/Wiki/index.php?title=6502_Opcodes
http://nesdev.com/6502.txt
http://mystuffisallhere.com/blog/post/2008/08/24/Page-boundary-crossings-on-the-6502.aspx
import logging
import time
logger = logging.getLogger(__name__)
def useful():
logger.debug('Hello from webapplib!')
time.sleep(0.01)
@harry-cpp
harry-cpp / Game1.cs
Created December 27, 2015 12:42
VSCode + MonoGame
class Game1 : Game
{
protected override void LoadContent()
{
#if DEBUG
var proc = new Process();
proc.StartInfo.FileName = "/bin/bash";
proc.StartInfo.Arguments = "-c \"wmctrl -r 'Terminal' -b add,below && wmctrl -r '" + Window.Title + "' -b add,above\"";
proc.StartInfo.UseShellExecute = false;
proc.Start ();
@adamcrown
adamcrown / Gemfile
Created November 5, 2015 07:03
A basic mailer API intended to be used as a contact form backend for a static site.
source 'https://rubygems.org'
gem 'rack'
gem 'mail'
gem 'puma'
@michaelkarrer81
michaelkarrer81 / saltstack.sh
Last active March 29, 2022 08:41
[Saltstack Cheat Sheet] #saltstack
# ============
# COMMON TASKS
# ============
# Run state.sls file on minion(s)
salt -G 'os:Ubuntu' state.apply ubuntu1401 # Formula file name without .sls at the end
salt -G 'os:Ubuntu' state.apply ubuntu1401 test=True # Test only (dryrun)
salt -G "minion_roles:ONLINE" state.apply execute_script_example pillar='{"single_instance_update": "aiat"}'
# Webhook state.sls example