Skip to content

Instantly share code, notes, and snippets.

View andrewmcodes's full-sized avatar
🎙️
Recording Remote Ruby

Andrew Mason andrewmcodes

🎙️
Recording Remote Ruby
View GitHub Profile
# you must also upload the public key as signing key to https://github.com/settings/keys
git config --global user.signingkey '~/.ssh/id_rsa'
git config --global commit.gpgsign true
git config --global gpg.format ssh
# (optional) this file enables `git log --show-signature` and contains email addresses associated with public keys
git config --global gpg.ssh.allowedsignersfile '~/.ssh/git-signers'
@dannberg
dannberg / obsidian-people-template.txt
Last active October 1, 2025 23:46
Dann Berg's People Template for Obsidian. Uses Dataview & Templater plugins. Should be saved as a Markdown file in Obsidian. See full tutorial for setup instructions: https://dannb.org/blog/2022/obsidian-people-note-template/
---
company:
location:
title:
email:
website:
aliases:
---
tags:: [[👥 People MOC]]
function c {
git add --all
git commit -m $1
}
function p {
git add --all
git commit -m $1
@julianrubisch
julianrubisch / script.rb
Last active February 18, 2022 12:03
ActiveStorage DirectUpload via Faraday
require "faraday"
require "faraday/multipart"
token = ARGV.shift
absolute_path = File.expand_path(ARGV.shift)
# TODO how could we require "active_storage/blob" without eager loading the whole app
blob = ActiveStorage::Blob.build_after_unfurling(io: File.open(absolute_path), filename: File.basename(absolute_path))
@thomasvs
thomasvs / MoveAndProcessNextFile.js
Last active April 5, 2025 06:41 — forked from TfTHacker/ArchiveAndProcessNextFile.js
Obsidian: Archive current file and then open next file in folder (Templater script)
<%*
/*
Updated: 1/22/2022
Author: TfTHacker & thomasvs
Gist: https://gist.github.com/TfTHacker & https://gist.github.com/thomasvs/343c740825407f0a84f350e4e40bedd0
Twitter: https://twitter.com/TfTHacker & https://twitter.com/thomasvs
Requirements: Templater Plugin for Obsidian
Description: This script performs the following actions:
1. Moves current file using the file explorer's move feature
2. Opens next file in current folder into the active window pane in Obsidian
@chadwcarlson
chadwcarlson / post-deploy.yaml
Last active January 24, 2025 10:41
Updating a Platform.sh integration's `target_url` to display failed activity logs
---
name: Post-deploy
on:
push:
branches-ignore:
- 'master'
env:
PLATFORMSH_CLI_TOKEN: ${{ secrets.CLI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACC_MIN: 0.80
@ks2211
ks2211 / Phoenix esbuild with Tailwind and Fontawesome
Last active July 30, 2024 01:50
Phoenix with esbuild, fortawesome, and tailwindcss
Phoenix esbuild with Tailwind+Fontawesome
@kepano
kepano / obsidian-web-clipper.js
Last active March 24, 2026 17:44
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@bennewton999
bennewton999 / dailyNoteTemplate.txt
Last active October 22, 2025 05:41
My current Daily Note Template in Obsidian utilizing Templater and DataView Plugins
---
creation date: <% tp.file.creation_date() %>
tags: DailyNote <% tp.file.title.split('-')[0] %>
---
modification date: <%+ tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %> // This doesn't currently work in front matter, hoping that gets fixed.
# <% tp.file.title %>
<< [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]]>>
<?
//
// AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio)
//
// File: twitterFollowerCuratorBot.php
//
// Created: May 2021
// License: MIT
//