This still works on FCP 10.6.9.
-
Open Terminal app.
-
Paste the following line:
mv -v ~/Library/Application\ Support/.ffuserdata ~/.Trash
blueprint: | |
name: ZHA - Moes Tuya Smart Knob (TS004F) controller for remote control devices | |
description: Control remotes (e.g. volume up/down) with a Moes Tuya smart knob (the spinny ones). You can set functions for single press, rotating left, and rotating right. | |
domain: automation | |
source_url: https://gist.github.com/blizzrdof77/c30c388ca5f4ce7ed72752296767417d | |
input: | |
remote: | |
name: Smart Knob Device | |
description: Moes Tuya Smart Knob Device to use | |
selector: |
Create a new file in the test's temp directory. | |
$ cat newfile.txt | |
cat: .*: No such file or directory (re) | |
[1] | |
$ echo "hello" > newfile.txt | |
Create a new file in the test runner's temp directory (shared). | |
$ cat "$TMP"/newfile.txt |
// Paste in browser console and run | |
async function deleteStaleBranches(delay=500) { | |
var stale_branches = document.getElementsByClassName('js-branch-delete-button'); | |
for (var i = 0; i < stale_branches.length; i++) | |
{ | |
stale_branches.item(i).click(); | |
await new Promise(r => setTimeout(r, delay)); | |
} | |
} |
#!/bin/bash | |
# | |
# Wyze cameras store video files in a folder hierarchy. This script creates a time lapse video file per hour. | |
date_folder="$1" | |
for hour_folder in $(ls "$date_folder") | |
do | |
echo "$date_folder-$hour_folder" | |
for hour_video in $(ls "$date_folder/$hour_folder" | grep -v "\-800k\.mp4") |
for ext in 360 MP4 JPG THM LRV | |
do | |
mkdir $ext | |
mv *.$ext $ext | |
done |
import requests | |
import json | |
GH_GRAPHQL_URL = 'https://api.github.com/graphql' | |
TOKEN = '' # add your PAT with read:org and write:org scope | |
def get_json_result(query): | |
headers={'Authorization': f'token {TOKEN}'} | |
r = requests.post(GH_GRAPHQL_URL, json={'query': query}, headers=headers) |
pushd manager | |
zip -rq package . | |
aws lambda update-function-code \ | |
--function-name srarun-upload-manager \ | |
--zip-file fileb://./package.zip | |
rm package.zip | |
popd | |
pushd worker | |
zip -rq package . |
for f in *.jpg; do | |
date="${f:0:10}" | |
if ! [ -d "${date}" ]; then | |
echo "creating folder ${date}" | |
mkdir "${date}" | |
fi | |
echo "moving ${f}" | |
mv ${f} ${date} | |
done |