Software Engineer
Experienced with Web development. Enjoy programming, IT Administration, TUIs and beautiful UIs. Friendly and Team player.
Email dev.tobihans@gmail.com | Telegram @hanstobi | Twitter @tognon_hans
/* This typst local package will allow you to reference the same bibliography file from any typst file | |
Steps: | |
1) Create the directory ~/.local/share/typst/packages/local/mybib/1.0.0 | |
2) Write a typst.toml file containing: | |
[package] | |
name = "mybib" | |
version = "1.0.0" | |
entrypoint = "lib.typ" | |
authors = ["Your Name Here"] |
Software Engineer
Experienced with Web development. Enjoy programming, IT Administration, TUIs and beautiful UIs. Friendly and Team player.
Email dev.tobihans@gmail.com | Telegram @hanstobi | Twitter @tognon_hans
[package] | |
name = "pig-latin" | |
version = "0.1.0" | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
regex = "1.5.4" |
-- Usage: _="install Draggable(dragHandle: .titlebar in me)" | |
behavior Draggable(dragHandle) | |
init | |
if no dragHandle set the dragHandle to me | |
end | |
on pointerdown(clientX, clientY) from dragHandle | |
halt the event | |
trigger draggable:start -- hooks, e.g. for adding a drop shadow while dragging | |
measure my x, y |
#!/bin/bash | |
# Colors definitions | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NC='\033[0m' # No Color | |
BOLD=$(tput bold) | |
NORMAL=$(tput sgr0) | |
# Check if necessary applications are installed |
Deploy Laravel on Docker using nginx-proxy
+ acme-companion
(formerly called docker-letsencrypt-nginx-proxy-companion
)
Prepare two seperate docker compose file i.e docker-compose.nginx.yml
& docker-compose.app.yml
Create nginx
directory and move docker-compose.nginx.yml
into it.
Create YOUR_DOMAIN.conf
and YOUR_DOMAIN_location_override.conf
in nginx
directory.
In this tutorial I'll show you how to create a Github webhook that will post updates from your Github account to a channel in Discord. The steps are simple so follow along!
First you need to create a webhook in a text channel. We're assuming you have both Manage Channel
and Manage Webhooks
permissions!
This script was adapted to allow you to play audio files through your microphone input. It does so by creating a virtual microphone and piping an audio file to it.
The work was mostly done in this StackOverflow answer, I just adapted it to use ffmpeg and add a trap to cleanup on exit.
Requirements:
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |