Skip to content

Instantly share code, notes, and snippets.

View dr41d45's full-sized avatar
🌴
On vacation

dr41d45

🌴
On vacation
View GitHub Profile
@dr41d45
dr41d45 / far2l.bash
Last active May 4, 2023 11:00
bashers
sudo apt-get install software-properties-common && \
sudo add-apt-repository ppa:far2l-team/ppa && \
sudo apt install -y far2l
@dr41d45
dr41d45 / defstudio.code-snippets
Created March 10, 2023 14:54
defstudio.code-snippets
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. 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": {
// "scope": "javascript,typescript",
// "prefix": "log",
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. 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": {
// "scope": "javascript,typescript",
// "prefix": "log",
@dr41d45
dr41d45 / healthcheck
Created June 30, 2022 11:30
healthcheck
healthcheck:
test: ["CMD", "", "ping"]
interval: 60s
retries: 3
timeout: 5s
start-period: 50s
@dr41d45
dr41d45 / .env
Last active March 14, 2023 08:49
alrom1
CLOUDFLARE_API_TOKEN=7QMp1b6ADp-fcyCImzRZYFXwdR90W0-sTQyswyID
@dr41d45
dr41d45 / gist:73965172405754b2ed7507c9a72a071e
Created August 27, 2021 07:48 — forked from jamesgmarks/gist:56502e46e29a9576b0f5afea3a0f595c
MySQL/MariaDB BIN_TO_UUID and UUID_TO_BIN Polyfill
DELIMITER //
CREATE FUNCTION BIN_TO_UUID(b BINARY(16))
RETURNS CHAR(36)
BEGIN
DECLARE hexStr CHAR(32);
SET hexStr = HEX(b);
RETURN LOWER(CONCAT(
SUBSTR(hexStr, 1, 8), '-',
SUBSTR(hexStr, 9, 4), '-',