Skip to content

Instantly share code, notes, and snippets.

@tofi86
tofi86 / custom.css
Created January 4, 2023 21:22 — forked from jenningsb2/custom.css
My current CSS theme for Logseq
/* adapted from https://gist.github.com/jenningsb2/c046638de24287cb61c6d19fb611c961 */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital@0;1&family=IBM+Plex+Sans+Condensed:ital@0;1&family=IBM+Plex+Sans:ital,wght@0,100;0,400;0,700;1,100;1,400;1,700&family=IBM+Plex+Serif:ital@0;1&display=swap');
:root {
--highlight-color: #ffdb8a;
}
/* Tags */
a.tag {
@tofi86
tofi86 / schnelltest-availability.js
Last active April 21, 2021 22:45 — forked from marco79cgn/schnelltest-availability.js
Shows the available amount of Covid Tests in your local drug store and online
// https://gist.github.com/marco79cgn/685804b731e2c8e466501e4b88341286
// https://gist.github.com/tofi86/5e95708cff0b1746b57806a78bdb2eda
let country = "de"; // replace with 'at' for shops in Austria
let storeId = 251;
let param = args.widgetParameter;
if (param != null && param.length > 0) {
if (param.indexOf(";") > 0) {
const paramSplit = param.split(";");
storeId = paramSplit[0];
@tofi86
tofi86 / CompareTools.plist
Created February 14, 2019 15:16 — forked from joewiz/CompareTools.plist
Add oXygen as Diff & Merge Tool for Git Tower
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>ApplicationIdentifier</key>
<string>ro.sync.exml.DiffDirs</string>
<key>ApplicationName</key>
<string>Diff Directories</string>
@tofi86
tofi86 / CompareTools.plist
Created February 13, 2019 22:24
oXygen XML Editor Diff for Git Tower
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>ApplicationIdentifier</key>
<string>ro.sync.exml.DiffFiles</string>
<key>ApplicationName</key>
<string>Diff Files</string>
@tofi86
tofi86 / findJVMbyMinMaxJavaRequirement.sh
Last active January 29, 2018 23:19
Find a suitable Java Virtual Machine on Mac OS X which matches a min/max version requirement
#!/bin/bash
function get_java_version_from_cmd() {
# second sed command strips " and -ea from the version string
echo $("$1" -version 2>&1 | awk '/version/{print $NF}' | sed -E 's/"//g;s/-ea//g')
}
function get_comparable_java_version() {
# cleaning: 1) remove leading '1.'; 2) remove 'a-Z' and '-*+' (e.g. '-ea'); 3) replace '_' with '.'
local cleaned=$(echo "$1" | sed -E 's/^1\.//g;s/[a-zA-Z+*\-]//g;s/_/./g')
@tofi86
tofi86 / startRedmineTrunk.sh
Created June 3, 2016 21:09
A tiny script to run latest Redmine Trunk version in a local development environment
#!/bin/bash
# Author: Tobias Fischer (https://github.com/tofi86)
# Date: 2016-06-03
echo "# starting MySQL server..."
mysql.server start
echo "# fetching latest updates to Redmine trunk"
git checkout master
@tofi86
tofi86 / go.sh
Created February 11, 2015 16:51
Mac Shell-Skript für epubMinFlow (http://datenverdrahten.de/epubMinFlow/)
#!/bin/sh
# Bash-Build-Konsolenskript go.sh zum Projekt epubMinFlow
# by Tobias Fischer - http://www.pagina-online.de - 02/2015
# (1) - - - - - - - - - - V o r b e r e i t u n g - - - - - - - - - -
# Ausgangsdokumente (XML bzw. XSLT):
xmlfile="buch.xml"
@tofi86
tofi86 / keybase.md
Last active August 29, 2015 14:14
keybase.md

Keybase proof

I hereby claim:

  • I am tofi86 on github.
  • I am tobiasfischer (https://keybase.io/tobiasfischer) on keybase.
  • I have a public key whose fingerprint is 41D2 48C9 D91C 66C1 F0C8 5D3B 865B 6FCD BFE2 55B2

To claim this, I am signing this object:

@tofi86
tofi86 / abbr-acronym_best-practice.md
Last active August 29, 2015 14:10
Abbreviations and acronyms in EPUB3 - best practice

Following an #eprdct discussion about abbreviations and acronyms and tagging conventions for EPUB 3 (https://twitter.com/tobias_fischer/status/537239302892425216) this is a first draft for future acronym/abbrev. tagging for my companies EPUBs.

Abbreviations spelled out

@tofi86
tofi86 / nagios_check_fritz.sh
Last active August 24, 2022 17:48
Nagios/Icinga command to check fritzbox status for "uptime", "upstream", "downstream", "connection" and "external ip". This is a fork of http://blog.gmeiners.net/2013/09/fritzbox-mit-nagios-uberwachen.html
#!/bin/bash
#
# Example configuration
#
# commands.cfg:
#
# define command {
# command_name check_fritz_uptime
# command_line $USER1$/check_fritz -h $HOSTADDRESS$ -f linkuptime
# }