- Related tutorial: http://raspberrypiguide.de/
- Command Line Cheatsheet: https://gist.github.com/hofmannsven/8392477
This file contains hidden or 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
javascript: (function () { | |
var linkNode = document.createElement('link'); | |
linkNode.rel = 'stylesheet'; | |
linkNode.href = 'http://www.website.com/stylesheets/style.css'; | |
document.getElementsByTagName('head')[0].appendChild(linkNode); | |
})(); |
These instructions will guide you through the process of setting up local, trusted websites on your own computer.
These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.
NOTE: You may substitute the edit
command for nano
, vim
, or whatever the editor of your choice is. Personally, I forward the edit
command to Sublime Text:
alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
This file contains hidden or 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/sh | |
mkdir -v periscope; cd periscope; echo $PWD | |
TOKEN=${1##*/}; echo $TOKEN | |
curl -v "https://api.periscope.tv/api/v2/getAccessPublic?token=${TOKEN//=/%3D}" | json > periscope.json | |
M3U8=$(awk -F\" /replay/'{print $4}' periscope.json); echo $M3U8 | |
COOKIE="Cookie: $(awk -F'"' -v ORS="" /CloudFront/'{print $4"="; getline; print $4"; "}' periscope.json)" | |
curl -v -O -H "$COOKIE" "${M3U8}" | |
FIRST=$(awk -F'[_.]' '/chunk/{print $2;exit}' playlist.m3u8); echo chunk_$FIRST.ts | |
LAST=$(awk -F'[_.]' '/chunk/{num=$2}END{print num}' playlist.m3u8); echo chunk_$LAST.ts | |
curl -v -O -H "$COOKIE" "${M3U8%/*}/chunk_[$FIRST-$LAST].ts" |
This file contains hidden or 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
[ | |
{ | |
"action": { | |
"type": "block" | |
}, | |
"trigger": { | |
"url-filter": ".*", | |
"resource-type": ["script"], | |
"load-type": ["third-party"], | |
"if-domain": ["imore.com"] |
NewerOlder