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
#!/bin/sh | |
MF832S_PRODUCT="19d2/199/100" | |
MODEM=/dev/ttyUSB0 | |
NETIF=network.interface.mf832s | |
[ "$PRODUCT" = "$MF832S_PRODUCT" ] && [ "${DEVICENAME##*.}" = "4" ] || exit | |
[ "$ACTION" = "remove" ] &&\ | |
{ logger -t hotplug "MF832S: detach" &&\ |
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/env python3 | |
import queue | |
import signal | |
import sys | |
import threading | |
from datetime import datetime | |
from time import time | |
from serial import Serial |
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
splinter<0.8 (0.7.x) compatible with phantomjs | |
selenium<3.8 (3.7.x) last version supporting phantomjs |
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
#!/bin/bash | |
curl -L https://gist.githubusercontent.com/mo-han/dff1e13f1fff8b5df0d1c8de57597a53/raw/69c68a0f77a0670f8d6cfa10139b7feb5a30f9f2/tag-cachedir.sh > /usr/local/bin/tagcachedir | |
chmod +x /usr/local/bin/tagcachedir | |
curl -L https://gist.githubusercontent.com/mo-han/dff1e13f1fff8b5df0d1c8de57597a53/raw/69ee94866357c69f9716449142580af9d4ea7901/untag-cachedir.sh > /usr/local/bin/untagcachedir | |
chmod +x /usr/local/bin/untagcachedir |
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 E(X)Hentai Helper | |
// @description Links between E-Hentai and ExHentai page, and also links user to ExHentai automatically if gallery is "removed" and adds "view later" function | |
// @namespace https://greasyfork.org/en/scripts/24342-e-hentai-exhentai | |
// @version 4.05 | |
// @icon https://e-hentai.org/favicon.ico | |
// @resource exCSS http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css | |
// @resource jqueryui https://code.jquery.com/ui/1.12.0/jquery-ui.min.js | |
// @include https://upload.e-hentai.org/* |
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
#!/bin/bash | |
for i in "$@" | |
do | |
if [ -d "$i" ] | |
then | |
parent=$(dirname "$i") | |
pushd $parent >/dev/null | |
echo $parent | |
dir=$(basename "$i") |
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
#!/bin/bash | |
for i in "$@"; do | |
if test -d "$i"; then | |
pushd "$i/.." | |
folder=$(basename "$i") | |
echo cbz: $folder | |
zip -q -0 -r "$folder.cbz" "$folder" | |
rm -r "$folder" | |
popd |
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
:: yt-dl.bat | |
:: Mo Han <[email protected]> | |
:: @ yt-dl_worker.bat | |
@echo off | |
setlocal | |
call u_var.bat | |
set proxy=%u_autoproxy% | |
rem set proxy=%u_proxy% | |
pushd "%u_dl%" |
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
#!/bin/sh | |
for i in $(seq 0 3) | |
do | |
server=$i.openwrt.pool.ntp.org | |
if ping -c 3 -w 3 $server >/dev/null | |
then | |
echo $server | |
ntpclient -s -h $server | |
break |
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
image-hosting-图床 |
OlderNewer