tags | aliases | created_on |
---|---|---|
2022-02-17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title></title> | |
<link href="style.css" rel="stylesheet"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import csv | |
import os.path | |
import sys | |
import logging | |
import re | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:8.1-alpine | |
RUN set -ex \ | |
&& apk --no-cache add postgresql-dev | |
RUN docker-php-ext-install pdo pdo_mysql pdo_pgsql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# SQL setup: | |
# CREATE TABLE payment_sequence (id INT NOT NULL); | |
# INSERT INTO payment_sequence VALUES(0); | |
# CREATE TABLE payment_log(id INT PRIMARY KEY, client_id INT, loop_id INT, ts DATETIME(6)); | |
$db = new PDO("mysql:dbname=fundraising;host=database", 'fundraising', 'INSECURE PASSWORD'); | |
$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
- Zettelkasten deutsch - Smarte Notizen schreiben | Wissensmanagement 2.0, Zusammenfassung des Buches "Das Zettelkasten-Prinzip" von Sönke Ahrens: https://www.amazon.de/dp/B06WVSFYB4/ref=cm_sw_r_tw_dp_JF9P0F3TMV9B8CVSEWCE
- Zettelkasten Note-Taking: What I wish I knew about Smart Notes
- The Second Brain - A Life-Changing Productivity System
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
if (!empty($argv[1])) { | |
$data = (string)$argv[1]; | |
} elseif (!stream_isatty(STDIN)) { | |
$data = stream_get_contents(STDIN); | |
} else { | |
echo "Usage: $argv[0] <base64_encoded_serialized_data>\n"; | |
exit(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This example shows how to override implementations without subclassing, | |
// using anonymous classes and traits. | |
interface Animal { | |
public function makeSound(): string; | |
public function move(): string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A script for use with fzf in a nvalt-like setting | |
# (Either selecting a file or creating a new one) | |
# Use like this: fzf --bind "enter:execute(./vimquery {q} {})+abort" | |
if [ -z "$2" ]; then | |
if [ ! -z "$1" ]; then | |
vim "$1.md" | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls_home>show home> ls ~ | |
ranger> > ranger | |
config_nvim>Configure NVim> vim -c "cd ~/.config/nvim" ~/.config/nvim/init.vim | |
# vim: set list listchars:tab=>- noexpandtab tabstop=15 | |
~ |
NewerOlder