Skip to content

Instantly share code, notes, and snippets.

@krank-art
krank-art / readme.md
Last active March 18, 2023 17:16
Scrape an arbitrary Twitter timeline for images and videos with this simple client-side crawler.

Save Twitter images and videos

  • These scripts run directly on your client, so there is no need to get a Twitter API token.
  • The crawler is pretty simple and slow, so it will take about an hour for 1000 images to be downloaded. (A single Tweet can contain multiple images.)
  • Please read the description of each script carefully if you run into any trouble.

Usage

  1. Run scrape-twitter.js in the browser first to download images, GIFs and a json file of your crawled Tweets.
@C0nw0nk
C0nw0nk / youtube-dl.cmd
Last active March 11, 2023 01:04
youtube-dl for windows to download into MP3 format music videos audio from youtube HQ HD Audio no need to download anything i made the script do it all just give it a url
@echo off & setLocal EnableDelayedExpansion
:: Copyright Conor McKnight
:: https://github.com/C0nw0nk/
:: https://www.facebook.com/C0nw0nk
:: Automatically sets up youtube-dl.exe ffmpeg.exe and aria2c.exe
:: all you need is the batch script it will download the latest versions from their github pages
:: simple fast efficient easy to move and manage
:: Script Settings
echo Input URL or Playlist URL:
@appel
appel / search-engines-import-export-chrome-edge-brave.md
Last active October 29, 2024 01:00
Export and import search engines from Chrome/Edge to Brave (bonus: Firefox to Firefox)

Export and import search engines from Chrome/Edge/Brave to Chrome/Edge/Brave

Bonus: Firefox to Firefox, see instructions at the bottom

As discussed here: brave/brave-browser#695

Thanks to the excellent answer by @Redsandro I was able to do this on Windows, which I'll document below because my future self will inevitably find this via Google a few years from now. Since it's using SQLite it should not be too hard to adapt for Macos and Linux.

Edit: this method still worked as of 9/3/2023. :)

@mirsella
mirsella / post-archinstall.zsh
Last active June 26, 2025 18:04
my arch post install script
#!/bin/bash
export pkg='ntfs-3g pacman-contrib spectacle man man-pages youtube-music-bin yt-dlp inxi rclone unzip zip fuse2 tealdeer keepassxc wl-clipboard kdeconnect yakuake zen-browser-bin inetutils timeshift timeshift-autosnap ttf-jetbrains-mono-nerd fwupd fwupd-efi sbctl aspell aspell-en aspell-fr hunspell hunspell-en_US hunspell-fr wine bottles viu chromium imagemagick kwalletmanager'
export pkg_dev='cmake python-pip nodejs npm pnpm github-cli jujutsu jq nodejs-neovim python-pynvim vimv kwalletcli-bin chaotic-aur/wezterm-git lazygit docker docker-compose mergiraf wild mold mergiraf'
export pkg_dotfiles='zsh nushell carapace-bin fish neovim fzf starship oh-my-posh trash-d bat fd ripgrep lsd chezmoi dust zoxide lazygit darkman chafa ueberzugpp tectonic fish'
export pkg_android='android-google-apis-playstore-x86-system-image android-apktool android-emulator android-platform android-sdk android-sdk-build-tools android-sdk-cmake android-sdk-cmdline-tools-latest android-sdk-platform-tools android-tools androi
@kenielf
kenielf / arch.md
Last active April 4, 2023 23:42
Full Arch Linux Installation Guide

1: Base Installation

1.1: Preparing

Connect to a network, load keymaps and check for efivars. Firstly, connect to a network using iwctl with these commands:

  • iwctl: Enter the iwctl utility;
  • device list: List the possible devices to connect with;
  • station DEVICE scan: Scan networks on DEVICE;
  • station DEVICE get-networks: List all networks on DEVICE;
  • station DEVICE connect SSID: Connect to SSID with DEVICE; Note: Don't forget to test if you're connected with ping 'https://archlinux.org/'
@jimboy-701
jimboy-701 / archlinuxzbm.md
Last active December 7, 2024 10:31
Arch Linux with ZFS root, zfs-dkms, ZFSBootMenu, and Secure Boot enabled

Install Arch Linux with ZFS root filesystem, zfs-dkms, ZFSBootMenu, Pacman Auto-snapshots, Secure Boot enabled

Configure system BIOS

Disable Secure Boot. ZFS modules can not be loaded if Secure Boot is enabled.

ZFS automated install script

Before moving on I need to point out that there exists a script that can automate the configuration and install of a ZFS root system. However as convenient as it sounds the script is limited in flexibility and scope. These limitation cannot be overcome unless one has the time and compacity to edit the script to their liking. If you want to install a ZFS root system as quickly as possible and don't care about any particulars than take a good look at this github page.

SW-DLT

SW-DLT ("Shortcuts Wrapper for -DL Tools") is an iOS shortcut that allows you to easily use, install and manage the popular and open source utilities yt-dlp and gallery-dl.

Compatibility:

  • iOS 16: Supported

  • iOS 15: Supported

@drandarov-io
drandarov-io / $PROFILE.ps1
Last active May 10, 2025 22:38
Personal PowerShell $PROFILE (drandarov-io)
# https://gist.github.com/drandarov-io/ec6a51a1d4e256c322f496cb47ab704a
#########################
# Modules
#########################
# Delayed loading of some modules and completions for startup speed
Register-EngineEvent -SourceIdentifier 'PowerShell.OnIdle' -MaxTriggerCount 1 -Action {
Import-Module Terminal-Icons
Import-Module npm-completion
@wfurney13
wfurney13 / Microsoft.Powershell_profile.ps1
Last active January 18, 2024 21:30
Powershell profile
oh-my-posh init pwsh --config "Z:\themes\them1.json" | Invoke-Expression
#choco install terminal-icons.powershell
Import-Module -Name Terminal-Icons
Remove-Alias -Force gc
Remove-Alias -Force gp
function b { cd ..}