Skip to content

Instantly share code, notes, and snippets.

View bobbywlindsey's full-sized avatar

Bobby Lindsey bobbywlindsey

View GitHub Profile
{
"defaultProfile": "{79285a8e-036c-446f-8a9c-78994e34bf85}",
"initialRows": 30,
"initialCols": 120,
"alwaysShowTabs": true,
"showTerminalTitleInTitlebar": true,
"showTabsInTitlebar": true,
"requestedTheme": "dark",
"profiles": [
{
@JonnyCBB
JonnyCBB / matplotlibrc
Created September 24, 2018 08:54
The Gadfly theme matplotlibrc style sheet
#### MATPLOTLIBRC FORMAT
## This is a sample matplotlib configuration file - you can find a copy
## of it on your system in
## site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it
## there, please note that it will be overwritten in your next install.
## If you want to keep a permanent local copy that will not be
## overwritten, place it in the following location:
## unix/linux:
## $HOME/.config/matplotlib/matplotlibrc or
@colmmacc
colmmacc / shardcalc.py
Last active August 7, 2023 11:05
Calculate the blast radius of a shuffle shard
import sys
# choose() is the same as computing the number of combinations. Normally this is
# equal to:
#
# factorial(N) / (factorial(m) * factorial(N - m))
#
# but this is very slow to run and requires a deep stack (without tail
# recursion).
#
%s/}\ \\label/}\\label/ge
%s/\ \\ref/\~\\ref/ge
%s/\ "/\ ``/ge
%s/"\ /''\ /ge
%s/",/'',/ge
%s/"\./''\./ge
%s/")/'')/ge
%s/i\.e\.\ /i\.e\.\\\ /ge
function! MyFunction()
%s/ch/cx/ge
endfunction
" You can call the function as:
" :call MyFunction()
command! MyCommand call MyFunction()
" You can call the command as:
" :MyCommand
@NickSeagull
NickSeagull / ubuntu-bloat-removal.sh
Last active May 11, 2024 17:20
Updated Jan 22nd, 2024 - Simple command to remove all "bloatware" from ubuntu
sudo apt-get remove \
aisleriot \
brltty \
duplicity \
empathy \
empathy-common \
example-content \
gnome-accessibility-themes \
gnome-contacts \
gnome-mahjongg \
@dongyuwei
dongyuwei / get_title_and_url.applescript
Last active April 30, 2024 05:02 — forked from vitorgalvao/Get Title and URL.applescript
Applescript to get frontmost tab’s url and title of various browsers.
# Keep in mind that when asking for a `return` after another, only the first one will be output.
# This example is meant as a simple starting point, to show how to get the information in the simplest available way.
# Google Chrome
tell application "Google Chrome" to return URL of active tab of front window
tell application "Google Chrome" to return title of active tab of front window
# Google Chrome Canary
tell application "Google Chrome Canary" to return URL of active tab of front window
tell application "Google Chrome Canary" to return title of active tab of front window
# Chromium
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 23, 2024 23:26
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: