Install android-tools if you haven't already:
pkg update ; pkg upgrade
pkg install android-tools
adb pair localhost:port
#!/bin/bash | |
if [ -z "$ANDROID_NDK" ]; then | |
echo "Please set ANDROID_NDK to the Android NDK folder" | |
exit 1 | |
fi | |
#Change to your local machine's architecture | |
HOST_OS_ARCH=linux-x86_64 | |
function configure_ffmpeg { |
// ==UserScript== | |
// @name Fullscreen Landscape | |
// @namespace https://kairusds.js.org/ | |
// @version 0.1 | |
// @description Fix Chrome mobile fullscreen orientation | |
// @author kairusds | |
// @match http://*/* | |
// @match https://*/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none |
#!/bin/sh | |
if [ $# -eq 0 ]; then | |
echo "Usage: audnorm <path>" | |
exit 1 | |
fi | |
out="${1%.*}.normalized.mp3" | |
ffmpeg -i "$1" -ab 192k -af "volume=6.0dB" "$out" |
for file in $(<files.txt); do cp file_clone_source "$file"; done |
/talent n 10 | |
/talent e 10 | |
/talent q 10 | |
/stat lock cdr 1 | |
/stat lock atk 9999999 | |
/stat lock crate 1 | |
/stat lock cdmg 9999999 | |
/stat lock eanemo 1 | |
/stat lock ecryo 1 | |
/stat lock edend 1 |
# Fix date time of files and subdirectories inside the specified directory | |
find ~/dir -print -exec touch -m {} \; | |
# Generate a video with a still image and audio | |
ffmpeg -r 1 -loop 1 -i bg.jpg -i audio.mp3 -c:v libx264 -tune stillimage -c:a copy -pix_fmt yuv420p -shortest still_img_vid.mp4 | |
# Trim videos in hours:minutes:seconds format | |
ffmpeg -i video.mp4 -ss 00:01:00 -to 00:03:05 -c copy trimmed_video.mp4 | |
# Get ssh public key from a private key |
# Get .NET SDK 6.0 for Linux distros (https://learn.microsoft.com/en-us/dotnet/core/install/linux) | |
# Build ILSpy | |
git clone --recurse-submodules https://github.com/icsharpcode/ILSpy | |
dotnet build ILSpy/ILSpy.XPlat.slnf | |
# For Alpine Linux, replace `.bashrc` with `.profile` | |
# If you're using a different shell, refer to its documentation. | |
echo "# ILSpy" >> ~/.bashrc | |
echo 'export PATH="$PATH:'"$(find $PWD/ILSpy/ICSharpCode.ILSpyCmd/bin/Debug/net* -print -quit)\"" >> ~/.bashrc |
Install android-tools if you haven't already:
pkg update ; pkg upgrade
pkg install android-tools
adb pair localhost:port
# Use this inside your project directory | |
git config core.sshCommand "ssh -i ~/.ssh/userkey" |
Use "hh:mm:ss.mss" as the format for the timestamps if you don't want to enable fix_keyframes so that the trim will be instant. For example:
fftrim video.mp4 "01:00:03.000" "03:00:00.000"