Skip to content

Instantly share code, notes, and snippets.

View frosit's full-sized avatar

Fabio Ros frosit

View GitHub Profile
@frosit
frosit / Pokémon TCG API (Unofficial Spec) - updated .postman_collection.json
Last active January 3, 2025 09:20
Pokemon TCG postman / openapi (unofficial)
{
"info": {
"_postman_id": "88f11ceb-1bb3-4b3e-97a0-1e87e4e1685f",
"name": "Pokémon TCG API (Unofficial Spec) Copy",
"description": "**Unofficial** OpenAPI spec for the Pokémon TCG v2 API. This spec was partially generated based on the sources below and may not be 100% accurate.\n- [pokemon-tcg-data](https://github.com/PokemonTCG/pokemon-tcg-data)\n- [pokemon-tcg-api-docs](https://github.com/PokemonTCG/pokemon-tcg-api-docs)\n\nFor access to this API, request a key at [https://dev.pokemontcg.io/](https://dev.pokemontcg.io/).\n\nThis document extends the original minimal spec by adding tags, operationIds, best-practice responses (like 429), and example parameters.\n",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "2334199",
"_collection_link": "https://interstellar-spaceship-385597.postman.co/workspace/TCG-Card-Scanning~b7511307-eb69-401d-8ef8-a75382bbe8e4/collection/2334199-88f11ceb-1bb3-4b3e-97a0-1e87e4e1685f?action=share&source=collection_link&

About CPU Architectures

Due to the wide variety of CPU architectures available, it's essential to understand the different identifiers and aliases used to represent these architectures in various environments. This guide provides an overview of common CPU architectures, their identifiers, and how they are represented in Docker, uname -m, and other contexts. This woulld be like a guide to multi-platform builds in Docker.

In a nutshell

There's a wide variety of architectures and identifiers/aliases, when we look at the most common ones, we have to take note of the following:

  • aarch64 - linux/arm64
@frosit
frosit / README.md
Last active November 12, 2024 15:44
Set argonone fan to 100% or 0%

Scripts & info for argonone case (pi4)

Due to always messing with this argon case when using a new install. This would keep everything needed close.

Install original software

curl https://download.argon40.com/argon1.sh | bash
@frosit
frosit / cmds.sql
Created October 20, 2022 14:41
db commands
-- get db size
SELECT round(Sum(data_length + index_length) / 1024 / 1024, 1) as "Size in MB" FROM information_schema.TABLES WHERE table_schema = database();
-- get sizes of all dbs
SELECT table_schema "DB Name",
ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "MB"
FROM
information_schema.tables
WHERE
@frosit
frosit / maketar.sh
Created June 16, 2022 14:50
make tar
#!/usr/bin/env bash
if [[ "$1" == "-h" || "$1" == "--help" || ! ${1+x} ]]; then cat <<HELP
Creates a tar file of specified file/folder
Usage: $(basename "$0") [folder-to-tar] [{save-as}.tar.gz]
This command will tar the file/folder of the first argument.
It will use the first argument als filename adding .tar.gz
If a second argument is supplied, this will be used as the location/name to save the tar.
@frosit
frosit / cloudflare_dyn_dns.sh
Created December 22, 2021 09:15 — forked from chappy84/cloudflare_dyn_dns.sh
CloudFlare Dynamic DNS Shell Script
#!/bin/sh
#
# CloudFlare Dynamic DNS
#
# Updates CloudFlare records with the current public IP address
#
# Takes the same basic arguments as A/CNAME updates in the CloudFlare v4 API
# https://www.cloudflare.com/docs/client-api.html#s5.2
#
# Use with cron jobs etc.
@frosit
frosit / doctrine-arraycache-missing.patch
Created August 1, 2021 23:11
Patch file that returns missing (deprecated) ArrayCache class, blocking composer install.
---
lib/Doctrine/Common/Cache/ArrayCache.php | 115 +++++++++++++++++++++++
1 file changed, 115 insertions(+)
create mode 100644 lib/Doctrine/Common/Cache/ArrayCache.php
diff --git a/lib/Doctrine/Common/Cache/ArrayCache.php b/lib/Doctrine/Common/Cache/ArrayCache.php
new file mode 100644
index 0000000..eca43b8
--- /dev/null
+++ b/lib/Doctrine/Common/Cache/ArrayCache.php
@frosit
frosit / dbparse.sh
Created April 13, 2021 02:47
Chrome history export support multiple profiles
#!/bin/bash
# Original: https://gist.github.com/TravelingTechGuy/7ac464f6cccde912a6ec7a1e2f8aa96a
#
# Mac: ~/Library/Application\ Support/Google/Chrome/Default/History
#
# Adjustments:
# * Fix: for datetime
# * Mains on visits instead of url's for enhanced stats
# * exports history of every profile instead of default
#
@frosit
frosit / argon1.sh
Last active December 10, 2022 04:19
#!/bin/bash
argon_create_file() {
if [ -f $1 ]; then
sudo rm $1
fi
sudo touch $1
sudo chmod 666 $1
}
@frosit
frosit / launchikvm
Created November 16, 2019 00:12 — forked from eniac111/launchikvm
The script fixes the annoying "no iKVM64 in java.library.path" bug with the Java iKVM laucher of some Supermicro servers :)
#!/bin/bash
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# <[email protected]> wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return Blagovest Petrov
# ----------------------------------------------------------------------------
# The script fixes the "no iKVM64 in java.library.path" bug with the SuperMicro
# iKVM Java S**t. You can do an alias of it, like: "alias javaws=/usr/local/bin/launchikvm"