csrutil disable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kano_wand.kano_wand import Shop, Wand, PATTERN | |
from qhue import Bridge | |
import moosegesture as mg | |
import time | |
import random | |
import math | |
class GestureWand(Wand): | |
def post_connect(self): | |
self.gestures = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#get urls off a play list | |
youtube-dl -j --flat-playlist 'https://www.youtube.com/watch?v=k4JGSAmu4lg' | jq -r '.id' | sed 's_^_https://youtube.com/v/_' > urls.txt | |
#pass the list through parallels and fire off a youtube-dl command for each url. | |
parallel -a urls.txt youtube-dl -f 'bestvideo+bestaudio/best' --write-description --write-info-json --write-annotations --restrict-filenames | |
#if you need to limit the jobs, parallels --jobs 4 | |
#for multiple connections per file | |
youtube-dl -f 'bestvideo+bestaudio/best' --write-description --write-info-json --write-annotations \ | |
--external-downloader aria2c --external-downloader-args '-c -j 16 -x 16 -s 16 -k 1M' https://youtu.be/rge0Xg7U6Lc |
a. Boot into recovery using command-R
during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS
b. Initial installation will run for approximately 1 hour, and reboot once
c. It will then show a remaining time of about 10-15 minutes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("After the XML is loaded", FrameTestFrame) | |
local seconds = 10 | |
local total = 0 | |
FrameTestFrame:SetScript("OnUpdate", function(self, elapsed) | |
total = total + elapsed | |
if total > seconds then | |
self:SetScript("OnUpdate", nil) | |
end | |
local sides = 100 + (100 * (total / seconds)) |
You can download whole courses from an array of tutorial sites with the CLI tool youtube-dl
. In the example further down I'm using my Pluralsight account to get videos from a course at their site. Here is a list of all supported sites that you can download from with this tool
The flags you have to supply may vary depending on which site you make a request to.
You can get a free 3 month trial to Pluralsight by signing up for free to Visual Studio Dev Essentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright © 2017 Google Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"strings" | |
"time" | |
"github.com/boltdb/bolt" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [] | |
}, | |
"description": "", | |
"editable": true, | |
"gnetId": 22, | |
"graphTooltip": 0, | |
"hideControls": false, | |
"id": 2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: logstash-secrets | |
data: | |
logstash.secrets: | | |
ELASTICSEARCH_USERNAME=elasticsearch/production#username | |
ELASTICSEARCH_PASSWORD=elasticsearch/production#password | |
--- | |
apiVersion: v1 |
NewerOlder