Skip to content

Instantly share code, notes, and snippets.

View vielhuber's full-sized avatar
🍐
❹❷

David Vielhuber vielhuber

🍐
❹❷
View GitHub Profile
@vielhuber
vielhuber / index.html
Created May 22, 2026 16:52
animated glow border textarea #css
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>glow</title>
<style>
/* boilerplate */
* {
box-sizing: border-box;
@vielhuber
vielhuber / bash.sh
Last active May 22, 2026 06:03
composer update all packages (equivalent of ncu in npm) #php
composer global require vildanbina/composer-upgrader
composer upgrade-all
composer update
composer outdated -D --direct
@vielhuber
vielhuber / README.md
Last active May 20, 2026 09:26
antigravity cli #ai

installation

  • IDE Download / Login
cd /tmp
wget https://storage.googleapis.com/antigravity-public/antigravity-hub/2.0.1-6566078776737792/linux-x64/Antigravity.tar.gz
mkdir -p /opt/antigravity
tar -xzf Antigravity.tar.gz -C /opt/antigravity --strip-components=1
/opt/antigravity/antigravity --no-sandbox
@vielhuber
vielhuber / README.md
Last active May 12, 2026 07:13
chatgpt codex #ai

installation

  • npm install -g @openai/codex
  • codex --version

load skills

  • mkdir -p ~/.agents
  • ln -s /var/www/boilerplate/AGENTS.md ~/.codex/AGENTS.md
  • ln -s /var/www/boilerplate/_skills ~/.agents/skills
@vielhuber
vielhuber / README.md
Last active March 18, 2026 10:18
cypress #js

SETUP

  • apt-get install libgtk-3-0t64 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb
  • git lfs install
  • mkdir -d /var/www/project/path/to/cypress
  • cd /var/www/project/path/to/cypress

PREPARE SEED FROM SQL

  • syncdb custom-production-local
@vielhuber
vielhuber / functions.php
Last active February 18, 2026 11:30
microsoft exchange 365 support wp_mail #php #wordpress
<?php
// smtp microsoft 365 exchange support
add_filter(
'pre_wp_mail',
function ($pre_wp_mail, $attributes) {
$from_email = 'noreply@vielhuber.de';
$mailhelper = new \vielhuber\mailhelper\mailhelper([
$from_email => [
'smtp' => [
'host' => 'smtp.office365.com',
@vielhuber
vielhuber / README.MD
Last active February 11, 2026 13:25
supervisor #server

installation

  • apt-get install -y supervisor

start/stop

  • systemctl start supervisor
  • systemctl stop supervisor

commands

@vielhuber
vielhuber / .bashrc
Last active March 25, 2026 07:59
Auto switch version on command line based on env files #php #js #python
# auto switch
find_up() {
local file="$1"
local dir="$PWD"
while [[ "$dir" != "/" ]]; do
if [[ -f "$dir/$file" ]]; then
echo "$dir/$file"
return 0
fi
dir="$(dirname "$dir")"
@vielhuber
vielhuber / script.js
Created December 16, 2025 11:16
tts text to speech browser native #js
// list voices
speechSynthesis.getVoices().forEach(speech => { console.log(speech); });
// speak
let message = new SpeechSynthesisUtterance('Verteidigungsminister Boris Pistorius hat die Berliner Ukraine-Gespräche mit Europäern und den USA gelobt.');
message.lang = 'de-DE';
message.voice = speechSynthesis.getVoices().filter(voice => voice.name === 'Google Deutsch')[0];
window.speechSynthesis.speak(message);
// stop
@vielhuber
vielhuber / index.html
Last active December 16, 2025 11:33
stt speech-to-text native browser web speech api #js
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5, minimum-scale=1" />
<title>Web Speech API</title>
<script>
class STT {
static instances = [];