Skip to content

Instantly share code, notes, and snippets.

View TomBener's full-sized avatar
👨‍💻

TomBen TomBener

👨‍💻
View GitHub Profile
@TomBener
TomBener / ai.list
Last active February 23, 2024 03:56
# AI rule for Surge, modified from https://github.com/sve1r/Rules-For-Quantumult-X/blob/develop/Rules/Services/OpenAI.list
# OpenAI Challenge & SSO
DOMAIN-SUFFIX,auth0.com
DOMAIN-SUFFIX,challenges.cloudflare.com
# OpenAI Related
DOMAIN-SUFFIX,openai.com
DOMAIN-SUFFIX,sentry.io
DOMAIN-SUFFIX,intercom.io
@TomBener
TomBener / 01.bash_shortcuts_v2.md
Created February 8, 2023 07:20 — forked from tuxfight3r/01.bash_shortcuts_v2.md
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@TomBener
TomBener / wechat-moments-analysis.r
Last active January 15, 2023 09:36
WeChat Moments Analysis with R
# WeChat Moments Analysis with R
# `install.packages("package-name")` # nolint
# Using Python in R Markdown
# library(reticulate)
# use_python("~/.pyenv/shims/python")
# Import packages
library(tufte)
library(dplyr)
@TomBener
TomBener / roam2pandoc
Last active June 27, 2021 05:25
Change Markdown exported from Roam Research to general Markdown and convert to DOCX via Pandoc
# The order of finding & replacing cannot be changed arbitrarily!
# I define the contextual citation as `A conclusion was obtained by @stern2020`,
# And the bare citation as `The mining industry has negative impacts on the environment, such as air pollution [@wu2011] and water contamination [dogaru2009]`.
# Bear in mind that exported Flat Markdown:
# 1. Use the hashtag instead of the alias page references
# 2. The alt text of block references is the citekey
# 3. With the punctuation after the contextual citation, add additional {} in Roam
# 4. Without the punctuation after the bare citaion, add additional <> in Roam
@TomBener
TomBener / bibtex.png
Created March 1, 2020 00:56 — forked from max-mapper/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png