Skip to content

Instantly share code, notes, and snippets.

@thespacedoctor
thespacedoctor / pinboard_tag_tidy_up.py
Created December 9, 2017 15:49
[Pinboard Tag Homogeniser] Make all pinboard tags lowercase with underscores #tag #pinboard
#!/usr/local/bin/python
# encoding: utf-8
"""
*Tidy up Pinboard Tags*
:Author:
David Young
:Date Created:
November 8, 2017
@DJJonnyFeeke
DJJonnyFeeke / iTunesPlaylistManager.applescript
Created November 21, 2017 12:31
iTunes Playlist Manager
(*
"DJ Jonny F's iTunes Repair" for iTunes
written by Jonathan Feeke
[email protected]
*)
--===========LIST OF DEFAULT VARIABLES===========--
property my_title : "DJ Jonny F's iTunes Repair"
property myFileName : ""
property newName : ""
@oderwat
oderwat / BearGrabber.js
Created November 16, 2017 23:16
Safe Bear URL Grabber Scriptlet
javascript:location.href='bear://x-callback-url/add-text?title=URL-Grabber&mode=prepend&text='+encodeURIComponent('['+document.title+']('+location.href+")")
@Shujito
Shujito / bookmarklets.md
Last active February 9, 2024 21:37
Useful bookmarklets

Useful Bookmarklets

How to use:

Create a bookmark and replace URL with either of the listed codes

Easier: (google chrome)

  • Triple click to the whole thing
  • COPY!
  • Now hit [CTRL] + [D]
@mwerner
mwerner / app_watcher.lua
Created November 1, 2017 20:11
Hammerspoon scripts
function applicationWatcher(appName, eventType, appObject)
if (eventType == hs.application.watcher.activated) then
if (appName == "Finder") then
-- Bring all Finder windows forward when one gets activated
appObject:selectMenuItem({"Window", "Bring All to Front"})
end
end
end
local appWatcher = hs.application.watcher.new(applicationWatcher)
@LucaCappelletti94
LucaCappelletti94 / Sublime Text on Steroids.md
Last active November 17, 2023 19:23
A quick guide to get a super sublime text

Sublime Text on Steroids 💪

Getting Sublime

Sublime Text is an awesome text editor. You can get it either from its website or, if you are on a mac, by running the following:

brew cask install sublime-text

Package Control

Now you need Package Control, that you can either install via the command they offer on their website or, if you have an updated version of Sublime Text, you should find an option to install it under "Tools".

@Piasy
Piasy / install_ffmpeg.sh
Last active March 16, 2025 19:14
brew install ffmpeg with all options
brew options ffmpeg
brew install ffmpeg \
--with-chromaprint \
--with-fdk-aac \
--with-fontconfig \
--with-freetype \
--with-frei0r \
--with-game-music-emu \
--with-libass \
on idle
# Change these to your VPN's IP Address, and the VPN's name in your Mac's Network System Prefernces panel.
set vpnIPAddress to "111.222.333.444"
set vpnServiceName to "AlgoVPN"
set myIP to "127.0.0.1"
set shellScriptCommands to {¬
"dig +short myip.opendns.com @resolver1.opendns.com", ¬
"dig TXT +short o-o.myaddr.l.google.com @ns1.google.com | awk -F'\"' '{ print $2}'", ¬
"curl ifconfig.me", ¬
@dvlden
dvlden / ffmpeg.md
Last active January 3, 2025 16:28
Convert video files to MP4 through FFMPEG

This is my personal list of functions that I wrote for converting mov files to mp4!

Command Flags

Flag Options Description
-codec:a libfaac, libfdk_aac, libvorbis Audio Codec
-quality best, good, realtime Video Quality
-b:a 128k, 192k, 256k, 320k Audio Bitrate
-codec:v mpeg4, libx264, libvpx-vp9 Video Codec