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 python3 | |
""" | |
kodi cli tool v1 | |
Edit user, password, host and port with the info of the kodi host on your | |
network. Screenshots are saved in the folder configures in | |
"Settings/System/Logging/Debug/Screenshot folder" | |
usage: kodi [-h] [-p] [-q] [-y Y] [-t T] [-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
#!/bin/bash | |
# | |
# Qemu build and test script | |
# Check that each commit builds, checks, and passes all qemu-iotests | |
# usage: git rebase -i --exec build_and_test.sh <starting SHA-1> | |
ignore_tests="147 162 093" | |
builddir="bin" | |
dir=$(git rev-parse --show-toplevel) |
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
...',;;:cccccccc:;,.. | |
..,;:cccc::::ccccclloooolc;'. | |
.',;:::;;;;:loodxk0kkxxkxxdocccc;;'.. | |
.,;;;,,;:coxldKNWWWMMMMWNNWWNNKkdolcccc:,. | |
.',;;,',;lxo:...dXWMMMMMMMMNkloOXNNNX0koc:coo;. | |
..,;:;,,,:ldl' .kWMMMWXXNWMMMMXd..':d0XWWN0d:;lkd, | |
..,;;,,'':loc. lKMMMNl. .c0KNWNK: ..';lx00X0l,cxo,. | |
..''....'cooc. c0NMMX; .l0XWN0; ,ddx00occl:. | |
..'.. .':odc. .x0KKKkolcld000xc. .cxxxkkdl:,.. | |
..''.. ;dxolc;' .lxx000kkxx00kc. .;looolllol:'.. |
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
pub fn register_panic_handler() { | |
let default_panic = std::panic::take_hook(); | |
std::panic::set_hook(Box::new(move |panic_info| { | |
default_panic(panic_info); | |
// Don't forget to enable core dumps on your shell with eg `ulimit -c unlimited` | |
let pid = std::process::id(); | |
eprintln!("dumping core for pid {}", std::process::id()); |
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
\documentclass{article} | |
\usepackage[silent]{fontspec} | |
\usepackage[verbose=false]{polyglossia} | |
\setmainlanguage{english} | |
\setmonofont[Scale=2.5,Ligatures=Required]{JuniusX-Regular.ttf} | |
\begin{document} | |
Generate kerning pairs for this font: | |
%Text from \url{http://www.as8.it/type/basic_kerning_text.html} | |
\section{BASIC ALPHABET} | |
\begin{verbatim} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Login to website using just Python 3 Standard Library | |
import urllib.parse | |
import urllib.request | |
import http.cookiejar | |
def scraper(): | |
# here goes URL that's found inside form action='.....' | |
# adjust as needed, can be all kinds of weird stuff | |
authentication_url = '/admin/login/' |
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 python3 | |
ABOUT = """This tool copies your input to system clipboard and then synchronises it | |
with android's clipboard and pastes it with Alt-v command. Obviously this will | |
overwrite your clipboard contents. Make sure you focus on the text input on the | |
scrcpy window before you attempt to paste. - epilys 2021-06-21 | |
This program is free software: you can redistribute it and/or modify it under | |
the terms of the GNU General Public License as published by the Free Software | |
Foundation, either version 3 of the License, or (at your option) any later | |
version. |
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
# | |
# webmention_server.py | |
# | |
# Copyright (C) 2021 - Emmanouil Pitsidianakis | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU Affero General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
OlderNewer