— by https://youtu.be/TYF5ytMDFpA
- Audacity
- Audio File
- Open the file
// 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 |
— by https://youtu.be/TYF5ytMDFpA
Good tags for web technology knowledge management.
Taken from: https://wappalyzer.com/applications
#! /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" |
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') |
Some useful keywords for tagging software related content.
Taken from: http://alternativeto.net/
#!/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 |
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 |
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
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.