Skip to content

Instantly share code, notes, and snippets.

@luisadha
luisadha / ranpper.sh
Created November 14, 2022 00:01
Install wallpaper randomly in the selected directory
#!/system/bin/sh
# date Thu May 9 19:00:28 WIB 2019
# Script untuk secara acak memilih gambar lalu mengaturnya menjadi wallpaper dari file dalam directory
# (28.05.2019)Teu
# Honeycoffe
# Requipment
# - Directory Containing Pictures
# - Busybox installed in your device
@luisadha
luisadha / playx.sh
Last active February 2, 2023 11:27
#
#!/bin/bash
# Usage : cd /some/dir/containing/mediafiles
# bash playx
# Dec: playing random media files on working directory
# dependencies :
# - memerlukan mpv untuk membuat subproses agar berjalan mengikuti proses java dan mengumpulkan informasi file yang diperlukan
# - bc package untuk menghitung agar subproses berjalan dengan baik
#!/bin/bash
#https://review.potatoproject.co/plugins/gitiles/PotatoProject/build_make/+/3caec84292975e33a82a3491ecd4d63461d9402b/tools/buildinfo.sh
echo "# begin build properties"
echo "# autogenerated by buildinfo.sh"
echo "ro.build.id=$BUILD_ID"
echo "ro.build.display.id=$BUILD_DISPLAY_ID"
echo "ro.build.version.incremental=$BUILD_NUMBER"
echo "ro.build.version.sdk=$PLATFORM_SDK_VERSION"
echo "ro.build.version.preview_sdk=$PLATFORM_PREVIEW_SDK_VERSION"
echo "ro.build.version.preview_sdk_fingerprint=$PLATFORM_PREVIEW_SDK_FINGERPRINT"
@luisadha
luisadha / aphroditeascii_tasker.sh
Last active January 25, 2024 09:40
convert image to ascii on background
#!/data/data/com.termux/files/usr/bin/env zsh
# by luisadha
#
( while true; do
cols=$(tput cols)
if [ "$cols" == "141" ]; then
jp2a ~/downloads/aphrodite_by_juni_anker.jpg
sleep 1
break
@luisadha
luisadha / AndroidManifest.xml.ms
Last active February 13, 2024 09:08
cat AndroidManifest.xml | YOUR_APP_NAME="com.google.adharudin14.aplikasisaya" mush -o AndroidManifest.xml.update
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="{{YOUR_APP_NAME}}">
<uses-sdk android:targetSdkVersion="17" android:minSdkVersion="17" />
<application>
<service
android:name=".{{YOUR_DAYDREAM_CLASS}}"
@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;
@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-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
{
"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"