Skip to content

Instantly share code, notes, and snippets.

wrecking havoc

Matthieu Coudron teto

wrecking havoc
Block or report user

Report or block teto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
egmontkob /
Last active Dec 2, 2019
Hyperlinks in Terminal Emulators
aherrmann /
Last active Jul 5, 2019
Fully persistent Nix shell
# This is free and unencumbered software released into the public domain.
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
haasn / image.lua
Last active Dec 1, 2019
mvi - set of configuration for turning mpv into an image viewer
View image.lua
-- Allow changing a property with by zoom-adjusted amount
function zoom_invariant_add(prop, amt)
amt = amt / 2 ^ mp.get_property_number("video-zoom")
mp.set_property_number(prop, mp.get_property_number(prop) + amt)
-- Resets the pan if the entire image would be visible
function zoom_check_center()
local zoom = mp.get_property_number("video-zoom")
local rot = mp.get_property_number("video-rotate") * math.pi / 180
vext01 /
Last active Nov 13, 2019


  • In a script called 'vimura':
echo $1
zathura -s -x "gvim --servername $1 -c \"let g:syncpdf='$1'\" --remote +%{line} %{input}" $*
charlesmcchan /
Created Feb 19, 2014
MPTCP test environment
import sys
from time import sleep
from math import sqrt
import argparse
from subprocess import Popen, PIPE
from import Mininet
from import TCLink
from mininet.topo import Topo
from mininet.log import lg
jpouellet /
Last active Sep 8, 2019
Makes Zsh print a bell when long-running commands finish. I use this in combination with i3 and throw big compile jobs (or whatever it may be) into another workspace to get a nice visual notification (workspace indicator turns red) when it's done so I don't need to waste time regularly checking on it.
#!/usr/bin/env zsh
# This script prints a bell character when a command finishes
# if it has been running for longer than $zbell_duration seconds.
# If there are programs that you know run long that you don't
# want to bell after, then add them to $zbell_ignore.
# This script uses only zsh builtins so its fast, there's no needless
# forking, and its only dependency is zsh and its standard modules
You can’t perform that action at this time.