Skip to content

Instantly share code, notes, and snippets.

@alyssadev
alyssadev / tdsdec.sh
Created April 12, 2021 07:22
Linux .3ds decrypt
#!/bin/bash -x
# https://gbatemp.net/download/batch-cia-3ds-decryptor.35098/
# adapted from the .bat file in this zip
# requires wine
# intended for e.g Homebrew.Game.Title/asdf.rar, produces Homebrew.Game.Title.3ds as decrypted output
_PWD=$(pwd)
DECRYPTPATH=/root
cd "$1"
unrar -o+ x $(find . -name *.rar | head -n1)
echo | wine $DECRYPTPATH/decrypt.exe *.3ds
@elundmark
elundmark / mms.py
Last active February 13, 2020 04:33
Magic Media Sorter - Sort your media correctly! (Tested in: Python v3.8+ on Linux)
#!/usr/bin/env python3.8
"""Magic Media Sorter - Sort your media correctly!"""
import argparse
import operator
import sys
import re
def main(imported=None, importedList=None):
"""main function"""
@plembo
plembo / CalibreServerOnLinux.md
Last active May 21, 2024 14:50
Calibre Server on Linux

Calibre Server on Linux

Introduction

Calibre is a powerful cross-platform, open source, ebook manager and editing platform. Its calibre-server component can be used to publish an e-book library on a local network. While you can launch calibre-server as a desktop application, it can also be run as a daemon on a headless Linux server.

This tutorial on setting up calibre-server using Ubuntu 14.04 is very good, but dated.

@scuba323
scuba323 / solozrized.txt
Created April 8, 2018 06:32
Solarized WeeChat Setup
# /secure passphrase A-PASSWORD
# ---- Defaults ----
/set irc.server_default.username "tracphil"
/set irc.server_default.nicks "tracphil, tracphil_"
/set irc.server_default.sasl_mechanism dh-blowfish
# ---- IRC Servers ----
# Nick and auth settings for freenode
/server add freenode chat.freenode.net
@diffficult
diffficult / installing_virt_manager.md
Last active May 21, 2024 18:42
Easy instructions to get virt-manager qemuv/kvm running on Arch

Easy instructions to get QEMU/KVM and virt-manager up and running on Arch

  1. Make sure your cpu support kvm with below command:

     grep -E "(vmx|svm)" --color=always /proc/cpuinfo
    
  2. Make sure BIOS have enable “Virtualization Technology”.

  3. User access to /dev/kvm so add your account into kvm(78) group:

@iacchus
iacchus / .bashrc
Created July 4, 2017 19:41
make tmux behave well in ssh (append to .bashrc)
if [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" != "" ]; then
tmux attach-session -t "$USER" || tmux new-session -s "$USER"
fi
@iacchus
iacchus / Show_Images_in_Terminal_Emulator.md
Last active October 6, 2023 04:16
Show Images in terminal emulator
anonymous
anonymous / IRC client in pure bash 4
Created March 28, 2016 16:57
IRC client written in pure bash using only bash builtin commands and no other binaries.
#!/bin/bash
#no PATH, no way to accidently run any programs
PATH=''
#useful variables
term_height=0
term_width=0
term_scroll_height=0
status_line_row=0
@MatthewSteeples
MatthewSteeples / mousemove.ps1
Created February 26, 2015 19:09
Powershell Script to keep the mouse moving
Add-Type -AssemblyName System.Windows.Forms
while ($true)
{
$Pos = [System.Windows.Forms.Cursor]::Position
$x = ($pos.X % 500) + 1
$y = ($pos.Y % 500) + 1
[System.Windows.Forms.Cursor]::Position = New-Object System.Drawing.Point($x, $y)
Start-Sleep -Seconds 10
}
@pascalpoitras
pascalpoitras / config.md
Last active May 11, 2024 04:13
My WeeChat configuration

WeeChat Screenshot

Mouse


enable