Skip to content

Instantly share code, notes, and snippets.

View ILikePizza555's full-sized avatar
💭
Building

Izzy Lancaster✨ ILikePizza555

💭
Building
View GitHub Profile
@ILikePizza555
ILikePizza555 / .tmux.conf
Created August 24, 2023 01:11
Tmux conf
set -g allow-rename off
set -g default-terminal tmux-256color
set -g escape-time 0
set -g history-limit 10000000
set -g mode-keys vi
set -g pane-border-indicators both
set -g repeat-time 0
set -g xterm-keys on
set -ga terminal-overrides ",xterm-kitty:Tc"

Keybase proof

I hereby claim:

  • I am ilikepizza555 on github.
  • I am ilikepizza555 (https://keybase.io/ilikepizza555) on keybase.
  • I have a public key ASCKr0ASJXAGMB_BNX9sKFlXI6SpQmcvSGaulUsWTYU5Lgo

To claim this, I am signing this object:

@ILikePizza555
ILikePizza555 / card_shuffle_solution.py
Last active April 19, 2017 01:46
Solution for the card shuffle project
import random
suits = ("diamonds", "hearts", "clubs", "spades")
ranks = tuple(range(1, 14))
cards = []
#Generate the cards
for s in suits:
for r in ranks:
@ILikePizza555
ILikePizza555 / bulk_rename.py
Created September 8, 2016 03:49
Simple python utility that renames files in bulk using regex
import os
import sys
import argparse
import re
parser = argparse.ArgumentParser(description="Rename some files.")
parser.add_argument("path", type=str, help="Path to work on.")
parser.add_argument("text", type=str, help="Text to replace with.")
parser.add_argument("-e", "--enumerate", action="store_true", dest="enumerate", help="Add a number at the end of a file name.")
parser.add_argument("-r", "--regex", dest="regex", help="Runs all filenames against provided regex, then changes matches (if any) to provided text.", default="[\s\S]*")