Skip to content

Instantly share code, notes, and snippets.

@Gjum
Gjum / iptables.rule
Created April 8, 2019 14:23 — forked from Maxopoly/iptables.rule
IP tables for Minecraft
#You probably want to do this in root to reduce the amount of sudos required
su -
#Clean out any existing rules and allow incoming traffic to begin with
iptables -P INPUT ACCEPT
iptables -F
#Allow all internal connections
iptables -A INPUT -i lo -j ACCEPT
@Gjum
Gjum / bundle.html
Created June 29, 2018 16:23 — forked from geow812/bundle.html
Hierarchical edge bundling with dynamically generated arcs for each group
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<link type="text/css" rel="stylesheet" href="Styles/style.css"/>
<style type="text/css">
path.arc {
cursor: move;
fill: #fff;
@Gjum
Gjum / Discord-webhook.gs
Last active May 31, 2022 14:41 — forked from jamietech/Discord-webhook.gs
Sends Google form payload to Discord webhook
function onFormSubmit(e) {
var fields = [];
for (i = 0; i < e.response.getItemResponses().length; i++) {
var response = e.response.getItemResponses()[i];
fields.push({
"name": response.getItem().getTitle(),
"value": JSON.stringify(response.getResponse()),
"inline": false
});
@Gjum
Gjum / gist:510cccb31b5c57de1183
Created February 22, 2016 01:05 — forked from syllog1sm/gist:10343947
A simple Python dependency parser
"""A simple implementation of a greedy transition-based parser. Released under BSD license."""
from os import path
import os
import sys
from collections import defaultdict
import random
import time
import pickle
SHIFT = 0; RIGHT = 1; LEFT = 2;
@Gjum
Gjum / list_comprehensions.rs
Created February 3, 2016 20:20 — forked from JeffBelgum/list_comprehensions.rs
Python list comprehensions in Rust
#![feature(macro_rules)]
/// MIT license etc. etc.
///
/// Experimenting with Python-like list comprehensions.
///
/// An attempt to explore the possibility space for ergonomic improvements
/// in Rust that can come post v1.0. Notice that there are not type declerations.
/// Aside from the "c!" macro invocation, Rust allows for an exact copy of the
/// Python comprehension syntax.

this repo contains two analogous script prototypes for screencasting to livecoding.tv

  • ffmpeg implementation - full-featured and works quite well
  • gstreamer implementetion - work in progress