Skip to content

Instantly share code, notes, and snippets.

Avatar

Bernhard Döbler bardware

View GitHub Profile
@Mistobaan
Mistobaan / README.md
Last active Apr 2, 2021
How to fix the AMAG Installation on MacOS Catalina
View README.md

I Purchased this mini keyboard to extend my editor with combinations of keys that I will never remember. Sadly installing the App was problematic as it does not work right away.

  1. The App is written in Adobe air (!). Download and install their library
  2. Install and run this command to overcome Catalina problems (Steve we miss you) (from this thread)[https://community.adobe.com/t5/air/adobe-air-error-message-macosx-catalina/td-p/10683302?page=1]:
sudo xattr -r -d com.apple.quarantine /Library/Frameworks/Adobe\ AIR.framework
  1. Downloaded the online software from Koolertron as of today (2020 June 20) is this link
View unblock.js
// Unblock everyone on Twitter: Go to https://twitter.com/settings/blocked and paste the below in DevTools
// Yes this is super ugly and hacky don’t @ me
function click_all_unblock_buttons() { document.querySelectorAll('button.blocked-text').forEach(btn => btn.click()); }
function unblock(min_num_accounts) {
var checkNumber, autoScroll, curScrollPos, prevScrollPos, checkScroll, done;
done = false;
curScrollPos = prevScrollPos = window.scrollY;
checkScroll = setInterval(() => {
View struct_funct.cfm
function calcAvg( numeric sold=0, numeric sales=0 ){
if( sales == 0 ){
return 0;
}
else{
return sold/sales;
}
}
data = {
@JamoCA
JamoCA / JUnidecode-ColdFusion-Demo.cfm
Last active Aug 5, 2020
JUnidecode ColdFusion Demo - Convert Unicode strings to somewhat reasonable ASCII7-only strings then strip diacritics and convert strings.
View JUnidecode-ColdFusion-Demo.cfm
<cfprocessingdirective pageEncoding="utf-8">
<cfsetting enablecfoutputonly="Yes">
<!---
BLOG: https://dev.to/gamesover/convert-unicode-strings-to-ascii-with-coldfusion-junidecode-lhf
--->
<cfscript>
function JUnidecode(inputString){
var JUnidecodeLib = "";
var response = "";
@bdw429s
bdw429s / task.cfc
Created Jan 17, 2019
CommandBox Task Runner to download packages from RiaForge
View task.cfc
/**
* 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' ) );
@victor-perez
victor-perez / git.bat
Last active Sep 30, 2020
Use WSL git inside VS Code from Windows 10 17046
View git.bat
@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 %*
View gist:fefc18808304e96f519ce273f33825c2
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 Mar 20, 2018
Prettier Overrides per fileType
View .prettierrc
{
"singleQuote": true,
"overrides": [
{
"files": "src/**/*.css",
"options": {
"singleQuote": false
}
}
]
@anthrotype
anthrotype / ttdiff.sh
Last active Jul 18, 2018
Compare fonts with fonttools ttx
View ttdiff.sh
# 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"
View Font package manager.md

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