Skip to content

Instantly share code, notes, and snippets.

View underyx's full-sized avatar
🦊
Yay!

Bence Nagy underyx

🦊
Yay!
View GitHub Profile
@underyx
underyx / attestation.txt
Created April 5, 2022 21:15
Attestation
I contributed to the Semaphore Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: semaphore16
Contributor # 87
Hash: 5b551ad7 5919cfe4 9e033efc ebe1916f
3af1b51f 67fed283 c38655ea c067eb94
fc95c468 1d20137e 53c29365 9667ce67
3dfa000c a6a8a262 c10c70eb 6961751c
arstarstarst
qwfpqwfpqwfp
{
"fallback": "The semgrep repo has 933 stars today",
"author_name": "Some cool stats",
"text": "The semgrep repo has 933 stars today"
}
{
"fallback": "The semgrep repo has 933 stars today",
"author_name": "Semgrape",
"author_icon": ":grape:",
"text": "The semgrep repo has 933 stars today"
}
--------------------------------------------------------------------------------------------------------------------------------------- benchmark: 147 tests ---------------------------------------------------------------------------------------------------------------------------------------
Name (time in ms) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_version 60.4464 (1.0) 83.2446 (
Name (time in ms) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_semgrep_rules_rule[python/deadcode/useless-eqeq.yaml] 174.1133 (2.71) 179.9553 (2.37) 176.6967 (2.55) 2.1576 (3.81) 176.4344 (2.57) 3.0305 (3.06) 2;0 5.6594 (0.39) 6 1
test_semgrep_rules_rule[python/airflow/formatted-string-bashoperator.yaml] 176.1940 (2.74) 186.62
Name (time in ms) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
test_semgrep_rules_rule[python/deadcode/useless-eqeq.yaml] 174.1133 (2.71) 179.9553 (2.37) 176.6967 (2.55) 2.1576 (3.81) 176.4344 (2.57) 3.0305 (3.06) 2;0 5.6594 (0.39) 6 1
test_semgrep_rules_rule[python/airflow/formatted-string-bashoperator.yaml] 176.1940 (2.74) 186.62
#!/usr/bin/env python3
import os
from requests_html import HTMLSession
session = HTMLSession()
webhook_url = os.environ["SLACK_WEBHOOK_URL"]
r = session.get("https://www.czc.cz/sony%20wh-1000xm2/hledat")
r.raise_for_status()
@underyx
underyx / rohlikovac.sh
Last active July 16, 2018 07:51
Get credits from rohlik
#!/usr/bin/env bash
curl 'https://www.rohlik.cz/stranka/rohlikovac?do=creditForge-roll' \
-H 'pragma: no-cache' \
-H "cookie: $ROHLIK_COOKIES" \
-H 'accept-encoding: gzip, deflate, br' \
-H 'accept-language: en-US,en;q=0.9,hu-HU;q=0.8,hu;q=0.7,ja-JP;q=0.6,ja;q=0.5,cs-CZ;q=0.4,cs;q=0.3' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36' \
-H 'accept: */*' \
-H 'cache-control: no-cache' \
-H 'authority: www.rohlik.cz' \
@underyx
underyx / wk2bm.py
Last active July 16, 2018 07:14
Syncs my wanikani review queue length to Beeminder
#!/usr/bin/env python3
import requests
from os import environ
r = requests.get(
'https://api.wanikani.com/v2/summary',
headers={'Authorization': f'Bearer {environ["WANIKANI_TOKEN"]}'},
)
r.raise_for_status()