Skip to content

Instantly share code, notes, and snippets.

View ispringle's full-sized avatar

Ian S. Pringle ispringle

View GitHub Profile
@ispringle
ispringle / rss.py
Last active February 16, 2024 20:53
RSS gen w/ globbing
from datetime import datetime
from bs4 import BeautifulSoup
from pathlib import Path
system_header = "/Users/ismailefetop/projects/org-blog/ismailefe_org"
website_header= "https://ismailefe.org"
blog_posts = blog_posts = list(Path(system_header+"blog").rglob("*.html"))
update_time = str(datetime.now().strftime('%a, %d %b %Y %H:%M:%S'))+' +0300'
@ispringle
ispringle / vimium-emacs.md
Created January 5, 2024 16:34 — forked from dmgerman/vimium-emacs.md
Emacs-Style Key Bindings for Vimium

My Vimium Key Bindings (Emacs-Style)

This is a full set of key bindings (as of Vimium v1.45); covering all Vimium functionality. I have tried to map all Vimium functionality to comparable Emacs functionality (whenever possible). In cases where there is no equivalent, those commands are prefixed by <c-g> (indicating <c-g>oogle Chrome; and because <c-g> does not conflict with other Emacs shortcuts at all).

Commented Shortcuts: There are a few Emacs-style shortcuts that are simply not possible in Vimium. All of my shortcuts (including those which were not possible; i.e. where I used a decent alternative) have been commented below. This should help to clarify my rationale.

_Compatibility: All of these shortcuts were tested on Mac OS X (Mavericks). Please note that all of my shortcuts operate under the assumption that your Emacs Meta key is the Alt/Option key. This really was my only choice, because the key is already used in Chrome for shortcuts that c

@ispringle
ispringle / i3 config
Last active February 3, 2024 01:10
Arch setup
# ██████╗ █████╗ ██████╗ ██████╗ ██████╗ █████╗ █╗███████╗
# ██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝ ██╔══██╗╚╝██╔════╝
# ██████╔╝███████║██████╔╝██║ ██║███████╗ ╚█████╔╝ ███████╗
# ██╔═══╝ ██╔══██║██╔══██╗██║ ██║██╔═══██╗██╔══██╗ ╚════██║
# ██║ ██║ ██║██║ ██║██████╔╝╚██████╔╝╚█████╔╝ ███████║
# ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚════╝ ╚══════╝
#
# ██╗██████╗
# ██║╚════██╗
# ██║ █████╔╝
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# Greeting
h=`date +%H`
if [ $h -lt 12 ]; then
echo "Good morning, sexy!"
elif [ $h -lt 18 ]; then
echo "Good afternoon, sexy!"
/* See LICENSE file for copyright and license details. */
/*
* appearance
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
static char *font = "hack:pixelsize=16:antialias=true:autohint=true";
static int borderpx = 2;
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# Greeting
h=`date +%H`
if [ $h -lt 12 ]; then
echo "Good morning, sexy!"
elif [ $h -lt 18 ]; then
echo "Good afternoon, sexy!"
"Ian Pringle's (pard68) .vimrc files
syntax enable "enable syntax processing
set enc=utf-8
"Set line numbers to on, then toggle both relative and actual number line on and off with Ctrl-N,Ctrl-N and Alt-n,Alt-N
set number "show line numbers
set relativenumber "show relative line numbers
let mapleader = " "
function! Line_Toggle() "Toggle no numbers, absolute, relative, relative w/ absolute on cursor line
graph TD
Thought --> Inbox
Inbox --> Actionable
Actionable --> Trash
Actionable --> Short
Short --> Group
Group--> Todo
Actionable --> Long
Long --> Break-Down
Break-Down --> Todo
@ispringle
ispringle / surfingkeys_map.txt
Last active November 1, 2018 10:31
Surfkingkeys-Mapping
//Keymappings and unmappings
map('J', 'E');
map('K', 'R');
map('H', 'S');
map('L', 'D');
unmap('E');
unmap('R');
unmap('S');
unmap('D');
@ispringle
ispringle / markdown
Created July 31, 2018 16:18
keybase.md
### Keybase proof
I hereby claim:
* I am pard68 on github.
* I am pard68 (https://keybase.io/pard68) on keybase.
* I have a public key ASCRQKUD7wbke8SpQ6CdmSfHp3xGkATR7ZLVUMBsFMffRAo
To claim this, I am signing this object: