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
/* | |
* Android (and Linux X11) can't handle absolute position HID events from mouse | |
* https://www.codeproject.com/Articles/1001891/A-USB-HID-Keyboard-Mouse-Touchscreen-emulator-with | |
* | |
* This program read these ABS_X & ABS_Y events from /dev/input/eventX, and emulate a touchscreen/stylus via linux uinput, so an "absolute" mouse can work. | |
* Example of "absolute" mouse: PiKVM, or some other mouse-emulating hardware (e.g. https://detail.tmall.com/item.htm?id=684263217981) | |
*/ | |
#include <linux/uinput.h> | |
#include <stdio.h> |
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
# -*- coding: utf-8 -*- | |
# Put this in /usr/libexec/netdata/python.d/ | |
from bases.FrameworkServices.SimpleService import SimpleService | |
import requests | |
def fetch_latest(): | |
return requests.get("http://192.168.1.10:19999/api/v1/allmetrics?filter=cgroup*&format=json").json() | |
NETDATA_UPDATE_EVERY = 1 | |
priority = 1000 |
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
#!/usr/bin/python3 | |
import json | |
from hashlib import sha1 | |
import hmac | |
import base64 | |
import datetime | |
import urllib.parse | |
from urllib.error import HTTPError | |
from urllib.request import urlopen | |
import os |
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 Bilibili VIP | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 不给叔叔送钱 | |
// @author You | |
// @match *://www.bilibili.com/bangumi/play/* | |
// @match *://www.bilibili.com/video/* | |
// @connect api.bilibili.com | |
// @icon https://www.bilibili.com/favicon.ico |
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 签到脚本lite | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 自动签到插件 | |
// @author lyc8503 | |
// @match * | |
// @connect * | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
// @grant GM_xmlhttpRequest |
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
aliddns_ak="xxx" | |
aliddns_sk="xxx" | |
domain="xxx.example.com" | |
timestamp=$(date -u "+%Y-%m-%dT%H%%3A%M%%3A%SZ") | |
ip=$(ip route get 2001::8888 | sed -n '/src/{s/.*src *\([^ ]*\).*/\1/p;q}') | |
urlencode() { | |
# urlencode <string> |
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
mode: rule | |
ipv6: true | |
log-level: info | |
allow-lan: false | |
mixed-port: 7890 | |
unified-delay: false | |
tcp-concurrent: true | |
external-controller: 127.0.0.1:9091 | |
external-ui: ui |