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 random | |
import string | |
alphabet = string.ascii_lowercase + string.digits + string.ascii_uppercase + '%$&?@§/.-+~*#()=' | |
print(''.join(random.choice(alphabet) for i in range(32))) |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<meta charset="utf-8"> | |
<head> | |
</head> | |
<body> | |
<div id="output"><img id="image" width="100%" src="https://via.placeholder.com/800x250.png?text=:("/></div> | |
</body> | |
<script> | |
const MILLIS_PER_DAY = 24*60*60*1000; |
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
# adpated fom https://github.com/emilsvennesson/script.module.inputstreamhelper and https://archlinuxarm.org/forum/viewtopic.php?f=60&t=13189# | |
import sys | |
import os | |
import subprocess | |
from distutils.version import LooseVersion | |
WIDEVINE_DOWNLOAD_URL = 'https://dl.google.com/widevine-cdm/{version}-{os}-{arch}.zip' | |
CHROMEOS_RECOVERY_URL = 'https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.conf' |
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
async function doConcurrent(parallelity, tasks) { | |
const promises = []; | |
const chain = async (f1, f2) => { | |
await f1(); | |
await f2(); | |
}; | |
const next = () => { | |
if (tasks.length) { | |
// console.log('start next, task count is ' + tasks.length); | |
var task = tasks.shift(); |
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 bash | |
# Links: | |
# https://haveibeenpwned.com/Passwords | |
# https://haveibeenpwned.com/API/v2#SearchingPwnedPasswordsByRange | |
if [ "$1" == "--gui" ]; then | |
gui=true | |
shift | |
fi |
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
# provide the .m3u8 url as first, the output file as second parameter | |
# | |
# The m3u8 link must be the 'chunk' file and not the playlist file. | |
# This file is usually large and contains many "#EXT-X-BYTERANGE:<num>" lines | |
# (technically this are media segments, see https://tools.ietf.org/html/draft-pantos-http-live-streaming-13#page-6). | |
# A playlist file contains links to different chunk files, choose there the one you want to download from. | |
# The #EXT-X-STREAM-INF above each link contains some meta data of the content. | |
# | |
url=$1 | |
file=$2 |
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
# source: https://www.svws.nrw.de/cgi-bin/yabb2/YaBB.pl?num=1421236234/5#5 | |
# prerequisite: | |
# * wine (tested with v3.0) | |
# * winetricks (newer is always better) | |
export WINEPREFIX=~/lupo | |
export WINEARCH=win32 | |
if [ ! -d "~/lupo" ]; then | |
mkdir ~/lupo | |
winetricks -q mdac28 | |
winetricks -q jet40 |
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
[Plugin] | |
Loader=python3 | |
Module=gedit_save_tabs | |
IAge=3 | |
Name=Gedit Save Tabs | |
Description=Save and restore tabs in gedit | |
Authors=pejobo70@gmail.com | |
Copyright=Copyright © 2018 pejobo70@gmail.com | |
Website=https://github.com/pejobo |
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 | |
# A hook script to prevent pushing changes to master branch where a line | |
# with NEXT_STABLE has been added. | |
# | |
# Called by "git push" after it has checked the remote status, but before | |
# anything has been pushed. If this script exits with a non-zero status | |
# nothing will be pushed. | |
# | |
# This hook is called with the following parameters: |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- place in ~/.local/share/mime/packages/ --> | |
<!-- and update the mime database with `update-mime-database .local/share/mime/` --> | |
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> | |
<mime-type type="x-scheme-handler/tel"> | |
<comment>telephone mime type</comment> | |
</mime-type> | |
</mime-info> |
NewerOlder