# Ubuntu and Debian
sudo apt update
sudo apt upgrade
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install build-essential gcc-multilib g++-multilib libedit-dev lib32z1-dev lib64z1-dev git libsdl2-dev:i386 libfreetype6-dev:i386 libfontconfig1-dev:i386 libopenal-dev:i386 libjpeg-dev:i386 libpng-dev:i386 libcurl4-gnutls-dev:i386 libbz2-dev:i386 libedit-dev:i386 libopus-dev python3 python-is-python3 python3-venv
This file contains hidden or 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
# Using HEAD as the commit hash is equal to using the | |
# latest remote commit's hash. | |
# Revert file to commit hash or the remote's latest version | |
# of the file | |
git checkout HEAD -- filepath/file | |
git checkout <hash> -- filepath/file | |
# View the diff for staged files(files used with `git add`) | |
git diff --staged |
- Close the private server you're playing on first.
- Install the latest release of ffdec for your operating system.
- Download the portable launcher (the No Install Required button) for the private AQW of your choice (RedHero, RedAQ, etc.).
- Extract the portable launcher's files somewhere.
- Open ffdec.
- Ignore all the dialogs that will appear at first, then click
Open
at the top left of the ffdec window. - Find the location of where you extracted the files from
step 3
and choose theDesktop.swf
file. - Click the
+
icon on the left of thescripts
folder icon from the left side of the screen, and once it's expanded, click the+
icon from the left ofDevice
again, and finally clickAIRDesktop
from the expanded menu. - Click
Edit ActionScript
on the bottom middle of the screen and press OK. - Replace the code inside of the editor with this code:
This file contains hidden or 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
/* Rules for Stylus | |
* https://addons.mozilla.org/en-US/firefox/addon/styl-us/ | |
*/ | |
/* Hide the annoying (i) button on the top-right corner */ | |
.ytp-chrome-top-buttons { | |
display: none; | |
} | |
/* Display the controls and title only on hover */ |
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"
This file contains hidden or 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
# Use this inside your project directory | |
git config core.sshCommand "ssh -i ~/.ssh/userkey" |
Install android-tools if you haven't already:
pkg update ; pkg upgrade
pkg install android-tools
adb pair 127.0.0.1:port
This file contains hidden or 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
# 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 |
This file contains hidden or 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
# 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 |
NewerOlder