Skip to content

Instantly share code, notes, and snippets.

View hlfbt's full-sized avatar
🤔

Alexander Schulz hlfbt

🤔
View GitHub Profile
@hlfbt
hlfbt / pythoneval.py
Created January 21, 2012 20:16 — forked from kylef/pyeval.py
Python Evaluate for ZNC modpython
# pythoneval.py
import sys
import re
from code import InteractiveInterpreter
import znc
class pythoneval(znc.Module, InteractiveInterpreter):
# module_types makes it unable to load
@hlfbt
hlfbt / twig-repl.php
Last active September 21, 2016 15:11 — forked from arnaud-lb/twig-repl.php
Twig REPL
<?php
/**
* Twig REPL hack
*
* Arnaud Le Blanc <[email protected]>
*/
require 'vendor/twig/twig/lib/Twig/Autoloader.php';
Twig_Autoloader::register();
@hlfbt
hlfbt / i3-focus-nth.py
Last active July 13, 2024 15:29 — forked from syl20bnr/i3_focus_win.py
Python script for i3 which allows to focus the nth window of the current container hierarchy.It requires i3ipc: https://github.com/altdesktop/i3ipc-python
#!/usr/bin/env python
#
# author: syl20bnr (2013), hlfbt (2024)
# goal: Focus the nth window in the current workspace (limited to 10 firsts)
# dependencies: i3ipc
#
# Example of usage in i3 config:
#
# bindsym $mod+0 exec i3-focus-nth.py -n 0
# bindsym $mod+1 exec i3-focus-nth.py -n 1