Copy/paste these into Safari and it will add it to Alfred
alfred://customsearch/Search%20npm%20for%20%27%7Bquery%7D%27/npm/utf8/nospace/https%3A%2F%2Fwww.npmjs.com%2Fsearch%3Fq%3D%7Bquery%7D
{ | |
"BTTWidgetName" : "Toggle appearance", | |
"BTTTriggerType" : 639, | |
"BTTTriggerTypeDescription" : "Apple Script Widget", | |
"BTTTriggerClass" : "BTTTriggerTypeTouchBar", | |
"BTTPredefinedActionType" : 195, | |
"BTTPredefinedActionName" : "Run Apple Script (async in background)", | |
"BTTInlineAppleScript" : "tell application \"System Events\"\r\ttell appearance preferences\r\t\tset dark mode to not dark mode\r\tend tell\rend tell", | |
"BTTEnabled2" : 1, | |
"BTTUUID" : "ECC2514E-86E5-4304-AABA-BA7749257FDC", |
#! /usr/bin/env python | |
import subprocess | |
import re | |
# Settings | |
diskPath = '/dev/sda' | |
mountPath = '/media/drobo' | |
# Get status | |
command = "/usr/sbin/drobom status" |
I hereby claim:
To claim this, I am signing this object:
const jsdom = require("jsdom"); | |
jsdom.env({ | |
html: ` | |
<!DOCTYPE html> | |
<body> | |
<script> | |
var script = document.createElement("script"); | |
script.setAttribute('type', 'application/javascript'); | |
script.textContent = "ran = true;"; |
const jsdom = require("jsdom"); | |
jsdom.env({ | |
html: ` | |
<!DOCTYPE html> | |
<body> | |
<script> | |
var script = document.createElement("script"); | |
script.setAttribute('type', 'application/javascript'); | |
script.textContent = "ran = true;"; |
// This is not some kind of polyfill! It's just to prevent old browsers from failing horribly | |
var fallback = function() {}; | |
var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'profile', 'profileEnd', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn', 'table']; | |
if(typeof console === 'undefined') { | |
var console = {}; | |
} | |
for(var i in methods) { |
#!/usr/bin/env zsh | |
# | |
# Turns ISO-files and VIDEO_TS-directories from $encode_path into decent H264-encoded mp4's (audio/subtitle-tracks are included). | |
# | |
# Requirements: | |
# - ZSH | |
# - HandBrakeCLI | |
encode_path=~/Desktop/Encode | |
handbrake_path=/usr/bin/HandBrakeCLI |
var glob = require('glob'); | |
var path = require('path'); | |
var cli = require('cline')(); | |
var fs = require('fs'); | |
var fromBase = '/Volumes/Video/Movies'; | |
var toDownload = '/Volumes/Video/TODO/Download'; | |
var toEncode = '/Volumes/Video/TODO/Encode'; | |
var toDelete = '/Volumes/Video/TODO/Delete'; |
/*global $ */ | |
/* | |
_______ _______ _______ _______ _______ _______ _______ ___ _ | |
| || _ || || || _ || || || | | | | |
| ___|| |_| || || ___|| |_| || _ || _ || |_| | | |
| |___ | || || |___ | || | | || | | || _| | |
| ___|| || _|| ___|| _ | | |_| || |_| || |_ | |
| | | _ || |_ | |___ | |_| || || || _ | |