Skip to content

Instantly share code, notes, and snippets.

View jskherman's full-sized avatar

Je Sian Keith Herman jskherman

View GitHub Profile

Crippling Facebook

Facebook works with advertisers to target you. These instructions are one of the many ways to begin crippling that relationship. When AI targeting is crippled, your psychosecurity improves :)

  1. On your desktop machine, goto https://accountscenter.facebook.com/ads/audience_based_advertising
  2. Maximize the browser window
  3. Press F12 and click on the Console tab
  4. Select the code below, copy it, paste it upon the Console line (The area next to the > character in the Console window), and press enter:
@ntjess
ntjess / gantt.typ
Last active May 2, 2024 00:00
Colorful, Date-Aligned Gantt Chart in Typst
#let _records-to-dict(records) = {
let formatted = (:)
for r in records {
for (k, v) in r {
let cur = formatted.at(k, default: ())
cur.push(v)
formatted.insert(k, cur)
}
}
formatted
@jskherman
jskherman / logo.css
Created April 20, 2024 13:32
vscode vtuber logo
.editor-group-watermark > .letterpress {
background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode-Thick.png") !important;
opacity: 0.75;
}
@kylemcdonald
kylemcdonald / function-calling.ipynb
Created June 14, 2023 01:10
Example of OpenAI function calling API to extract data from LAPD newsroom articles.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jskherman
jskherman / admonition.lua
Last active May 19, 2024 04:26
A Pandoc Lua filter to convert Callout Blocks to Hugo admonitions (shortcode).
-- Pandoc Lua-filter for Obsidian Callouts
-- Original Source: https://forum.obsidian.md/t/rendering-callouts-similarly-in-pandoc/40020/
-- Notes:
-- Original snippet modified to output Hugo {{< admonition >}} shortcodes with collapse.
-- Make sure to have a blank line before and after the `> [!note]` line of the callout block.
-- The filter works recursively so if you want callouts within callouts, make sure to leave a blank line
-- before and after the `> [!note] Your title here` line of each callout.
-- Usage:
@jskherman
jskherman / get_gh_commits.py
Last active August 5, 2023 12:07
A Python script for exporting a GitHub user's daily commit counts to a CSV file
def get_gh_commit_data(github_username: str) -> list:
"""
Get GitHub commit data for a given username by scraping the GitHub
contribution calendar heatmap for each year of activity.
This function returns a list of dictionaries with the following keys:
- date: The date of the commit
- commits: The number of commits on that date
Parameters
@GitMurf
GitMurf / obsidian.live-preview.css.block-ref-inline.css
Last active July 2, 2024 15:30
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;
}
/*
This file has been truncated, but you can view the full file.
https://libraryofbabel.info/book.cgi?p30tz828zdokepr66yhhsa65w4beqci5nd43zhm4snxwr7srjgl0ernbr38p04hqsbi9r7cul5339qk2ar6o9f6dc35erofggub7vm25c85c0ad0ceb8vyqn6awvyks6of10mzd754nep7e28s4glunyox41pwwlkra9xez5hkifa4muu8osv6gr4x9ji1q0ae2pw5b53vxzbgqtwskhc53tee76uhvsdr6qysldm2tmkvpx6zhrvhroredmvvufjqsq603imufo03yz8k9kwbq2r2av6gwjv0sy05wpvbn8sac2rtl2mzr1cw8tsuzqq4qqtmwcd3mc9amaud64k1m0tynxxruxu7tvnlk9jcu6axwkhea90so0z1rau8mypfbvuyfr88yt5iz3t5vo148eg154vhjdf1or1o4bjaqnq1hv3m541os5o9tc04ehxjplcw3b1h3qb1p5sawttrqbjx4rjox0vxcg37exq5xsxu6ockmffh7lprp5s38gz6t8y7cwtcg0frilqgo7u7utsgs6cwiyehk4rzqkmpheqtmw1coqhcvmgv7l2kyex3ow5uvi611e2rui2skrhpc594timzlhov5t0g8c4a5onf6vyssqwl5b1hlgtn82navy9famxhuls4x6bzz36pcz5whri04qqzobxwvw68aqg1zkaf1ni7vqj3jap6vpff0cw8yaoufklnpm1uy5p8oyddx59t48e7171oh79wjrllot7yysa0mckoz9rmrwfjhtn76qgu00o80x9w6u33a4zt6dtqtbjjg1l8zrik38b2kx8ali05fzkzee1z2aujte6alofw3c1et5qdql34lk2qf3nxesw21ig2047fzqu0wonx2bmqgqthqi2u66gq8vrsyh8um8h0bqadkgeczpholj87mvpfaq4n1aiyd6hvr87xqn8pdfodrb51y8rwuu182mdxwyrp2q5pxstb99r4i