Skip to content

Instantly share code, notes, and snippets.

@pdxmph
pdxmph / catppuccin-simple-custom.css
Created Jan 22, 2023
Sample custom CSS to override simplecss with Catppuccin palette
View catppuccin-simple-custom.css
@import url('https://fonts.googleapis.com/css2?family=Neuton:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Mono&display=swap');
@import url('https://unpkg.com/@catppuccin/palette@0.1.4/css/catppuccin.css');
h1, h2, h3, h4, h5, h6 {
font-family: 'Neuton', serif;
}
:root {
@pdxmph
pdxmph / text-transporter-config.md
Created Jan 12, 2023
Sample config for obsidian43-text-transporter plugin
View text-transporter-config.md
View keybase.md

Keybase proof

I hereby claim:

  • I am pdxmph on github.
  • I am pdxmph (https://keybase.io/pdxmph) on keybase.
  • I have a public key ASAx8GzdJNTg9VBxmxJs5L4A8HPrAN1-6OIiHw2Zy0uGNwo

To claim this, I am signing this object:

@pdxmph
pdxmph / make_data.rb
Last active May 17, 2022
Populate Jekyll data directories with the jpegs found in _galleries/foo.
View make_data.rb
#!/usr/bin/env ruby
require 'yaml'
require 'mini_exiftool'
# Run this in the root of your jekyll install.
gallery_name = ARGV[0]
target_dir = "_galleries/#{gallery_name}"
data_file = "_data/galleries/#{gallery_name}.yml"
@pdxmph
pdxmph / jekyll_gallery_data.md
Last active May 16, 2022
Using Jekyll data to provide descriptions to a cheesy-gallery gallery
View jekyll_gallery_data.md
@pdxmph
pdxmph / rfc_template.md
Last active Apr 19, 2022
Simple Markdown RFC template
View rfc_template.md

RFC: TEMPLATE

Summary:

**Created: **

**Deadline/Timeframe: **

DACI

**Driver: **

@pdxmph
pdxmph / kcrw_current_track_to_things.rb
Last active May 15, 2020
Save current KCRW Eclectic 24 track to a Things list
View kcrw_current_track_to_things.rb
#!/usr/bin/env ruby
require 'json'
require 'date'
require 'net/http'
require 'rb-scpt'
include Appscript
# Set up things
list = "To read, etc."
View sky-pirates.md

February 6, 2010 at 2:02:28 AM PST

Taking the Dumb Pipe to China

Note: This story finally ended

webex.jpg

So, yesterday I tweeted:

Dialed an 866 WebEx number on my iPhone, getting charged by AT&T for calling China. idontevenknowwhotoblamefail

@pdxmph
pdxmph / increase_itunes_playlist_volume.scpt
Created Aug 9, 2019
Make the tracks in a playlist louder (experimental)
View increase_itunes_playlist_volume.scpt
tell application "iTunes"
set myList to the user playlist "Ride"
set myTracks to the file tracks of myList
repeat with theTrack in myTracks
tell theTrack
set the volume adjustment to "75"
end tell
end repeat
end tell
@pdxmph
pdxmph / sprint_animal.rb
Last active Apr 1, 2019
Animal Sprint Name Generator: takes a letter and a sentiment as arguments. (e.g.`sprint_animal.rb a negative` or `sprint_animal.rb z positive`
View sprint_animal.rb
#!/usr/bin/env ruby
require 'sentimental'
# takes two arguments (starting letter and sentiment, where sentiment should be 'positive,' 'negative,' 'neutral.')
letter = ARGV[0]
sentiment = ARGV[1] || "negative"
analyzer = Sentimental.new(threshold: 0.3)
analyzer.load_defaults