Note: YouTube is serving thumbnails from 2 servers:
//img.youtube.com
//i.ytimg.com
Examples are with //i.ytimg.com server just because it’s shorter, no other particular reason. You can use both.
-
Player Background Thumbnail (480x360):
// Work for RedMi 2100 firmware 2.0.23 | |
// http://cdn.cnbj1.fds.api.mi-img.com/xiaoqiang/rom/rm2100/miwifi_rm2100_all_fb720_2.0.23.bin | |
function getSTOK() { | |
let match = location.href.match(/;stok=(.*?)\//); | |
if (!match) { | |
return null; | |
} | |
return match[1]; | |
} |
Note: YouTube is serving thumbnails from 2 servers:
//img.youtube.com
//i.ytimg.com
Examples are with //i.ytimg.com server just because it’s shorter, no other particular reason. You can use both.
Player Background Thumbnail (480x360):
const fingerprintingDetection = (function () { | |
const detectFingerprinting = function () { | |
function getCallerFile() { | |
let originalFunc = Error.prepareStackTrace; | |
let callerfile; | |
try { | |
const err = new Error(); | |
let currentfile; |
There's not telegram API method for this, we need to call MTProto methods to retrieve messages from the "Recent Actions" (Admin Log) since deleted messages (and medias) gets moved there for 48 hours before the permanent deletion.
from telethon import TelegramClient, events, sync
from telethon.tl.types import InputChannel, PeerChannel
// Tracking cursor position in real-time without JavaScript | |
// Demo: https://twitter.com/davywtf/status/1124146339259002881 | |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"strings" | |
) |
# send logs for all traffic (including non-html) to google analytics | |
# | |
# in server block: | |
# set $google_analytics_id "UA-THECORRECT-ID"; | |
# include /srv/nginx/google_analytics; | |
# | |
# in location blocks: | |
# post_action @ga; | |
# | |
# notes: post_action has been referred to by nginx devs as a "dirty hack" and this approach may stop working one day. |
Getting rke and Rancher setup to run kubernetes on arm is interesting. There is no official support yet via rancher, although there is interest and some work done towards those efforts. This is my attempt at getting a cluster of 3 Pis (2 3Bs and 1 3B+) provisioned and registered to a rancher 2 server.
I've successfully completed this both with Hypriot OS 1.9.0 and the arm64 builds https://github.com/DieterReuter/image-builder-rpi64 Both times I used the same basic cloud-init setup
1) Install cloudflared using homebrew: | |
brew install cloudflare/cloudflare/cloudflared | |
2) Create /usr/local/etc/cloudflared/config.yaml, with the following content | |
proxy-dns: true | |
proxy-dns-upstream: | |
- https://1.1.1.1/dns-query | |
- https://1.0.0.1/dns-query |
04709f1bd7d8d8d7ad905fb26fe5016b77f4942dbd054402ad827fbdd503921b92957c55903b029cf00e2eea06370f0074b649ef8f6a3b0a90baec9cda9ebcfcaa;yddmat |
Follow these instructions to start an EC2 instance running Ubuntu that will run rai_node on startup
Select Ubuntu Server 16.04 LTS (HVM), SSD Volume Type. A t2.small or larger instance type is recommended.
Configure the security group to match the screenshot.
Download install_rai_node.sh
below, update the URLs with their latest versions.
Get latest rai_node archive URL from https://github.com/clemahieu/raiblocks/releases.
Get latest gdrive-linux-x64 version URL from https://github.com/prasmussen/gdrive#downloads