Skip to content

Instantly share code, notes, and snippets.

View SIMULATAN's full-sized avatar
🐳
dockerized my brain (forgot to expose the ports tho..)

Jakob Hofer SIMULATAN

🐳
dockerized my brain (forgot to expose the ports tho..)
View GitHub Profile
-- inserts
---- Produkt
insert into Ue14_Produkt (prodNr, prodBez) VALUES (1, 'Zanderfilet');
insert into Ue14_Produkt (prodNr, prodBez) VALUES (2, 'Milchrahmstrudel');
insert into Ue14_Produkt (prodNr, prodBez) VALUES (3, 'Pizzabrötchen');
insert into Ue14_Produkt (prodNr, prodBez) VALUES (4, 'Chicken Nuggets');
---- Produktpreis
insert into Ue14_Produktpreis (prodNr, vonDatum, prodPreis) values (1, to_date('30.06.01','DD.MM.YY'), 180);
insert into Ue14_Produktpreis (prodNr, vonDatum, prodPreis) values (1, to_date('01.01.02','DD.MM.YY'), 190);
@SIMULATAN
SIMULATAN / BADGE.MD
Last active January 5, 2022 18:47
Discord Readme Badge

My Discord (505713760124665867)

This is how you make a permanent Link to your Discord User in any markdown file you want (as seen above)!

[![My Discord (YOURUSERID)](https://img.shields.io/badge/My-Discord-%235865F2.svg)](https://discord.com/users/YOURUSERID)

Explanation: a image link to a static shields.io badge with the "My Discord" description wrapped into a link to a discord url that opens your user in the app

{
"schema_version": 1,
"name": "Trello to Notion",
"description": "No description provided",
"source_url": false,
"guid": "e460cd75f07b134f913d503328a3a9f3",
"tag_fg_color": "#ffffff",
"tag_bg_color": "#5bc0de",
"icon": "gear",
"exported_at": "2021-06-01T17:53:04Z",
@Merott
Merott / tailwind-colors-as-css-variables.md
Last active June 23, 2024 12:06
Expose Tailwind colors as CSS custom properties (variables)

This is a simple Tailwind plugin to expose all of Tailwind's colors, including any custom ones, as custom css properties on the :root element.

There are a couple of main reasons this is helpful:

  • You can reference all of Tailwind's colors—including any custom ones you define—from handwritten CSS code.
  • You can define all of your colors within the Tailwind configuration, and access the final values programmatically, which isn't possible if you did it the other way around: referencing custom CSS variables (defined in CSS code) from your Tailwind config.

See the Tailwind Plugins for more info on plugins.

@alemures
alemures / wireless-n-2230-debian-setup.md
Last active December 23, 2023 09:47
Intel Wireless-N 2230 debian setup

Check wireless hardware: sudo lspci -kv

For hardware Intel Corporation Centrino Wireless-N 2230, a non-free package is needed so, add to /etc/apt/sources.list deb http://httpredir.debian.org/debian/ stretch main contrib non-free

$ sudo apt update
$ sudo apt upgrade
$ sudo apt install firmware-iwlwifi
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active July 22, 2024 19:39
Conventional Commits Cheatsheet

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions, determine version and generate changelogs

Commit Message Formats

Default

@DimaKoz
DimaKoz / go-executable-build.sh
Last active January 29, 2024 07:02
The Script to Automate Cross-Compilation for Golang(OSX)
#Before we can use the script, we have to make it executable with the chmod command:
#chmod +x ./go-executable-build.sh
#then we can use it ./go-executable-build.sh yourpackage
#!/usr/bin/env bash
package=$1
if [[ -z "$package" ]]; then
echo "usage: $0 <package-name>"
exit 1
fi
@scragly
scragly / discord_emoji.md
Last active July 3, 2024 20:57
Emoji for Discord Bots

Discord Emoji

Note: This is written for those using Python 3 and discord.py, so if you're using something else please reference the relevant documentation for your language or library if you choose to use this as a general reference.

On Discord, there are two different emoji types:

Each needs to be handled differently, as while unicode emoji are just simple unicode characters, Discord custom emoji are special objects available only in Discord, belonging to a specific Discord guild and having their own snowflake ID.

@mplinuxgeek
mplinuxgeek / sshrc
Last active February 28, 2023 08:26
Script to check the IP address of the SSH session, if it doesn't match the local subnet an email is sent with details of the session and some details of the IP from whois
#!/bin/bash
# Paste this script into /etc/ssh/sshrc
# This runs everytime an ssh session is initiated.
# The script checkes the remote IP address against the local
# subnet, if the subnet is not in the IP address then an
# email is sent containing details about the session and
# some details from whois about the IP address.
#
# Changes: Initial version, tested on CentOS 7
#
@DavMorr
DavMorr / gist:53e3ad5c26d16f4f6be3220b078b19c9
Last active March 9, 2024 11:43
Include hidden files in tar archive
When you create a tar archive of a directory tree the hidden files are normally not included. Here’s how to include the hidden files.
Say you have a web directory called “/var/www/html/mysite/” that contains the following tree:
.htaccess
index.php
logo.jpg
style.css
admin_dir/.htaccess
admin_dir/includes.php