Skip to content

Instantly share code, notes, and snippets.

Marneus68 /
Created March 20, 2019 16:28
Didn't work out of the box so I tweaked it.
set -e
mkdir -p log
echo -e "${GREEN}Checking for wine...${NC}"
if test -t 1; then
ncolors=$(tput colors)
if test -n "$ncolors" && test $ncolors -ge 8; then
black=$(eval tput setaf 0);
red=$(eval tput setaf 1);
green=$(eval tput setaf 2);
yellow=$(eval tput setaf 3);
blue=$(eval tput setaf 4);
magenta=$(eval tput setaf 5);
cyan=$(eval tput setaf 6);
<meta name="viewport" content="width=670">
body.battlescribe {
margin: 0px;
padding: 0px;
border-width: 0px;
Marneus68 /
Created April 26, 2016 11:36 — forked from tadly/
A simple shell script to quickly / easily install "pacaur" on archlinux
# If you are new to arch, I encourage you to at least read and understand what
# this script does befor blindley running it.
# That's why I didn't make a one-liner out of it so you have an easier time
# reading and understanding it :)
# This scripts purpose is purly to save you a few seconds on your new installation.
# Enjoy your time on an awesome system. Arch FTW!
<!--Include to allow subdomains-->
<!--Include to allow HTTP requests-->
#!/usr/bin/env rc
cd /tmp
printf 'Cloning Textual... '
git clone -q ''
echo Done!
printf 'Cloning submodules... '
cd Textual
Marneus68 / gist:015429675e7e616e6828
Created February 11, 2016 16:01
# UnityYAMLMerge fallback file
# Modify the next two lines if scene or prefab files should fallback
# on other that the default fallbacks listed below.
# %l is replaced with the path of you local version
# %r is replaced with the path of the incoming remote version
# %b is replaced with the common base version
using UnityEngine;
using System.Collections.Generic;
public class ClosureTest : MonoBehaviour {
public delegate void TestAction();
void Start () {
Dictionary<string, List<string>> dict = new Dictionary<string, List<string>>() {
{ "Foo" , new List<string>() { "Goo", "Hoo", "Ioo" } },
# A gksudo equivalent for Mac OS X
/usr/bin/osascript -e 'do shell script "make install" with administrator privileges'
Marneus68 / gist:5388522
Created April 15, 2013 14:30
Put a clock at the top right of your terminal sesion.
while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &