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 gradle.org: redirect current to actual version | |
// @description Redirects /current/ to an exact version of Gradle docs for help created better permalinks to gradle.org | |
// @version 1 | |
// @match https://docs.gradle.org/current/* | |
// @namespace http://tampermonkey.net/ | |
// @license MIT | |
// @author Andrei Rybak | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=gradle.org | |
// @grant none |
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 | |
# ffmpeg -loop 1 -t 10 -i "${1:-1.png}" \ | |
# -vf "crop=w=W:h=ih:x='(iw-W)*t/10':y=0" \ | |
# -r 25 -pix_fmt yuv420p out.mp4 | |
# ffmpeg -f lavfi -i color=s=1920x1080 -loop 1 -t 0.08 -i "input.png" \ | |
# -filter_complex "[1:v]scale=1920:-2,setpts=if(eq(N,0),0,1+1/0.02/TB),fps=25[fg];[0:v][fg]overlay=x=-'t*h*0.02':eof_action=endall[v]" \ | |
# -map "[v]" output.mp4 | |
ffmpeg -f lavfi -i color=s=1920x1080 -loop 1 -t 0.08 -i "input.png" -filter_complex "[1:v]scale=1920:-2,setpts=if(eq(N\,0)\,0\,1+1/0.02/TB),fps=25[fg]; [0:v][fg]overlay=y=-'t*h*0.02':eof_action=endall[v]" -map "[v]" output.mp4 |
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
<html> | |
<head> | |
<title>DVD screensaver</title> | |
<style> | |
.text { | |
font-family: monospace; | |
font-size: 600%; | |
color: red; | |
animation: color-change 3s infinite; | |
white-space: nowrap; |
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
# | |
# Helper script to flip HTML-like tables with tbody tags upside down | |
# | |
# MIT License | |
# Copyright (c) 2018 Andrei Rybak | |
# | |
def pretty_print_tr(a_tr): | |
return ''.join(a_tr) |
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 | |
# Cleaned up version of ps1_notifications.sh made on 2018-08-05 | |
# | |
# See rybak/scriptps github repository for the full version | |
# link: https://github.com/rybak/scripts/blob/master/config/ps1_notifications.sh | |
# copy of lib/colors.sh instead of calling source "$HOME/scripts/lib/colors.sh" | |
BLACK_FG="$(tput setaf 0)" |
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/bash | |
# | |
# MIT License | |
# Copyright (c) 2018 Andrei Rybak | |
# | |
set -u | |
set -e |
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 java.io.*; | |
import java.util.*; | |
public class InterpretatorMulti { | |
int tapesCount; | |
String blank; | |
State accept; | |
State reject; | |
State start; | |
Map<String, State> states; |