Skip to content

Instantly share code, notes, and snippets.

View bardware's full-sized avatar

Bernhard Döbler bardware

View GitHub Profile
@JamoCA
JamoCA / JUnidecode-ColdFusion-Demo.cfm
Last active October 13, 2025 16:47
JUnidecode ColdFusion Demo - Convert Unicode strings to somewhat reasonable ASCII7-only strings then strip diacritics and convert strings.
<cfprocessingdirective pageEncoding="utf-8">
<cfsetting enablecfoutputonly="Yes">
<!---
BLOG: https://www.mycfml.com/articles/convert-unicode-to-ascii7-using-anyascii-java-library/
--->
<cfscript>
function JUnidecode(inputString){
var JUnidecodeLib = "";
var response = "";
@bdw429s
bdw429s / task.cfc
Created January 17, 2019 19:09
CommandBox Task Runner to download packages from RiaForge
/**
* Scrape all the binaries from RiaForge
*/
component {
property name="progressableDownloader" inject="ProgressableDownloader";
property name="progressBar" inject="ProgressBar";
function run() {
directoryCreate( resolvePath( 'downloads' ), true, true );
var projects = deserializeJSON( fileRead( 'http://riaforge.org/index.cfm?event=json.projects' ) );
@Panman82
Panman82 / jwt.cfc
Last active September 16, 2021 15:14
ColdFusion component which has functions to work with JSON Web Tokens.
component
displayName = "JSON Web Token"
hint = "Utility library to work with JSON Web Tokens."
{
// Supported algorithms
variables.algorithms = {
"HS256" = "HmacSHA256",
"HS384" = "HmacSHA384",
@parsalotfy
parsalotfy / launch.json
Created November 29, 2018 17:14
VSCode launch configuration for building and testing csharp code by pressing F5
{
"version": "0.2.0",
"configurations": [
// Create a dotnet core class library named 'mylib' with pressing F5
{
"name": "Create_mylib",
"type": "coreclr",
"request": "launch",
"program": "dotnet",
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active April 29, 2026 15:36
set -e, -u, -o, -x pipefail explanation
@victor-perez
victor-perez / git.bat
Last active June 5, 2025 20:47
Use WSL git inside VS Code from Windows 10 17046
@echo off
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
::this also support calls that contains a absolute windows path
::check of one of the params contain a absolute windows path
echo.%* | findstr /r /c:"[a-z]:[\\/]" > nul
if %errorlevel% == 1 (
::if not just git with the given parameters
call :git %*
ncdu => df in gut
glances => modernes htop
github hub => cli tool
lnav => log viewer
goaccess => log viewer für webserver
task warrior => cli task management
gopass => gpg pw manager (pass ableger)
mosh => ssh client über udp
silversurfer => ack on steroids / platinum searcher
a(s?)cinema => bash session recording
@elijahmanor
elijahmanor / .prettierrc
Created March 20, 2018 01:52
Prettier Overrides per fileType
{
"singleQuote": true,
"overrides": [
{
"files": "src/**/*.css",
"options": {
"singleQuote": false
}
}
]
@anthrotype
anthrotype / ttdiff.sh
Last active July 18, 2018 10:03
Compare fonts with fonttools ttx
# compare fonts with ttx
ttdiff () {
if [ "$#" -lt 2 ]
then
echo "Usage: ttdiff FONT1.ttf FONT2.ttf [tables ...]"
return 1
fi
first="$1"
if [ ! -f "$first" ]; then
echo "File $first not found"

Font "package manager"

I've been thinking about creating a font management service similar to traditional software package managers (e.g. Debian Aptitude, NPM, etc.)

The basic idea is this:

  1. There's a main repository of fonts that are free (as in free to distribute) that the working group hosts
  2. There's a small program that serves as the "manager", to be used or installed on client systems
  3. The "manager" can be configured to operate with multiple repositories