Skip to content

Instantly share code, notes, and snippets.

View matthiasfromm's full-sized avatar

Matthias Fromm matthiasfromm

View GitHub Profile
#!/bin/bash
#############################################
# WordPress Standard-Installation Script
# Für all-inkl Hosting mit WP CLI
# Version: 3.1 - Multiple Fonts & Colors
#############################################
# Farbcodes für Ausgabe
RED='\033[0;31m'
@t3dotgg
t3dotgg / model-prices.csv
Last active April 30, 2026 01:06
Rough list of popular AI models and the cost to use them (cost is per 1m tokens)
Name Input Output
Gemini 2.0 Flash-Lite $0.075 $0.30
Mistral 3.1 Small $0.10 $0.30
Gemini 2.0 Flash $0.10 $0.40
ChatGPT 4.1-nano $0.10 $0.40
DeepSeek v3 (old) $0.14 $0.28
ChatGPT 4o-mini $0.15 $0.60
Gemini 2.5 Flash $0.15 $0.60
DeepSeek v3 $0.27 $1.10
Grok 3-mini $0.30 $0.50
@trimzulu
trimzulu / nuphy-air75.md
Last active February 8, 2026 19:54
Nuphy Air75 Function Key Guide

Nuphy Air75 Function Key Guide

Switch wireless device:*

Hold key combo for pairing mode.

  • Bluetooth device 1: Fn + 1
  • Bluetooth device 2: Fn + 2
  • Bluetooth device 3: Fn + 3
  • 2.4GHz device: Fn + 4

Adjust Backlight

  • Change effect: Fn + ←
{
"shorty": {
"prefix": "shorty",
"body": [
"function ${2:function_name}(\\$atts, \\$content = null) {",
"\t\\$a = shortcode_atts([",
"\t\t'title'\t=> 'My Title',",
"\t\t'class'\t=> 'myClass'",
"\t], \\$atts);",
"\t\\$return_string = '';",
{
// Place your snippets for scss here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
@nextab
nextab / allow svg in WordPress.php
Last active January 31, 2026 12:46
Snippet for the functions.php of your WordPress (child) theme to allow .svg as a file format.
#region Allow .svg files
function nxt_allow_svg($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('upload_mimes', 'nxt_allow_svg');
function nxt_really_allow_svg($checked, $file, $filename, $mimes){
if(!$checked['type']){
$wp_filetype = wp_check_filetype( $filename, $mimes );
@eteubert
eteubert / readme.md
Last active October 7, 2022 15:56
Simple template for Podlove Publisher Shownotes

Preview:

@bradtraversy
bradtraversy / flutter_setup.md
Last active April 27, 2026 15:22
Flutter dev setup & notes
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active April 19, 2026 18:27
Online Resources For Web Developers (No Downloading)
@bradtraversy
bradtraversy / myscript.sh
Last active February 22, 2026 04:29
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"