COVID-19 cases table generator
result: https://raw.githubusercontent.com/lccxz/covid19cases/master/covid19cases.txt
#!/usr/bin/ruby | |
Thread.new { system "create_ap wlp12s0 enp9s0 lc_wlan lc123789 >/dev/null 2>&1" } | |
999.times.each { | |
break if `ifconfig | grep ap0`.length != 0 | |
sleep 1 | |
} | |
var all_msgs = () => { return $(".im_history_message_wrap:visible"); }; | |
var send = (cmd) => { $(".composer_rich_textarea").text(cmd); $(".im_submit").mousedown(); }; | |
var ex_text = "/extend 299"; | |
var ex_regexp = new RegExp(ex_text); | |
var own_regexp = /lccc/; | |
var del_regexp = new RegExp(ex_text + "|延長 299 秒|剩餘 \\d+ 秒|剩餘一分鐘"); | |
(async function work() { |
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
bindkey -v | |
# End of lines configured by zsh-newuser-install | |
# The following lines were added by compinstall | |
zstyle :compinstall filename '/home/liuchong/.zshrc' | |
# End of lines added by compinstall |
require "http/client" | |
sum = 0 | |
100.times { | |
spawn { | |
10000.times { | |
HTTP::Client.get("http://127.0.0.1/") { |res| sum += 1 } | |
} | |
} |
COVID-19 cases table generator
result: https://raw.githubusercontent.com/lccxz/covid19cases/master/covid19cases.txt