Skip to content

Instantly share code, notes, and snippets.

Avatar
🦊
Yay!

Bence Nagy underyx

🦊
Yay!
View GitHub Profile
View r2c-stats.json
{
"fallback": "The semgrep repo has 933 stars today",
"author_name": "Some cool stats",
"text": "The semgrep repo has 933 stars today"
}
View r2c-stats.json
{
"fallback": "The semgrep repo has 933 stars today",
"author_name": "Semgrape",
"author_icon": ":grape:",
"text": "The semgrep repo has 933 stars today"
}
View gist:6042073a3e464e7a60d542169e48f6a0
--------------------------------------------------------------------------------------------------------------------------------------- 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 (
View gist:536642bd2962f36dc511229d60e1c59d
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
View gist:7982569edfd41e64d9d4eff380413f72
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
View czc-headphones.py
#!/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 Jul 16, 2018
Get credits from rohlik
View rohlikovac.sh
#!/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 Jul 16, 2018
Syncs my wanikani review queue length to Beeminder
View wk2bm.py
#!/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()
View testy
#!/usr/bin/env python3
print('testy')