This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Tmux based TeX editor helper | |
EDITOR="${EDITOR:-vim}" | |
DOCUMENT="${1:-deriv}" | |
SESSIONID="tmuxtexex_${DOCUMENT}_$$" | |
tmux new-session -d -s "${SESSIONID}" && tmux new-window -t "${SESSIONID}:1" -n 'TmuxTeXEx' "$EDITOR ${DOCUMENT}.tex" && tmux split-window -v -l 6 -t "${SESSIONID}:1" "while :; do inotifywait -e modify \"${DOCUMENT}.tex\" && { make || pdflatex \"${DOCUMENT}.tex\" } && jobs %% || { evince \"${DOCUMENT}.pdf\" & }; done" && tmux select-pane -U -t "${SESSIONID}:1" && tmux -2 attach-session -t "${SESSIONID}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use List::Util qw( shuffle ); | |
my $o='`^._-=>;:/()|[]{}#@%+$&?*~,"'; | |
my $s=join(" ",@ARGV)||"egyenisegek vagytok mind!"; | |
sub xorsplit($){my$oa;my$ob;out:foreach my$c(split//,shift){foreach my$a(shuffle split//,$o){foreach my$b(shuffle split//,$o){if((ord($a)^(ord($b)))==ord($c)){$oa.=$a; $ob.=$b;next out;}}}printf"Failed looking up '%s'\n",$c;}return($oa,$ob);} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash -x | |
set -o nounset | |
set -o errexit | |
curl http://archzfs.com/archzfs/x86_64/archzfs.db | tar xJvf - | |
cat */desc | perl -e'while(<>) { | |
if (m/^%DEPENDS/) { | |
while(<>) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
#=============================================================================== | |
# | |
# FILE: asciicast-timestamp-converter.pl | |
# | |
# USAGE: ./asciicast-timestamp-converter.pl [filename] | |
# USAGE: cat filename | ./asciicast-timestamp-converter.pl | |
# | |
# DESCRIPTION: asciinema asciicast recording absolute/relative time converter | |
# for fine adjustments of output delays in post-production |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weechat::register( | |
"targyeset", | |
"Automatikus targyeset", | |
"1.0", | |
"GPL2", | |
"Script ami segit latszatni az automatikus targyeset", | |
"", "" | |
); | |
sub sendtext_data { |
OlderNewer