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 /
| #!/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 /
| -- 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 () |