I hereby claim:
- I am moesoha on github.
- I am soha (https://keybase.io/soha) on keybase.
- I have a public key whose fingerprint is C0C8 8AEB 0CF8 BA40 2DA5 B831 27DB 133C D5EB D3BE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| html { | |
| font-size: 93.8%; | |
| background-color: #f1f2f3; | |
| background-image: | |
| -webkit-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em), | |
| -webkit-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em); | |
| background-image: | |
| -moz-linear-gradient(0deg, transparent .05em, rgba(0,0,0,.05) .05em, rgba(0,0,0,.05) .125000em, transparent .125000em), | |
| -moz-linear-gradient(rgba(0,0,0,.05) .062500em, transparent .062500em); | |
| background-image: |
| window.document.location.search.substr(1).split('&').forEach(function (v){ | |
| if(v.split('=')[0] == 'console'){ | |
| if(!window.VConsole){ | |
| var s = document.createElement('script'); | |
| s.src = 'https://res.wx.qq.com/mmbizwap/zh_CN/htmledition/js/vconsole/3.0.0/vconsole.min.js'; | |
| window.document.body.appendChild(s); | |
| } | |
| var c=setInterval(function (){ | |
| if(window.VConsole){ | |
| clearInterval(c); |
| #!/bin/sh | |
| LOCKFILE="/tmp/login_lte.pid" | |
| TMP=$(mktemp -u) | |
| WEBADDR="192.168.0.1" | |
| PASSWORD="cGFzc3dvcmQ=" # in base64 | |
| # GENERAL FUNCTIONS | |
| operation_prepare() { | |
| touch ${TMP} | |
| curl 'http://'${WEBADDR}'/goform/goform_set_cmd_process' -q -c ${TMP} -b ${TMP} -H 'Referer: http://'${WEBADDR}'/index.html' --data 'isTest=false&goformId=LOGIN&password='${PASSWORD} |
| #!/bin/sh | |
| if [ $# -ne 1 ] | |
| then | |
| echo take port number as argument | |
| exit 1 | |
| fi | |
| apt update && apt install -y git curl build-essential libssl-dev zlib1g-dev |
| import logging | |
| import cqhttp | |
| import telegram | |
| import random | |
| import traceback | |
| import global_vars | |
| from bot_constant import * | |
| from main.command import command_listener |
| #!/bin/sh | |
| set -e | |
| echo "===== Fetching CloudFlare latest IPs =====" | |
| IP4LIST=$(curl https://www.cloudflare.com/ips-v4) | |
| IP6LIST=$(curl https://www.cloudflare.com/ips-v6) | |
| echo "===== Creating Real IP config =====" | |
| printf "$IP4LIST\n\n$IP6LIST\n\n" | sed -E 's/(.+)/set_real_ip_from \1;/' - | tee cloudflare_real_ip.conf |
| --- a/src/gcc/c-family/c-attribs.c | |
| +++ b/src/gcc/c-family/c-attribs.c | |
| @@ -4894,6 +4894,11 @@ | |
| handle_optimize_attribute (tree *node, tree name, tree args, | |
| int ARG_UNUSED (flags), bool *no_add_attrs) | |
| { | |
| + if (getenv("ONLINE_JUDGE")) | |
| + { | |
| + error_at (DECL_SOURCE_LOCATION (*node), "%qE attribute is disallowed in online judge mode", name); | |
| + return NULL_TREE; |
| addEventListener('fetch', event => event.respondWith(handleRequest(event.request))); | |
| // Add environment variable `TGBOT_TOKEN` via Worker-Settings | |
| async function requestTelegramBotAPI(method, payload) { | |
| return fetch(`https://api.telegram.org/bot${TGBOT_TOKEN}/${method}`, { | |
| method: "POST", | |
| headers: { | |
| "Content-Type": "application/json; charset=utf-8" | |
| }, | |
| body: !payload ? undefined : JSON.stringify(payload) |
| // compatibility: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries | |
| const getQueryParams = s => Object.fromEntries(s.split('&').map(s => s.split('=')).map(a => [a.shift(), a.join('=')].map(s => decodeURIComponent(s || ''))).filter(([k, _]) => k.length > 0)); | |
| // window.$_GET = getQueryParams(window.location.search.slice(1)); |