Skip to content

Instantly share code, notes, and snippets.

@CTimmerman
CTimmerman / bookmarklets.js
Last active February 5, 2025 14:36
Bookmarklets / Favelets - Drag to bookmarks bar and rename, then click on page to affect.
// Speed up / slow down HTML5 videos! Just set as URLs of bookmark bar items:
javascript:(function(){v = []; for(x of document.querySelectorAll("audio, video")) v.push(x); try{v.push(window.frames[0].document.querySelector("audio, video"))}catch(ex){}; for(i of v) i.playbackRate += .4}())
javascript:(function(){v = []; for(x of document.querySelectorAll("audio, video")) v.push(x); try{v.push(window.frames[0].document.querySelector("audio, video"))}catch(ex){}; for(i of v) i.playbackRate -= .4}())
// Highlight new Facebook notifications.
javascript:(function(){var s = document.createElement('style'); s.appendChild(document.createTextNode(".jewelItemNew ._33e{background-color:lightgreen!important;}")); document.head.appendChild(s)}())
// Show videos from messy framework HTML, can't show toolbar in popup due to Chrome bug 82522.
javascript:(function(){var w=window.open();var d=w.document;d.title='Videos';d.body.style.backgroundColor='0';for(var v of document.getElementsByTagName('video')){v.style='';v.controls
@ahmadawais
ahmadawais / audacity_audio_editing.md
Created March 27, 2017 09:21
AUDIO: How to Edit Your Audio in Audacity to Make You Sound Better!

AUDIO: How to Edit Your Audio in Audacity to Make You Sound Better.

— by https://youtu.be/TYF5ytMDFpA

Requirements

  • Audacity
  • Audio File

Process

  1. Open the file
@RebeccaWhit3
RebeccaWhit3 / Keywords for Tagging Web Technologies.md
Created March 24, 2017 00:12
Good tags for web technology knowledge management.
@othercat
othercat / ConvertAC3MKVtoAACMP4.sh
Last active February 15, 2023 01:54
Convert AC3 MKV to AAC MP4
#! /bin/bash
pathname=$1
filename=$(basename $pathname .mkv)
dirname=$(dirname $pathname)
h264videopath="$dirname/../h264video/$filename.h264"
aacaudiopath="$dirname/../aacaudio/$filename.m4a"
aacvideopath="$dirname/../aacvideo/$filename.mp4"
ac3videopath="$dirname/../ac3video/$filename.mp4"
@Noleli
Noleli / nvalttobear.py
Created March 22, 2017 21:53
A Python script to add Notational Velocity/nvALT tags as hashtags for Bear
from subprocess import check_output
import re
import os
from shutil import copy2 as copy
# adjust paths to your liking
path = os.environ['HOME'] + '/Dropbox/Preferences/Notational Data/'
outpath = os.environ['HOME'] + '/Desktop'
os.mkdir(outpath + '/export')
@RebeccaWhit3
RebeccaWhit3 / Keywords for Tagging Software.md
Last active January 14, 2022 07:43
Keywords for Tagging Software

Keywords for Tagging Software

Some useful keywords for tagging software related content.

AlternativeTo

Taken from: http://alternativeto.net/

Software by Genre

@keirthomas
keirthomas / logkill.sh
Last active March 16, 2018 06:27
BASH script to kill most app/process logging in macOS Sierra – replace USERNAME with your username (use whois in terminal to discover this)
#!/bin/bash
for i in {1..70000};
do
NUM=`ps -o pid -p $i | grep $i `
if [ $NUM ];
then
echo " $i $NUM "
log config --process=$i --mode 'level:off'
fi
@zwaldowski
zwaldowski / safari-inline-video.sh
Last active December 10, 2020 07:31
Safari Inline Video
defaults write com.apple.Safari WebKitMediaPlaybackAllowsInline -bool false
defaults write com.apple.SafariTechnologyPreview WebKitMediaPlaybackAllowsInline -bool false
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2AllowsInlineMediaPlayback -bool false
defaults write com.apple.SafariTechnologyPreview com.apple.Safari.ContentPageGroupIdentifier.WebKit2AllowsInlineMediaPlayback -bool false
@scottgruber
scottgruber / readme.md
Last active May 7, 2021 21:57 — forked from remy/batcharge.py
My zsh set up as of August 9, 2019

Setup zsh

Based on Remy Sharp's most excellent Working the Command Line

brew install zsh zsh-completions

Add oh-my-zsh

curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh

Make zsh default shell

@sirn
sirn / README.md
Last active November 17, 2018 10:48
Fix iTunes Library.xml

Fix iTunes Library

This is a one-off script to fix broken Location entry in iTunes Library.xml.

iTunes internal database will sometimes have a broken file location when exporting. For example, for a purchased song, it might still have a reference to a temporary file at iTunes Media/Downloads rather than file inside iTunes Media/Music directory. While iTunes itself doesn't seems to use these locations for its playback, it becomes problematic when other music players try to import the iTunes library data (e.g. Swinsian).

This script will parse iTunes Library.xml to detect broken file location and try to find the file. This script was created for personal use, so it may or may not work in your environment. Use it at your own risk and remember to backup the library before trying!

You should not need to use this if you're not syncing the iTunes library with other media players on a Mac.