Skip to content

Instantly share code, notes, and snippets.

View jskherman's full-sized avatar

Je Sian Keith Herman jskherman

View GitHub Profile
@jskherman
jskherman / get_gh_commits.py
Last active April 4, 2025 00:50
A Python script for exporting a GitHub user's daily commit counts to a CSV file
import requests
import datetime
import re
import pandas as pd
from bs4 import BeautifulSoup
import time
from typing import List, Dict, Optional
def get_available_years(github_username: str, headers: dict) -> List[int]:
"""
@GitMurf
GitMurf / obsidian.live-preview.css.block-ref-inline.css
Last active October 27, 2025 08:27
CSS for inline block references that works for both NEW CM6 Live Preview and also Preview Mode for both CM5 (Legacy) and CM6 (New)
:root {
/* #7159de (similar to Obsidian purple) */
--block-ref-line-color: grey;
--block-ref-line-type: solid;
--block-ref-line-size: 2px;
/* Set to "inherit" for no bg color */
--block-ref-hover-bg-color: #d4d0d026;
}
/*
@Makeshift
Makeshift / tutorial.md
Last active June 23, 2026 16:27
Tutorial for automatically syncing an Obsidian vault with Git on an Android device

How to sync Obsidian with Git on Android

Limitations

  • If Termux is closed in the background by Android, the cron service will stop updating your repository and you must open Termux again. Refer to instructions for your device model to disable the killing of certain background applications.
  • This may negatively affect your devices battery life. I'm not entirely sure yet.

Setup

This file has been truncated, but you can view the full file.
https://libraryofbabel.info/book.cgi?p30tz828zdokepr66yhhsa65w4beqci5nd43zhm4snxwr7srjgl0ernbr38p04hqsbi9r7cul5339qk2ar6o9f6dc35erofggub7vm25c85c0ad0ceb8vyqn6awvyks6of10mzd754nep7e28s4glunyox41pwwlkra9xez5hkifa4muu8osv6gr4x9ji1q0ae2pw5b53vxzbgqtwskhc53tee76uhvsdr6qysldm2tmkvpx6zhrvhroredmvvufjqsq603imufo03yz8k9kwbq2r2av6gwjv0sy05wpvbn8sac2rtl2mzr1cw8tsuzqq4qqtmwcd3mc9amaud64k1m0tynxxruxu7tvnlk9jcu6axwkhea90so0z1rau8mypfbvuyfr88yt5iz3t5vo148eg154vhjdf1or1o4bjaqnq1hv3m541os5o9tc04ehxjplcw3b1h3qb1p5sawttrqbjx4rjox0vxcg37exq5xsxu6ockmffh7lprp5s38gz6t8y7cwtcg0frilqgo7u7utsgs6cwiyehk4rzqkmpheqtmw1coqhcvmgv7l2kyex3ow5uvi611e2rui2skrhpc594timzlhov5t0g8c4a5onf6vyssqwl5b1hlgtn82navy9famxhuls4x6bzz36pcz5whri04qqzobxwvw68aqg1zkaf1ni7vqj3jap6vpff0cw8yaoufklnpm1uy5p8oyddx59t48e7171oh79wjrllot7yysa0mckoz9rmrwfjhtn76qgu00o80x9w6u33a4zt6dtqtbjjg1l8zrik38b2kx8ali05fzkzee1z2aujte6alofw3c1et5qdql34lk2qf3nxesw21ig2047fzqu0wonx2bmqgqthqi2u66gq8vrsyh8um8h0bqadkgeczpholj87mvpfaq4n1aiyd6hvr87xqn8pdfodrb51y8rwuu182mdxwyrp2q5pxstb99r4i
@senderle
senderle / hand-modify-pdf.md
Created September 23, 2020 15:03
So you want to modify the text of a PDF by hand

So you want to modify the text of a PDF by hand...

If you, like me, resent every dollar spent on commercial PDF tools, you might want to know how to change the text content of a PDF without having to pay for Adobe Acrobat or another PDF tool. I didn't see an obvious open-source tool that lets you dig into PDF internals, but I did discover a few useful facts about how PDFs are structured that I think may prove useful to others (or myself) in the future. They are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.

To quickly and easily remove all unwanted comments when using Sublime text, perform a search and replace (CMD, ALT & D) and enter the following. Make sure that regex search is enabled by clicking the small icon in the bottom left that looks like an astrix.

For example, to remove all HTML comments:

(?s)<!--.*?-->

search and replace with blank

Or to remove all CSS comments:

@joncardasis
joncardasis / Storing-Images-On-Github.md
Last active August 8, 2026 00:54
Storing Images and Demos in your Repo

Storing Images and Demos in your Repo

In this quick walkthough you'll learn how to create a separate branch in your repo to house your screenshots and demo gifs for use in your master's readme.

How to

1. Clone a fresh copy of your repo

In order to prevent any loss of work it is best to clone the repo in a separate location to complete this task.

2. Create a new branch

Create a new branch in your repo by using git checkout --orphan assets

@TravelingTechGuy
TravelingTechGuy / get_history.sh
Created May 9, 2016 14:10
Get your Chrome history as a CSV file
#!/bin/bash
# Locate the history file in your profile, and copy it to the same folder as this script.
# On Mac: ~/Library/Application\ Support/Google/Chrome/Default/History
# On Windows: C:\Users\YOUR USER NAME\AppData\Local\Google\Chrome\User Data\Default\History
sqlite3 History <<!
.headers on
.mode csv
.output out.csv
@alirobe
alirobe / reclaimWindows10.ps1
Last active August 2, 2026 10:46
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security