After python-telegram-bot > 20.4 bot.send_message as async method
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
{ | |
"log": { | |
"access": "/var/log/v2ray/access.log", | |
"error": "/var/log/v2ray/error.log", | |
"loglevel": "info" | |
}, | |
"inbounds": [ | |
{ | |
"port": "10000", /* this is the server port for client */ | |
"listen": "127.0.0.1", |
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
[program:voice-producor] | |
command=/home/pi/voice/voice-producor.sh | |
user=pi | |
stderr_logfile=/home/pi/voice/voicep.log | |
stdout_logfile=/home/pi/voice/voicep.log | |
stopasgroup=true | |
stopsignal=QUIT | |
[program:voice-consumer] | |
command=/home/pi/voice/voice-consumer.sh |
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
/* MediaDecoder | |
Author: Andrew Stubbs (based on some examples from the docs) | |
This class opens a file, reads the first audio channel it finds, and returns raw audio data. | |
Usage: | |
MediaDecoder decoder = new MediaDecoder("myfile.m4a"); | |
short[] data; | |
while ((data = decoder.readShortData()) != null) { |
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
import time | |
from test1 import result as add1 | |
from test2 import result as add2 | |
t1 = time.time() | |
for i in range(1000000): | |
add1(i) | |
t1 = time.time() - t1 | |
print(t1) |
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 | |
# Mount an NFS share on Android | |
# Requirements: | |
# - Busybox | |
# - A kernel supporting nfs (either built-in or as a module) | |
# On my Nexus 7 2012 I use the following kernel: | |
# http://forum.xda-developers.com/showthread.php?t=2107224 | |
# Remember: if you have problems of system space, simply delete some of the default stuff. |
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
package com.ihuman.hpfutility.net.d; | |
import android.text.TextUtils; | |
import android.util.Pair; | |
import cn.jiguang.net.HttpUtils; | |
import com.google.devtools.build.android.desugar.runtime.ThrowableExtension; | |
import com.google.gson.Gson; | |
import com.google.gson.GsonBuilder; | |
import com.google.gson.annotations.Expose; | |
import com.google.gson.annotations.SerializedName; |
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 | |
if [[ $EUID -ne 0 ]]; then | |
clear | |
echo "Error: This script must be run as root!" 1>&2 | |
exit 1 | |
fi | |
function CopyRight() { | |
clear |
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 Dueros Developer Name Updated | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Mike | |
// @run-at document-start | |
// @match https://dueros.baidu.com/dbp/bot/index | |
// @require https://unpkg.com/[email protected]/dist/ajaxhook.min.js | |
// @grant MIT |
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 bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
# -------------------------------------------------------------- | |
# 系统: CentOS/Debian/Ubuntu | |
# 项目: 解锁网易云音乐 | |
# 版本: 1.1.5 | |
# 作者: XIU2 | |
# 官网: https://shell.xiu2.xyz | |
# 项目: https://github.com/XIU2/Shell |