Skip to content

Instantly share code, notes, and snippets.

View BlueSlimee's full-sized avatar

Blue Slime BlueSlimee

View GitHub Profile
require('@lastgram/core')
const marked = require('marked')
const request = (res, method, data) => {
const payload = JSON.stringify({ method, ...data })
res.setHeader('Content-Length', Buffer.byteLength(payload))
res.setHeader('Content-Type', 'application/json')
res.send(payload)
}
@BlueSlimee
BlueSlimee / setup.sh
Created July 16, 2021 17:41
RedSea (OG Tidal-DL) for Android
set -e
echo "Baixando pacotes necessários"
pkg i libflac python ffmpeg git -y
echo "Clique em permitir."
termux-setup-storage
cd storage/shared
git clone "https://github.com/Dniel97/RedSea"
cd RedSea
echo "-------------------------------"
@BlueSlimee
BlueSlimee / 20e241.patch
Last active May 22, 2021 01:08
Prelim reg patches for macOS 11.3/arm64 (needs testing)
diff --git a/xnu-qemu-arm64-5.1.0.diff b/xnu-qemu-arm64-5.1.0.diff
index f22ab5c..9635a8d 100644
--- a/xnu-qemu-arm64-5.1.0.diff
+++ b/xnu-qemu-arm64-5.1.0.diff
@@ -927,10 +927,24 @@ index 0000000..6cda40a
+ }
+};
+
++struct darwin_kernel_patch darwin_patches_20E241 = {
++ .darwin_str =
@BlueSlimee
BlueSlimee / comp.sh
Last active May 21, 2021 22:50
Download & build xar and lzfse
#!/bin/sh
echo "Downloading, patching and building xar"
git clone https://github.com/mackyle/xar.git
cd xar/xar
sed -i 's/OpenSSL_add_all_ciphers/OPENSSL_init_crypto/g' configure.ac
wget https://gist.github.com/BlueSlimee/262287afde01bd787c4b67cbedb2dfdf/raw/366811e3abcc929f04621b1f8db76234653cd8e9/ext2.patch
git apply --ignore-whitespace ext2.patch
bash autogen.sh
make
cd ../..
SUPERUSER=sudo
function welcome_screen() {
echo "Chino Kafuu first run setup"
echo "Stream Arular by M.I.A."
echo "PRODUCTION SETUP"
echo "---------------------------"
}
function install_debian_based_deps() {
SUPERUSER=sudo
function welcome_screen() {
echo "Chino Kafuu first run setup"
echo "Stream Arular by M.I.A."
echo "---------------------------"
}
function install_debian_based_deps() {
$SUPERUSER apt-get update
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificate curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
docker run -it --rm --name swarmpit-installer --volume /var/run/docker.sock:/var/run/docker.sock swarmpit/install:1.9
@BlueSlimee
BlueSlimee / README.md
Last active January 4, 2023 01:42
não use ts

TypeScript vale a pena?

TypeScript extends JavaScript by adding types.

By understanding JavaScript, TypeScript saves you time catching errors and providing fixes before you run code.

Parece tentador, não? Só que se você já usou TypeScript, você sabe que não é bem assim. O TypeScript pode até "ajudar" em projetos grandes, mas no final, só atrapalha. Vou explicar o por quê.

@BlueSlimee
BlueSlimee / glxinfo.txt
Created September 15, 2020 19:26
glxinfo output
name of display: :1
display: :1 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_no_error,
GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness,
GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,