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 | |
set -o nounset | |
DEST=/mnt/backup/l | |
INCLUDE=/etc/backup-include | |
EXCLUDE=/etc/backup-exclude | |
LOGPATH=/var/log | |
MAX=100m | |
#if ! mount | grep -q $DEST; then |
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/sh | |
if [ "$1" == "wired" ]; then | |
IFACE=eth0 | |
else | |
IFACE=wlan0 | |
fi | |
if [ "$2" == "trusted0" ]; then | |
MAC="ff:ee:bb:cc:dd:aa" |
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 | |
# in irssi you can set off this with /exec -o irc-dramatic.pl <o hai der> | |
use strict; | |
use warnings; | |
use Encode qw/decode/; | |
binmode(*STDOUT, ":utf8"); | |
$|=1; | |
my @a=(0x3000,0xff01,0x201d,0xff03..0xff06,0x2019,0xff08..0xff0c,0x2212,0xff0e..0xff5d,0x301c,0xffe5,0xffe2); |
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 | |
# in irssi you can set off this with /exec -o irc-dramatic.pl <o hai der> | |
use strict; | |
use warnings; | |
use Encode qw/decode/; | |
binmode(*STDOUT, ":utf8"); | |
$|=1; | |
my @a=(0x3000,0xff01,0x201d,0xff03..0xff06,0x2019,0xff08..0xff0c,0x2212,0xff0e..0xff5d,0x301c,0xffe5,0xffe2); |
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/sh | |
ip link set eth0 down | |
ip link set wlan0 down | |
ip link set bond0 down | |
modprobe bonding mode=1 miimon=100 downdelay=20 updelay=20 use_carrier=1 primary=eth0 | |
dhcpcd -C resolv.conf --noarp --denyinterfaces 'eth0 wlan0' --background | |
ip link set eth0 up | |
ip link set wlan0 up | |
ip link set bond0 up | |
ifenslave bond0 eth0 wlan0 |
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; |
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 |
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++) { |
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') |
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 |
OlderNewer