Skip to content

Instantly share code, notes, and snippets.

View valex91's full-sized avatar
🦊
Progressing

Valentino valex91

🦊
Progressing
View GitHub Profile
(function dw() {
const addresses = [];
document.querySelectorAll('li p a').forEach((e) => {
addresses.push(e.textContent);
});
const blob = new Blob([JSON.stringify(addresses.reduce((acum, possibleAddress) => {
@valex91
valex91 / increaseNodeSize.sh
Last active October 11, 2024 08:40
set into a persistent manner the ENV variable for incresing the heap of nodejs. Work with windows if you got any shell emulator and macOS
#!/bin/bash
if [ -n "$1" ];
then {
setx NODE_OPTIONS "--max-old-space-size=$1"
} || {
echo "export NODE_OPTIONS='--max-old-space-size=$1'" >> "$HOME/.bash_profile"
}
echo "successfully set the memory limit to $1MB";
else
echo "You need to specify a limit by passing an argument to the script ./increaseNodeSize.sh <amount>";
@valex91
valex91 / autoEA.sh
Created May 7, 2023 09:39
Update emudeck yuzu image to latest EA
#!/bin/bash
tagName=$(curl --silent "https://api.github.com/repos/pineappleEA/pineapple-src/releases/latest" |
grep '"tag_name":' |
sed -E 's/.*"([^"]+)".*/\1/')
curl -JLO "https://github.com/pineappleEA/pineapple-src/releases/download/${tagName}/Linux-Yuzu-${tagName}.AppImage"
mv -f "Linux-Yuzu-${tagName}.AppImage" $HOME/Applications/yuzu.AppImage