Skip to content

Instantly share code, notes, and snippets.

View CMS-Internetsolutions's full-sized avatar
🏠
Working from home

CMS-Internetsolutions CMS-Internetsolutions

🏠
Working from home
View GitHub Profile
@CMS-Internetsolutions
CMS-Internetsolutions / README.MD
Created November 16, 2025 16:28 — forked from vielhuber/README.MD
MySQL: Collations / convert collation character set of all tables (collaction unicode latin order sort) #sql

notes

  • Empfehlung: utf8mb4 + utf8mb4_unicode_ci
  • Ein Character Set ist der Zeichenvorrat für alle Daten in der Datenbank.
    • utf8: Entspricht utf8mb3 (später wird utf8mb3 auf mb4 gemappt)
    • utf8mb4: Für jeden Charakter werden 4 Bytes reserviert. Nur dann passen auch Emojis rein.
  • Es gibt komplexere Emojis, die manchmal nicht gehen (😀 vs. ❤️)
  • Eine Kollation regelt die Sortierregeln dieses Zeichenvorrats bei der Benutzung von ORDER BY
  • Es gibt Kollations für die Datenbank, Tabelle und Spalten (die Collation für die Spalten sind entscheidend, alles andere hat nur Auswirkung auf die Neuanlegung von Spalten bzw. Tabellen)
  • Eine sehr weit verbreitete und übliche Kombination ist utf8_unicode_ci, utf8 und utf_general_ci (das verwenden wir bei allen Projekten)
  • utf_general_ci ist ein vereinfachter Standard, der nicht so viele Ressourcen braucht; dies ist heutzutage aber nicht mehr relevant
@CMS-Internetsolutions
CMS-Internetsolutions / fast_internet.sh
Created October 8, 2025 17:19 — forked from egyleader/fast_internet.sh
Limit network bandwidth in linux using wondershaper
#!/bin/bash
sudo wondershaper -c -a wlp2s0
echo speed limit removed
@CMS-Internetsolutions
CMS-Internetsolutions / change-class-on-scroll.html
Created May 5, 2024 22:33 — forked from ohiosveryown/change-class-on-scroll.html
Vanilla JS – change/add class based on scroll position.
// https://codepen.io/cmykw/pen/gemxJm
// layout
<nav/>
// style
<style>
body { min-height: 200vh; }
nav {
@CMS-Internetsolutions
CMS-Internetsolutions / change-class-on-scroll.html
Created May 5, 2024 22:33 — forked from ohiosveryown/change-class-on-scroll.html
Vanilla JS – change/add class based on scroll position.
// https://codepen.io/cmykw/pen/gemxJm
// layout
<nav/>
// style
<style>
body { min-height: 200vh; }
nav {
@CMS-Internetsolutions
CMS-Internetsolutions / Bootstrap 5 Container with Multiple Contents.md
Last active December 20, 2023 19:45
This code snippet creates a container with two columns, one for each column. The first row contains the text "With more content" and another is displayed in an even-more border of different cells (row sizes) using CSS styles

Bootstrap 5 Container with Multiple Contents

Preview:
<div class="container">
  <div class="row align-items-stretch">
    <div class="col">
      <div class="p-3 border bg-light">Column 1</div>
    </div>
    <div class="col">
 Column 2With more content
@CMS-Internetsolutions
CMS-Internetsolutions / UpdateChocolatey.bat
Created November 4, 2022 19:18 — forked from lowleveldesign/UpdateChocolatey.bat
Scripts to automatically update all Chocolatey packages installed on your system
@echo off
powershell -NoProfile -ExecutionPolicy ByPass -File "%~d0%~p0%~n0.ps1"