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 | |
target=/media/stuff/raspberry/backup.img | |
size_of_image=6G | |
# Make sure only root can run our script | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
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
// ==UserScript== | |
// @name Jira Color Checkbox | |
// @namespace http://<domain> | |
// @version 0.1 | |
// @description Ensures the color checkbox to be checked. | |
// @author DRe | |
// @match https://<sub-domain>/secure/RapidBoard.jspa?rapidView=175&* | |
// @grant none | |
// ==/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
import re | |
import requests | |
import hashlib | |
password = 'xxxx' | |
phone_number = '12345' | |
def get_challenge(text): | |
m = re.search('g_challenge = "([^"]+)"', text) | |
if not m: |
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> |
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
[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
# 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
# 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
#!/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
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(); |
OlderNewer