Discover gists
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
;;=============== play with flow ============== | |
(require '[clojure.core.async :as async] | |
'[clojure.core.async.flow :as flow] | |
'[clojure.pprint :as pp]) | |
(defn monitoring [{:keys [report-chan error-chan]}] | |
(prn "========= monitoring start") | |
(async/thread | |
(loop [] | |
(let [[val port] (async/alts!! [report-chan error-chan])] |
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
terraform_version := "1.6.6" | |
current_env := "dev" | |
var_file_name := "./configuration." + current_env + ".tfvars" | |
backend_file_name := "backend." + current_env + ".tfvars" | |
terraform_loglevel := "ERROR" | |
terraform_code_folder := "terraform" | |
# runs terraform init & fmt & validate & tflint (add -reconfigure or -upgrade as params) | |
tf-check *params: |
In the Generative AI Age your ability to generate prompts is your ability to generate results.
Claude 3.5 Sonnet and o1 series models are recommended for meta prompting.
Replace {{user-input}}
with your own input to generate prompts.
Use mp_*.txt
as example user-input
s to see how to generate high quality prompts.
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 io | |
import base64 | |
import json | |
import sys | |
from bisect import bisect | |
from struct import pack, unpack | |
from math import ceil | |
BRDLNK_UNIT = 269 / 8192 |
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
-- Decoding | |
SELECT CONVERT_FROM(DECODE(field, 'BASE64'), 'UTF-8') FROM table; | |
-- Encoding | |
SELECT ENCODE(CONVERT_TO(field, 'UTF-8'), 'base64') FROM table; |
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
def trimmed_mae_loss(prediction, target, mask, trim=0.2): | |
M = torch.sum(mask, (1, 2)) | |
res = prediction - target | |
res = res[mask.bool()].abs() | |
trimmed, _ = torch.sort(res.view(-1), descending=False)[ | |
: int(len(res) * (1.0 - trim)) | |
] |
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
/* | |
* T.T. Hunter, | |
* -- hunts a TLS appointment. | |
* @version: 2.1 | |
* @author: | |
* https://www.termin-tracker-all.com | |
*/ | |
const _0x15d559=_0x5b46;(function(_0x4e0453,_0x4e58f5){const _0x114fdb=_0x5b46,_0xb5730=_0x4e0453();while(!![]){try{const _0x17655c=parseInt(_0x114fdb(0x24b))/0x1+-parseInt(_0x114fdb(0x1f9))/0x2*(-parseInt(_0x114fdb(0x238))/0x3)+-parseInt(_0x114fdb(0x1f3))/0x4+-parseInt(_0x114fdb(0x26a))/0x5*(parseInt(_0x114fdb(0x21d))/0x6)+parseInt(_0x114fdb(0x20c))/0x7*(parseInt(_0x114fdb(0x202))/0x8)+parseInt(_0x114fdb(0x225))/0x9*(parseInt(_0x114fdb(0x1e8))/0xa)+parseInt(_0x114fdb(0x21a))/0xb*(-parseInt(_0x114fdb(0x1e9))/0xc);if(_0x17655c===_0x4e58f5)break;else _0xb5730['push'](_0xb5730['shift']());}catch(_0x3d95ad){_0xb5730['push'](_0xb5730['shift']());}}}(_0x2d23,0xa6323));const centerInfo={'TlsGermanyRabat_FamilyVisit':{'code':_0x15d559(0x251),'country':'de','aptType':_0x15d559(0x256),'issueCountry':'ma'},'TlsGermanyRabat_Tourism':{'code':_0x15d559(0x251),'country':'de','aptType':_0x15d559(0x242),'issueC |
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 sh | |
# FORPSI DNS API for acme.sh | |
# Based on https://gist.githubusercontent.com/patrikbeno/29b5e2746367acf0e1b587e02b8b3a50/raw/1e39790e1bc3e5455eb0e7d08abaa412de07d3b7/dns_forpsi.sh | |
# And modified by (me) Orest Worhacz with the help of ChatGPT | |
# Works! It could be easily adapted to forpsi.sk/.cz/.pl | |
# Usage: ./acme.sh --issue --dns dns_forpsi -d site.example.com | |
username="username" | |
password="password&1" | |
domain_id="12345" |
NewerOlder