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
{ | |
"type": "module", | |
"main": "./src/app.ts", | |
"scripts": { | |
"dev": "node --experimental-specifier-resolution=node --loader ts-node/esm src/app.ts" | |
}, | |
"dependencies": {}, | |
"devDependencies": { | |
"@types/node": "^20.6.0", | |
"ts-node": "^10.9.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
#!/bin/sh | |
xdg-open /home/$USER/.local/share/applications/menulibre-postman-agent.desktop | |
xdg-open /usr/share/applications/code.desktop | |
xdg-open /var/lib/flatpak/app/io.dbeaver.DBeaverCommunity/current/active/export/share/applications/io.dbeaver.DBeaverCommunity.desktop | |
xdg-open /home/$USER/.local/share/applications/firefox.desktop | |
xdg-open /usr/share/applications/xfce4-terminal.desktop |
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
class Utils { | |
static String timeMinutesSeconds(int totalSeconds) { | |
int minutes = (totalSeconds / 60).truncate(); | |
int seconds = minutes % 60; | |
return "$minutes:${seconds.toString().padLeft(2, '0')}"; | |
} | |
} |
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/sh | |
pacmd load-module module-null-sink sink_name=Virtual_Sink sink_properties=device.description=Virtual_Sink |
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
async function waitDocumentLoad() { | |
return new Promise<void>((resolve) => | |
window.addEventListener("load", () => resolve()) | |
) | |
} |
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
package tools | |
import ( | |
"net/http" | |
"github.com/gin-gonic/gin" | |
) | |
type HttpErr struct { | |
Err error |
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
# with color prompt | |
PS1="\[\033[95m\]\u@\h \[\033[32m\]\W\[\033[33m\] [\$(git symbolic-ref --short HEAD 2>/dev/null)]\[\033[00m\]\$ " | |
# without | |
PS1="\u@\h \W [\$(git symbolic-ref --short HEAD 2>/dev/null)]\$ " |
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 | |
/* | |
Plugin Name: LI Woo Shortcode | |
Plugin URI: http://li.last.nl | |
Description: Add Product Price in WooCommerce as a Shortcode | |
Version: 1.0 | |
Author: Lucian I. Last | |
Author URI: https://li.last.nl | |
License: GPL2 |
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 | |
/* | |
Plugin Name: LI Sitemap | |
Plugin URI: http://li.last.nl | |
Description: A very basic sitemap plugin | |
Version: 1.0 | |
Author: Lucian I. Last | |
Author URI: https://li.last.nl | |
License: GPL2 |
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 | |
dirs=("api" "api2") | |
for d in "${dirs[@]}" | |
do | |
pushd $d | |
git pull | |
popd | |
done |
NewerOlder