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
// ==UserScript== | |
// @name uloz.to Aria2 bridge | |
// @namespace Violentmonkey Scripts | |
// @match https://uloz.to/* | |
// @run-at document-start | |
// @grant GM.xmlHttpRequest | |
// @version 1.0 | |
// @author sam_ | |
// @description Redirects downloads from uloz.to to speciffied Aria2 instance | |
// ==/UserScript== |
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
# #ffmpeg | |
# SECONDS=900 | |
# DURATION=$(($(date "+$SECONDS-(%M%%15)*60-%S"))) | |
## tcp transport ensures bottom half of frame is not pixelated | |
# PRE_IN="-t $DURATION -rtsp_transport tcp" | |
# LOGIN= | |
# PASSWORD= | |
# IP= | |
# IN=rtsp://$LOGIN${PASSWORD:+:$PASSWORD}@$IP:554/mpeg4 | |
# START="$(date '+%Y%m%d_%H%M%S')" |
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
// prepend comment to each INT | |
//@author sam_ | |
//@category DOS | |
//@keybinding | |
//@menupath | |
//@toolbar | |
import java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.FileInputStream; |
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
$ 'MINICOM=-w -b 921600' minicom -D /dev/ttyUSB0 | |
Welcome to minicom 2.7.1 | |
OPTIONS: I18n | |
Compiled on Aug 13 2017, 15:25:34. | |
Port /dev/ttyUSB0, 22:54:54 | |
Press CTRL-A Z for help on special keys | |
[590440] [fastboot: command buf]-[getvar:slot-count]-[len=17] |
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 | |
SDK_DIR=$HOME/webOS_TV_SDK | |
# this nonsense is the reason for sudo in webOS TV SDK installation scripts | |
sudo ln -s $SDK_DIR /home/.lgsdkTvregistery | |
patch_sudo() { | |
sed -i -re '0,/exit [0-9]/s/exit [0-9]//' -e '0,/sudo nohup/s/sudo nohup//' "$@" | |
} |
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 -e | |
# inspiration: https://gitlab.com/veprbl/nix-bootstrap/blob/master/bootstrap.sh | |
BOOST=1.68.0 && BOOST="https://dl.bintray.com/boostorg/release/$BOOST/source/boost_${BOOST//./_}.tar.bz2" | |
BROTLI=1.0.7 && BROTLI="https://github.com/google/brotli/archive/v$BROTLI.tar.gz" | |
EDITLINE=1.16.0 && EDITLINE="https://github.com/troglobit/editline/releases/download/$EDITLINE/editline-$EDITLINE.tar.xz" | |
NIX=nix-2.2.2 && NIX="https://nixos.org/releases/nix/$NIX/$NIX.tar.xz" | |
NIXPKGS=19.03 && NIXPKGS="https://github.com/NixOS/nixpkgs/archive/$NIXPKGS.tar.gz" | |
SQLITE=sqlite-autoconf-3280000 && SQLITE="https://sqlite.org/2019/$SQLITE.tar.gz" |
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
<?php | |
function debug_exit($msg) { | |
echo ">{$msg}<"; | |
exit(200); | |
} | |
function readFtpLine($line, $s) { | |
if ("\r" == substr($line, -1)) { | |
socket_read($s, strlen("\n"), PHP_NORMAL_READ); |
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/awk -f | |
BEGIN { | |
ts_patt = "[0-9][0-9]:[0-5][0-9]:[0-5][0-9],[0-9]+" | |
split("99:59:59,999", limits, ":|,") | |
from = 1 | |
to = 999999999 | |
delay[hours = 1] = 0 | |
delay[minutes = 2] = 0 # 0-59 | |
delay[seconds = 3] = 0 # 0-59, positive = show subtitle later, negative = show subtitle sooner |
NewerOlder