View targyeset.pl
This file contains 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 { |
View asciicast-timestamp-converter.pl
This file contains 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 |
View archzfs-kernels-make.sh
This file contains 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(<>) { |
View xor.pl
This file contains 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);} |
View TmuxTeXEx.sh
This file contains 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}" |
View aessss.sh
This file contains 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 | |
for i in $*; do | |
HASH=$(openssl dgst -sha256 -binary < "$i" | perl -ne'map{printf("%02x",ord($_))} split//') | |
KEY=$(dd if=/dev/random bs=1 count=32 | perl -ne'map{printf("%02x",ord($_))} split//') | |
echo -n "$KEY" | openssl aes256 -aes-256-xts -e -pass stdin -in "$i" -out "${HASH}.bin" | |
echo -n "$KEY" | ssss-split -x -t 3 -n 4 -w "$HASH" -q | split --lines=1 --numeric-suffixes=1 --suffix-length=1 - "$HASH-" | |
done |
View koponyeg_rss.py
This file contains 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
import feedparser | |
def start_koponyeg_elorejelzes(self, attrsD): | |
context = self._getContext() | |
context['koponyeg_elorejelzes_%s' % attrsD['nap']] = attrsD | |
feedparser._FeedParserMixin._start_koponyeg_elorejelzes = start_koponyeg_elorejelzes | |
feed = feedparser.parse('http://koponyeg.hu/idojaras_rss.php?regios=1') |
View unshorten_bookmarklet.js
This file contains 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/perl | |
local$/;$_='javascript:'.<DATA>;$_=~s/\) \{\n/){\n/g;$_=~s/\n\s*//g;print; | |
__DATA__ | |
USSw=open('','unshorten_url_submit','width=400,height=200,scrollbars,resizable,menubar'); | |
OSUl=document.links; | |
with(USSw.document) { | |
write('<base target=_self><p>Ushorten Bookmarklet has '); | |
if(OSUl.length>0) { | |
write('found the following URLs. Click on any of these to submit to Unshorten delvelopers.</p>'); | |
for(USi=0;USi<OSUl.length;USi++) { |
View Xdefaults
This file contains 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
urxvt-c64*font: xft:Adore 64:pixelsize=16 | |
urxvt-c64*boldFont: xft:Adore 64:pixelsize=16 | |
urxvt-c64*internalBorder: 64 | |
urxvt-c64*color0: rgba:0000/0000/CC00/ffff | |
urxvt-c64*color15: rgba:FF00/FF00/FF00/ffff | |
urxvt-c64*color1: rgba:CC00/0000/0000/ffff | |
urxvt-c64*color14: rgba:0000/FF00/CC00/ffff | |
urxvt-c64*color5: rgba:FF00/0000/FF00/ffff | |
urxvt-c64*color2: rgba:0000/CC00/0000/ffff | |
urxvt-c64*color4: rgba:0000/0000/CC00/ffff |
View foobar.c
This file contains 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
#include <stdio.h> | |
#include <string.h> | |
#include "rdrand.h" | |
#define BUFFSIZE 65536 | |
int main() | |
{ | |
int r; |
NewerOlder