Skip to content

Instantly share code, notes, and snippets.

## Configurations
#Comment this line if you want a dynamic prompt. (Komentari baris ini jika Anda ingin tampilan prompt dinamis)
trap '' WINCH
# This make prompt statically (Ini akan membuat prompt menjadi statis)
# Hook prompt
eval "$(casex init bash)"
@luisadha
luisadha / molly-pet-addon.sh
Created November 29, 2025 05:32
molly secara harfiah menamai proyek pet dengan nama anjing (molly) merupakan konfigurasi tambahan untuk proyek pet, meliputi alias and completion
alias molly-come='eval "$(pet search | xargs -r echo)"'
alias molly-speak='pet search | tee /dev/tty | xargs -r echo | termux-tts-speak'
alias molly-jump='eval "$(pet search --query 📁)"'
alias molly-stay='pet list'
alias molly-paw='pet edit'
alias molly-heel='pet sync'
alias molly-settle='pet new'
alias molly-talk="pet list | grep 'Description:' | sed 's/^Description: *[^|]*|//' | grep -v '^$' | fzf | tee /dev/tty | xargs -r echo | termux-tts-speak"
alias molly-bloop='__molly_back'
function pet_select() {
@luisadha
luisadha / annihilation.sh
Last active November 14, 2025 13:23
Supported Library for Drawercli-Aurora
#!/data/data/com.termux/files/usr/bin/env sh
self="annihilation"
altername="Clear App Shortcuts Addon by Drawercli aurora"
# CREATE
printf 'bash --init-file %s/bin/annihilation\nread cont\n' "$PREFIX" > "$HOME/.shortcuts/.${self}"
# DELETE
rm -f "$HOME/.shortcuts/"*
@luisadha
luisadha / m82.sh
Last active November 9, 2025 07:15
#!/data/data/com.termux/files/usr/bin/bash
# termux-url-opener
# COPYRIGHT © 2025 LUIS ADHA
TAG_REDDIT="r"
SUBREDDIT_OR_TOPICS="Youtube_"
SAFE_TITLE=$(echo "$TITLE" | sed 's#[\/:*?"<>|]#-#g')
INFO_TRACK="Sekarang dimainkan"
URL_FORWARDING="$1"
LOG="$HOME/.termux-url-opener.log"
@luisadha
luisadha / cigarettes-after-sex-prompt
Last active November 25, 2025 10:09
prompt minimal with bash-preexec
get_beat_time() {
local epoch=$(date +%s)
# Offset to BMT (UTC+1)
local bmt=$((epoch + 3600))
# Took secs since midnight (BMT)
local sec_since_midnight=$(( bmt % 86400 ))
local beat=$(( sec_since_midnight * 1000 / 86400 ))
printf "%03d\n" "$beat"
}
export -f get_beat_time
{
"categories": [
{
"id": "013d3b3d-b8bf-402e-bee8-022c6a925983",
"layoutType": "wide_grid",
"name": "API",
"sections": [
{
"id": "adcdd760-09a4-4331-bb75-5ba3c8aefec9",
"name": "Developer \u003e API \u003e Services"
@luisadha
luisadha / nix-channels.txt
Created May 10, 2025 17:24
cat nix-channels.txt
home-manager https://github.com/rycee/home-manager/archive/release-22.05.tar.gz
nix-on-droid https://github.com/t184256/nix-on-droid/archive/testing.tar.gz
nixpkgs https://nixos.org/channels/nixos-22.05
@luisadha
luisadha / default.nix
Created May 10, 2025 17:18
cat ~/.config/nix-on-droid/home-manager/default.nix #cdd #aliases #abbrs
{ pkgs, lib, ... }:
{
imports = [
./fish.nix
# ./starship.nix
./git.nix
./lazygit.nix
./fzf.nix
./vim.nix
./tmux ]; # Import any config
@luisadha
luisadha / nix-on-droid.nix
Last active May 10, 2025 17:19
cat ~/.config/nix-on-droid/nix-on-droid.nix #cnn #aliases #abbrs
{ config, lib, pkgs, ... }:
{
# termux integration
android-integration = {
am.enable = true; # termux-am
termux-open.enable = true;
termux-open-url.enable = true;
termux-reload-settings.enable = true;
termux-setup-storage.enable = true;
#!/data/data/com.termux/files/usr/bin/bash
# Created @luisadha
set +o noclobber;
format='audio/mp3';
format2='audio';
file="${1:+"${1}/*.mp3"}";
file2="${1:-"${HOME}/downloads/*.mp3"}";
files=$(busybox ls ${file:-${file2}});