#################
# in 1st terminal
#################
# enable usb debugging and root debugging, if no root debugging available, root device with e.g. magisk, after change remove root again
adb root
adb shell
# look at `mount` and find the read only system partition
mount -o rw,remount /
# or
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
C:\Users\alist\scoop\shims\brave.exe --kiosk --enable-extensions --user-agent="Mozilla/5.0 (PS4; Leanback Shell) Gecko/20100101 Firefox/65.0 LeanbackShell/01.00.01.75 Sony PS4/ (PS4, , no, CH)" "https://www.youtube.com/tv#/?env_forceFullAnimation=true" |
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 | |
# to add this as a cronjob that runs every day at 4:00, run `crontab -e` and add the following line: | |
# 0 4 * * * /srv/restic/run_backup.sh | |
RESTIC_PATH="/home/al/.nix-profile/bin/restic" | |
SCRIPT_DIR="/srv/restic" | |
LOG_FILE="$SCRIPT_DIR/logs/backup_$(date +%Y%m%d_%H%M%S).log" | |
ENV_FILE="restic.env" |
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
DEVICE=$(adb devices | sed -n '2 p' | cut -f 1) | |
# set window title | |
echo -en "\033]0;SCRCPY\007" | |
adb -s $DEVICE shell wm size 1080x1920 | |
# stop twitch from avoiding cutout | |
adb -s $DEVICE shell cmd overlay enable com.android.internal.display.cutout.emulation.noCutout | |
adb -s $DEVICE shell cmd overlay enable com.android.internal.display.cutout.emulation.corner | |
# if device is ip then use 2M bitrate and 200 buffer | |
if [[ $DEVICE == *:* ]];then |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
:doctype: book | |
:toc: left | |
:toclevels: 3 | |
:data-uri: | |
:icons: font | |
:source-highlighter: rouge | |
:source-linenums-option: inline | |
:icons: font | |
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
# Check if an argument is provided | |
if ($args.Count -eq 0) { | |
Write-Host "No video file provided. Usage: .\script.ps1 [video file]" | |
exit | |
} | |
# Assign the first argument as the input file | |
$inputFile = $args[0] | |
# Check if the file exists |
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
FROM ubuntu:22.04 | |
RUN apt update && apt install -y sudo wget gnupg2 git | |
# Add the makedeb repository and install the package | |
RUN wget -qO - 'https://proget.makedeb.org/debian-feeds/makedeb.pub' | gpg --dearmor | sudo tee /usr/share/keyrings/makedeb-archive-keyring.gpg 1> /dev/null | |
RUN echo 'deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.makedeb.org/ makedeb main' | sudo tee /etc/apt/sources.list.d/makedeb.list | |
RUN sudo apt update && sudo apt install -y makedeb | |
# Create the test folder | |
RUN mkdir /test |
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
# ######## | |
# # bash # | |
# ######## | |
# pattern="KMS_VL_ALL_AIO-.*.7z" | |
# repo="abbodi1406/KMS_VL_ALL_AIO" | |
# # remove old files | |
# rm -f description.txt && rm -f ATLauncher-*.jar | |
# # get the files | |
# curl -s "https://api.github.com/repos/$repo/releases/latest" | grep -oP '"browser_download_url":\s*"\K[^"]+' | grep -E "$pattern" | wget -q --show-progress -i - |
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
# ######## | |
# # bash # | |
# ######## | |
# pattern="ATLauncher-.*" | |
# repo="Alistair1231/ATLauncher-Offline" | |
# # remove old files | |
# rm -f description.txt && rm -f ATLauncher-*.jar | |
# # get the files | |
# curl -s "https://api.github.com/repos/$repo/releases/latest" | grep -oP '"browser_download_url":\s*"\K[^"]+' | grep -E "$pattern" | wget -q --show-progress -i - |
NewerOlder