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
// ==UserScript== | |
// @name Abema 区域限制 | |
// @version 1.0.0 | |
// @run-at document-end | |
// @namespace Violentmonkey Scripts | |
// @match https://abema.tv/* | |
// @grant none | |
// ==/UserScript== | |
Object.defineProperty(__CLIENT_REGION__, 'isAllowed', { | |
get: () => true |
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 gochannels example of how to close a channel written by several goroutines | |
package gochannels | |
import ( | |
"math/big" | |
"sync" | |
) | |
// Publisher write sequences of big.Int into a channel | |
type Publisher struct { |
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
```bash | |
$ ssh -A vm | |
$ git config --global url."[email protected]:".insteadOf "https://github.com/" | |
$ cat ~/.gitconfig | |
[url "[email protected]:"] | |
insteadOf = https://github.com/ | |
$ go get github.com/private/repo && echo Success! | |
Success! | |
``` |
This example is part of this article.
This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:
- Domain filtering
- Referrer filtering
- Embed buster
How to configure your Mac to use DNS over TLS in five easy steps:
-
Install Stubby with Homebrew (https://dnsprivacy.org/wiki/display/DP/DNS+Privacy+Daemon+-+Stubby):
brew install stubby
-
Edit the configuration file:
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>A simple clock</title> | |
</head> | |
<body translate="no" > |
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
deb http://mirrors.aliyun.com/debian stretch main contrib non-free | |
deb http://mirrors.aliyun.com/debian stretch-proposed-updates main contrib non-free | |
deb http://mirrors.aliyun.com/debian stretch-updates main contrib non-free | |
deb-src http://mirrors.aliyun.com/debian stretch main contrib non-free | |
deb-src http://mirrors.aliyun.com/debian stretch-proposed-updates main contrib non-free | |
deb-src http://mirrors.aliyun.com/debian stretch-updates main contrib non-free | |
deb http://mirrors.aliyun.com/debian-security/ stretch/updates main non-free contrib | |
deb-src http://mirrors.aliyun.com/debian-security/ stretch/updates main non-free contrib |
- Use
curl
to get the JSON response for the latest release - Use
grep
to find the line containing file URL - Use
cut
andtr
to extract the URL - Use
wget
to download it
curl -s https://api.github.com/repos/jgm/pandoc/releases/latest \
| grep "browser_download_url.*deb" \
| cut -d : -f 2,3 \
| tr -d \" \
NewerOlder