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 errno | |
import os | |
import pathlib | |
import tempfile | |
# The code below is based on or copy from an answer by Cecil Curry at: | |
# https://stackoverflow.com/questions/9532499/check-whether-a-path-is-valid-in-python-without-creating-a-file-at-the-paths-ta/34102855#34102855 | |
# -*- CODE BLOCK BEGIN -*- |
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
@echo off & pushd %TEMP% | |
mode con cols=78 lines=3 | |
title KMS ^& KMS 2038 ^& Digital ^& Online Activation Suite %ver% by mephistooo2 - TNCTR.com | |
set ver=v8.7 | |
echo. | |
whoami /user|findstr "S-1-5-18">nul || (call :runasTI 1 cmd.exe /c "%~f0" &echo TRUSTED INSTALLER RIGHTS ENABLED... &echo Please wait... &TIMEOUT /T 3 >nul &exit) | |
echo. | |
echo Files extracting , please wait... | |
if exist "%TEMP%\KMS_Suite" @RD /S /Q "%TEMP%\KMS_Suite" >nul | |
powershell -noprofile -c "$f=[io.file]::ReadAllText('%~f0') -split ':bat2file\:.*';iex ($f[1]);X 1;" >nul |
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
class Clipboard: | |
import win32clipboard as wcb | |
cf_dict = {n.lstrip('CF_'): m for n, m in inspect.getmembers(wcb) if n.startswith('CF_')} | |
def __enter__(self): | |
self.open() | |
return self | |
def __exit__(self, exc_type, exc_val, exc_tb): | |
self.close() |
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-图床 |
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
:: 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/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
#!/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
// ==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/* |
NewerOlder