Tested OpenWRT DDNS version: 2.8.2-11
Add following two file to file system after installed luci-app-ddns
Change the following files name, replace _
with /
Thanks to https://github.com/nixonli/ddns-scripts_dnspod
#!/bin/sh | |
# Alerts via telegram after OpenWRT reboot, start monitoring and list of currently connected wireless devices. | |
# write-up at: spcr.me/openwrt-alert | |
# Some modifications: https://gist.github.com/ksverdlov/33a26fed4c4413171171de86ba59c74f | |
# ~ note ~ | |
# Call from in /etc/rc.local | |
APIKEY=<YOUR_BOT_API_KEY_HERE> |
Tested OpenWRT DDNS version: 2.8.2-11
Add following two file to file system after installed luci-app-ddns
Change the following files name, replace _
with /
Thanks to https://github.com/nixonli/ddns-scripts_dnspod
-- put into ~/.hammerspoon | |
-- map Caps Lock key to Control in macOS settings (Keyboard -> Modifier Keys...) | |
-- Give all the accessability permissions in Hammerspoon preferences | |
-- NOTE: Changing "Key repeat rate" and "Delay until repeat" in macOS settings | |
-- require Hammerspoon restart to pick up those changes. | |
-- See: https://github.com/Hammerspoon/hammerspoon/issues/3264 | |
local function pressFn(mods, key) | |
if key == nil then | |
key = mods |
To help users in China mainland access telegram api stably and conveniently with low cost, this script maybe the one you need.
The server-less means you don't have to run a server to proxy the requests, just pay as you go.
Edit key_prefix
, set it to the prefix of you bot address(like /bot563441998:
) can avoid abusing.
-- key to break out of every layer and back to normal | |
escapeKey = {keyNone, 'escape'} | |
-- max length of helper measured in character | |
recursiveBindHelperMaxLineLengthInChar = 80 | |
-- format of helper, the helper is just a hs.alert | |
recursiveBindHelperFormat = {atScreenEdge=2, | |
strokeColor={ white = 0, alpha = 2 }, | |
textFont='SF Mono'} |
moved to https://github.com/JetBrains/Unity3dRider |
var Rx = require('rx'); | |
var readline = require('readline'); | |
var fs = require('fs'); | |
var rl = readline.createInterface({ | |
input: fs.createReadStream('lines.txt') | |
}); | |
var lines = Rx.Observable.fromEvent(rl, 'line') | |
.takeUntil(Rx.Observable.fromEvent(rl, 'close')) |
package me.yugy.cnbeta.widget; | |
import android.content.Context; | |
import android.database.ContentObserver; | |
import android.database.Cursor; | |
import android.database.DataSetObservable; | |
import android.database.DataSetObserver; | |
import android.os.Handler; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.ViewGroup; |
#! /bin/bash | |
#===================================================================== | |
# Selects an android device | |
# Copyright (C) 2012-2022 Diego Torres Milano. All rights reserved. | |
# | |
# The simplest way to invoke this script is creating a function like | |
# this one in your shell startup file: | |
# | |
# ``` | |
# adb () |