Skip to content

Instantly share code, notes, and snippets.

View totallynotdavid's full-sized avatar
πŸ‘·

David totallynotdavid

πŸ‘·
View GitHub Profile
# ===============================
# User Configuration
# ===============================
# Path substrings to ignore (e.g. "node_modules")
$ignorePaths = @("node_modules", ".next", "components\ui\", "utils")
# Specific file names to ignore (e.g. "next-env.d.ts")
$ignoreFiles = @("next-env.d.ts")
# Allowed file extensions (for TypeScript, we use "ts")
$allowedExtensions = @("ts", "tsx")
@totallynotdavid
totallynotdavid / gist:77348328530b76340c642ad97ca9dfbc
Created October 9, 2024 04:35
TikTok downloader (works as of 10/2024)
import re
import requests
import sys
from urllib.parse import unquote
import json
def downloader(url):
# Define the TikTok URL pattern
TIKTOK_URL_REGEX = re.compile(
r'https?://(?:www\.)?tiktok\.com/(?:@[\w\.-]+/video/(\d+))'
sudo sed -i 's|self.language =.*|self.language = "ALL"|g' /usr/lib/python3/dist-packages/torbrowser_launcher/common.py
mkdir -p ~/.local/share/torbrowser/tbb/$(uname -m)
cd ~/.local/share/torbrowser/tbb/$(uname -m)
ln -s tor-browser tor-browser_ALL
./start-tor-browser.desktop --verbose
@totallynotdavid
totallynotdavid / PDF look scanned index.sh
Created March 20, 2023 17:35
./index.sh original.pdf scanned.pdf
ROTATION=$(shuf -n 1 -e '-' '')$(shuf -n 1 -e $(seq 0.05 .5))
convert -density 150 $1 \
-linear-stretch '1.5%x2%' \
-rotate ${ROTATION} \
-attenuate '0.01' \
+noise Multiplicative \
-colorspace 'gray' $2
// https://k0nze.dev/posts/install-pyenv-venv-vscode/
0. Desintala Python, deja que pyenv luego se encargue
1. Clona el repositorio
git clone https://github.com/pyenv-win/pyenv-win/
mkdir $HOME/.pyenv
2. Copiar la carpeta .pyenv y el archivo .version del repositorio a $HOME/.pyenv.
3. AΓ±adir a PATH (revisa que estΓ©n aΓ±adidos o no funciona):
@totallynotdavid
totallynotdavid / Add folder to Path on Linux
Last active February 28, 2023 13:27
Add folder to Path on Linux
echo "export PATH=$(pwd):\${PATH}" >> ~/.bashrc
# Default
ubuntu config --default-user <username>
# Ubuntu Preview
ubuntupreview config --default-user <username>
@totallynotdavid
totallynotdavid / Chocolatey for non-Admin
Last active February 28, 2023 13:27
Install Chocolatey on C:\chocolatey because admin rights are annoying when you use multiple accounts
setx ChocolateyInstall C:\chocolatey /M && SET "ChocolateyInstall=C:\chocolatey" && "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
TypeScript +6.8k/ -6.8k β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 60.4%
Markdown +2.0k/ -746 β–ˆβ–ˆβ–ˆβ–ˆβ–‹β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 22.4%
Python +1.7k/ -1.3k β–ˆβ–ˆβ–Šβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 13.2%
JSON +500/ -22 β–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1.6%
YAML +333/ -23 ▏░░░░░░░░░░░░░░░░░░░░ 1.0%
TOML +307/ -67 ▏░░░░░░░░░░░░░░░░░░░░ 0.9%
JavaScript +132/ -4 β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0.4%
CSS +6/ -0 β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0.0%
17 (Hoo Hoo) Dept
EVERYTHING The Black Skirts
Friday I'm In Love The Cure
Lonely Town Vulfpeck & Theo K
Kawaikute Gomen Ado
Shanghai Romance Orange Caramel
Pretty Savage BLACKPINK
Danza Kuduro Don Omar & Lucenzo
Nobody - from Kaiju No. 8 OneRepublic
Mood (feat. iann dior) 24kGoldn & iann d