Skip to content

Instantly share code, notes, and snippets.

@vprusa
vprusa / README.md
Created November 9, 2021 16:34
Portable monitor

Monitor

Why?

New monitor was expensive, this is a cheap alternative, portable. Also do not look at this video https://www.youtube.com/watch?v=J2aY6cvk-WI

Components:

monitor/display from (othervise broken) notebook

@vprusa
vprusa / bindings.ini
Created October 20, 2021 10:47
taskell custom binding ; ~/.config/taskell/bindings.ini
# https://github.com/smallhadroncollider/taskell , https://github.com/vprusa/taskell
# general
quit = q
undo = u
redo = r
search = /
help = ?
due = !
# navigation
@vprusa
vprusa / digispark_with_Si4703.cpp
Created September 29, 2021 16:33
Radio: Digispark (Attiny85) + Si4703
// this file is live bkp...
//setup
/*
* Digispark
*
* rst scl sda
* P5 P2 P1
*
* A
@vprusa
vprusa / git-sample-local.sh
Last active September 1, 2021 11:57
Ukazka prikazu git pro vyvoj na jednom stroji
#!/bin/bash
# pr. cest k adresarum s ostrou a vyvojovou verzi
PROJ_HOME_BASE=/var/www/html/proj
PROJ_HOME=${PROJ_HOME_BASE}/ostra/
PROJ_VYV_HOME=${PROJ_HOME_BASE}/vyv/
# Inicializace na strane serveru:
mkdir -p ${PROJ_HOME}
mkdir -p ${PROJ_VYV_HOME}
@vprusa
vprusa / config.pl
Last active April 30, 2021 09:55
perl-template-basic
#!/usr/bin/perl -w
# VP 2021
# use strict;
# use warnings;
use Cwd 'abs_path';
use File::Basename;
# enable (1) if debug
# our $debug = 0;
@vprusa
vprusa / GH-SSO-admin-approval.png
Last active September 14, 2021 11:45
GH ECP Notes
GH-SSO-admin-approval.png
@vprusa
vprusa / PV269-cvic1.pl
Last active March 18, 2021 10:22
# PV269 - cvic1 - pipeline for simulation E.coli reads and so on ...
#!/usr/bin/perl
# PV269 - cvic1 - pipeline for simulation E.coli reads and so on ...
# https://is.muni.cz/auth/el/fi/jaro2021/PV269/index.qwarp?prejit=6672020
use Cwd;
my $cwd = getcwd();
# note: https://github.com/vprusa/MUNI-2018-iv110-iv114-proj
# this variable is used for skipping commands executed in previous run
@vprusa
vprusa / randomVideo.snippet.sh
Last active November 21, 2020 15:26
Starts random video from dir using vlc
#!/bin/bash
randVid(){
find "${1}" -name '*.vlc' -o -name '*.mkv' -o -name '*.mp4' | shuf | head -1
}
alias rvVideos='vlc "$(randVid ~/Videos/)" & disown'
@vprusa
vprusa / zonemaster-wrapper.pl
Last active July 27, 2020 16:32
Perl wrapper script for DNS checks using zonemaster.labs.nic.cz/backend
#!/usr/bin/perl -w
# -*-mode:cperl -*-
=pod
Description:
(Some) automated checks of DNS server from
- https://www.iana.org/help/nameserver-requirements
- https://zonemaster.labs.nic.cz
Usage:
- e.g.: ./zonemaster-wrapper.pl --domains=wikipedia.org,google.com