Skip to content

Instantly share code, notes, and snippets.

View mirsella's full-sized avatar
🦀

Lucas mirsella

🦀
  • 42
  • FR
  • 18:38 (UTC +02:00)
View GitHub Profile
@mirsella
mirsella / script.js
Last active November 24, 2023 09:27
42 auto reload slots
// ==UserScript==
// @name auto reload
// @namespace Violentmonkey Scripts
// @match https://projects.intra.42.fr/projects/*/slots
// @grant none
// @version 1.0
// @author mirsella
// @description 4/17/2023, 4:07:14 PM
// ==/UserScript==
@mirsella
mirsella / post-archinstall.zsh
Last active February 16, 2024 12:39
my arch post install script
#!/bin/bash
pkg='ntfs-3g pacman-contrib spectacle man man-pages youtube-music-bin yt-dlp inxi xdg-desktop-portal rclone unzip zip fuse2 tealdeer rclone keepassxc wl-clipboard ydotool kdeconnect yakuake mercury-browser-avx-bin inetutils timeshift timeshift-autosnap ttf-jetbrains-mono-nerd papirus-icon-theme yin-yang'
pkg_dev='cmake python-pip nodejs ts-node npm pnpm yarn luarocks php composer julia github-cli jq nodejs-neovim python-pynvim rust rust-src rust-docs cargo-watch cargo-generate vimv kwalletcli-bin wezterm-git'
pkg_dotfiles='zsh neovim fzf oh-my-posh trash-d bat fd ripgrep lsd chezmoi dust zoxide'
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 android-udev'
# install paru
if ! pacman -Q paru &> /dev/null; then
sudo pacman -Syu --noconfirm git
git clone https://aur.archlinux.org/paru.git || exit
@mirsella
mirsella / turboselfbotblacklist
Last active May 25, 2022 12:02
turboself ignore range
27/05/22+0
ex ()
{
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xf $1 ;;