Software Engineer
Experienced with Web development. Enjoy programming, IT Administration, TUIs and beautiful UIs. Friendly and Team player.
Email [email protected] | Telegram @hanstobi | Twitter @tognon_hans
" ~/.idea-lazy.vim | |
" LazyVim mappings for Jetbrains IDEs | |
" Required plugins. https://plugins.jetbrains.com/bundles/7-ideavim-bundle | |
" IDEAVim | |
" Which-Key | |
" IdeaVim-Sneak | |
" To install, add this to the top of your ~/.ideavimrc: |
"use client"; | |
import { useState, useEffect, useRef } from "react"; | |
function SimpleRecordButton() { | |
const [isRecording, setIsRecording] = useState(false); | |
const [audioStream, setAudioStream] = useState(null); | |
const [mediaRecorder, setMediaRecorder] = useState(null); | |
const [audioBlob, setAudioBlob] = useState(null); | |
const [recordingTime, setRecordingTime] = useState(0); | |
const timerRef = useRef(null); |
/* 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 [email protected] | 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.