Skip to content

Instantly share code, notes, and snippets.

@kaubu
kaubu / extract_dir.sh
Created September 27, 2023 17:16
Extract all zip files (made by 7zip) inside of a directory, in parallel
#!/bin/sh
ls *.zip | parallel -j+0 --eta '7z x {} >/dev/null'
@kaubu
kaubu / clean_cache.sh
Last active June 22, 2024 22:00
Cleans cache to get more story space on Arch-based Linux distributions
#!/bin/sh
# Remove old Haskell versions
ghcup gc --cache
# Clean pip cache
pip cache purge
# Remove packages cache
sudo pacman -Scc
yay -Scc
@attusan
attusan / skyrim-and-vortex-mod-manager-on-linux.md
Last active November 14, 2023 12:03
Manage Skyrim SE/AE mods via Vortex Mod Manager in Linux

Manage Skyrim SE mods via Vortex Mod Manager in Linux

The below walkthrough is for those who are running Skyrim SE via Steam Proton, and want to be able to manage mods via Vortex Mod Manager in Linux. You should be able to apply the same walkthrough to Oldrim or Fallout 4 as well. Note that with this guide you'll get an older version of Vortex (1.1.15), but IMHO it is still a better choice than Mod Manager 2. Also, you'll start Skyrim through Steam as usual, not through Vortex.

  1. If you have previously added mods through the Skyrim game menu, I recommend removing them all since all mods will be managed through Vortex. Mods => Load Order => Delete All. Also, consider taking a backup up your (vanilla) Skyrim game directory.
# archive vanilla game (update path to suit your needs)
cd /mnt/gameData/archive
cp -a /mnt/gameData/SteamLibrary/steamapps/common/Skyrim\ Special\ Edition/. skyrim-se
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active June 25, 2024 15:38
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent
@yunpengn
yunpengn / README.md
Last active May 20, 2024 06:57
A step-by-step guide to install PostgreSQL on Ubuntu without sudo privilege

Install PostgreSQL on Ubuntu without sudo

Being the most advanced open-source relational database, many of us need to install PostgreSQL for some purposes. However, sometimes you may not have sudo privilege on an Ubuntu server. Then, how should you install PostgreSQL in this case?

Compile from source!

Next, we will show a step-by-step guide on how to install PostgreSQL on Ubuntu by compiling it from source.

PostgreSQL Compilation & Installation

@bodzioslav
bodzioslav / kwin.sh
Last active July 30, 2022 21:35
systemd-sleep kwin hook
#!/bin/bash
#
# Restart kwin on resume after suspend
case "${1}" in
post)
KWIN_PID=$(pidof kwin)
KWIN_X11_PID=$(pidof kwin_x11)
@brenorb
brenorb / tweet_dumper.py
Last active March 11, 2023 18:17 — forked from yanofsky/LICENSE
A Python 3.+ script to download all of a user's tweets into a csv.
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
@alifa98
alifa98 / .gitignore
Created June 4, 2019 17:41
gitignore file for java project [intelliJ]
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
@fijimunkii
fijimunkii / ua.json
Last active November 24, 2023 17:53
Top 10 Most Common User Agents
[
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15",
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KH
@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks