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 stack | |
-- stack script --resolver lts-18.10 --package "cassava text vector bytestring regex-compat uuid classy-prelude containers" | |
-- Download Addresses from Xentral into CSV file from | |
-- https://xxx.xentral.biz/index.php?module=exportvorlage&action=edit&id=yyy | |
-- Then run: | |
-- cd /tmp && grep -vE ',"1",[^,]*,$' ~/Downloads/export.csv | csv2vcf.hs | |
-- Exportvorlage muss diese Felder in dieser Reihenfloge exportieren: | |
-- useredittimestamp; ansprechpartner; name; firma; mobil; telefon; email; telefax; id; geloescht; |
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 stack | |
{- stack script | |
--resolver lts-18.10 | |
--package "cassava text vector bytestring text-regex-replace" | |
-} | |
-- Download Adresses from Xentral into CSV file from | |
-- https://xxx.xentral.biz/index.php?module=exportvorlage&action=list | |
-- Then run: | |
-- ./csv-to-xxx < ~/Downloads/export.csv |
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 New script - hiorg-server.de | |
// @namespace Violentmonkey Scripts | |
// @match https://www.hiorg-server.de/termin.php | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 16.6.2021, 23:20:58 | |
// ==/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
// ==UserScript== | |
// @name Xentral Verbindlichkeit | |
// @namespace https://intensovet.de | |
// @match https://*.xentral.biz/*?module=verbindlichkeit&action=edit&id=* | |
// @grant none | |
// @version 1.0 | |
// @author Jakob Schöttl | |
// @description Highlight important input fields when creating Verbindlichkeiten | |
// ==/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
// ==UserScript== | |
// @name Xentral Auftrag | |
// @namespace https://intensovet.de | |
// @version 0.1 | |
// @description Add link to open Werkstattauftrag | |
// @author Jakob Schöttl | |
// @match https://*.xentral.biz/*?module=auftrag&action=edit&* | |
// @icon https://www.google.com/s2/favicons?domain=xentral.biz | |
// @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
#!/bin/bash | |
# Script to generate CSV for DHL Online Frankierung CSV-Import. | |
# Dependencies: perl fzf xclip awk iconv | |
printUsage() { | |
cat <<EOF | |
Usage: $PROGNAME [options] | |
Generiert CSV für den CSV-Import bei DHL Online Frankierung: |
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
""" | |
Original Author: Mridul Ahuja | |
Co-Author: Jakob Schöttl | |
GitHub: https://github.com/schoettl/csv2vcf | |
Description: A small command line tool to convert CSV files to VCard files | |
Changes: | |
- python3 | |
""" |
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 | |
# Remove running sum and optionally invert amounts. | |
# Call with -i as first arg to invert amount! | |
# All other args are passed to hledger register. | |
set -o errexit -o pipefail -o nounset | |
removeSum() { | |
sed -r -e '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
# Note the -f option for xclip: | |
echo foo | xclip -f -i -selection clipboard | xclip -i -selection primary | |
# Short form: | |
echo foo | xclip -f -selection c | xclip | |
# Before I discovered xclip -f, I tried this which did not work in my Bash 5: |
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 | |
# Switch the current audio output device. | |
# Without options: Toggle between two sinks. | |
# This script works for PulseAudio; pactl must be installed. | |
printUsage() { | |
cat <<EOF | |
usage: $PROGNAME [options] | |
options: |
NewerOlder