Skip to content

Instantly share code, notes, and snippets.

View filmgirl's full-sized avatar

Christina Warren filmgirl

View GitHub Profile
@filmgirl
filmgirl / thumb.sh
Created February 21, 2024 22:49
Grab thumbnail from a YouTube URL and save to whatever folder you're in
## Put in your .zshrc or .bashrc file, make sure yt-dlp and ffmpeg are already installed
thumb() {
yt-dlp --ignore-errors --write-thumbnail --skip-download $1
}
@filmgirl
filmgirl / G2V.sh
Created March 5, 2022 19:01
Gif to Video ZSH Snippet For macOS/QuickTime
## Put in your .zshrc or .bashrc file
g2v() {
ffmpeg -f gif -i $1 -pix_fmt yuv420p $2
}
## Modified from https://ewanvalentine.io/make-your-own-gif-to-mp4-converter-using-ffmpeg-and-bash/
@filmgirl
filmgirl / Bookmarklet for CDA Web Trends
Last active February 25, 2019 03:33 — forked from scottcate/Bookmarklet for CDA Web Trends
Bookmarklet Template for adding Web Trends tracking
@filmgirl
filmgirl / delete-custom-post-type.sql
Created July 30, 2018 19:13
SQL query for efficiently deleting WordPress CPT
DELETE FROM wp_posts
WHERE post_type = 'post_type';
DELETE FROM wp_postmeta
WHERE post_id NOT IN (
SELECT
id FROM wp_posts);
DELETE FROM wp_term_relationships
WHERE object_id NOT IN (
@filmgirl
filmgirl / el-capitan-install-usb
Last active November 30, 2019 04:05
Create Bootable USB Drive for OS X El Capitan
sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction
### Keybase proof
I hereby claim:
* I am filmgirl on github.
* I am film_girl (https://keybase.io/film_girl) on keybase.
* I have a public key whose fingerprint is E37D B179 06A2 0DB3 CB19 8F4D ABA8 5C28 322E D770
To claim this, I am signing this object:
@filmgirl
filmgirl / MessagesFix
Last active August 29, 2015 14:08
Fix Message.app Receive Sound in Yosemite
defaults write ~/Library/Containers/com.apple.tonelibraryd/Data/Library/Preferences/com.apple.ToneLibrary.plist "sms-sound-identifier" "/Applications/Messages.app/Contents/Resources/Default.aiff"
@filmgirl
filmgirl / yosemite-install-usb
Last active April 3, 2018 07:04
Create Bootable USB Drive for OS X Yosemite
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction
@filmgirl
filmgirl / mavericks-install
Created October 23, 2013 19:58
OS X Mavericks
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction
@filmgirl
filmgirl / instagram-for-video-embed
Last active December 18, 2015 18:29
Instagram video embed steps. Replace URLs with Amazon S3 links from Instagram page.
<video controls="controls" poster="http://distilleryimage3.s3.amazonaws.com/2ea7416ad9e311e28f2322000a9e0753_7.jpg" width="640" height="640">
<source src="http://distilleryvesper3-7.ak.instagram.com/2ea7416ad9e311e28f2322000a9e0753_101.mp4" type="video/mp4" />
<img alt="C-Mac's Messy Desk" src="http://distilleryimage3.s3.amazonaws.com/2ea7416ad9e311e28f2322000a9e0753_7.jpg" width="640" height="640" title="No video playback capabilities, please download the video below" />
</video>