Skip to content

Instantly share code, notes, and snippets.

View olekstomek's full-sized avatar
:octocat:
Focusing

Tomasz Oleksik olekstomek

:octocat:
Focusing
View GitHub Profile
@olekstomek
olekstomek / iperf-OpenWrt-result
Created November 6, 2024 22:44
iperf3 -c 127.0.0.1 on router with OpenWtr TP-Link TL-MR3420 v5
iperf3 homepage at: https://software.es.net/iperf/
Report bugs to: https://github.com/esnet/iperf
root@OpenWrt:~# iperf3 -s -D && iperf3 -c 127.0.0.1
Connecting to host 127.0.0.1, port 5201
[ 5] local 127.0.0.1 port 51916 connected to 127.0.0.1 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 45.2 MBytes 379 Mbits/sec 0 639 KBytes
[ 5] 1.00-2.00 sec 45.5 MBytes 382 Mbits/sec 0 639 KBytes
[ 5] 2.00-3.00 sec 47.2 MBytes 396 Mbits/sec 0 639 KBytes
[ 5] 3.00-4.00 sec 45.2 MBytes 380 Mbits/sec 0 639 KBytes
@olekstomek
olekstomek / index.html
Last active November 10, 2024 19:21
prosta implementacja do rozgrywki teleturnieju typu Awantura o Kasę
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bitwa na Pasmo</title>
<style>
body {
display: flex;
flex-direction: column;
@olekstomek
olekstomek / index.html
Last active June 4, 2024 07:18
Multistream z gniazd ptaków na wieżach stacji bazowych Orange
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multi wideo - gniazda ptaków na masztach Orange Polska S.A.</title>
<style>
body {
margin: 0;
padding: 0;
<?xml version='1.0' encoding='UTF-8' standalone='no' ?>
<opml version="1.0">
<head>
<title>Google Podcasts Feeds</title>
</head>
<body>
<outline text="feeds">
<outline xmlUrl="https://anchor.fm/s/22b76b4c/podcast/rss" type="rss" text="AI po godzinach" />
<outline xmlUrl="https://www.spreaker.com/show/4194770/episodes/feed" type="rss" text="Podcast Oli Kunysz" />
<outline xmlUrl="https://www.cybsecurity.org/feed/podcast/" type="rss" text="Cyber, cyber..." />
@olekstomek
olekstomek / log.txt
Created November 6, 2023 23:12
Log z PRO Speed Test na Windows (narzędzie certyfikowate przez UKE) pomiar łącza Orange FTTH
2023-11-07 12:02:33 ------ ### ROZPOCZĘTO NOWY TEST ###
2023-11-07 12:02:33 ------ testowanie serwerów
2023-11-07 12:02:33 ------ waw34.fireinfra.net 9113
2023-11-07 12:02:33 ------ testowanie serwera: 51.83.204.233:9113
2023-11-07 12:02:33 ------ waw32.fireinfra.net 9113
2023-11-07 12:02:33 ------ testowanie serwera: 51.75.42.4:9113
2023-11-07 12:02:33 ------ waw35.fireinfra.net 9113
2023-11-07 12:02:33 ------ testowanie serwera: 51.38.158.8:9113
2023-11-07 12:02:33 ------ waw31.fireinfra.net 9113
[
{
"Currency Code": "AFN",
"Name": "Afghan Afghani"
},
{
"Currency Code": "ALL",
"Name": "Albanian Lek"
},
{
[
{
"Country code": "ad",
"Country": "Andorra",
"Region": "EMEA"
},
{
"Country code": "ae",
"Country": "United Arab Emirates",
"Region": "EMEA"
@olekstomek
olekstomek / speedtest-cli.txt
Last active August 20, 2023 23:08
Oracle Cloud (Frankfurt) -> Orange PL speedtest cli
ubuntu@instance-20230722-2257:~$ speedtest --version
Speedtest by Ookla 1.2.0.84 (ea6b6773cf) Linux/aarch64-linux-musl 5.15.0-1038-oracle aarch64
ubuntu@instance-20230722-2257:~$ speedtest -s 7200
Speedtest by Ookla
Server: Orange Polska S.A. - Gdansk (id: 7200)
ISP: Oracle Cloud
Idle Latency: 25.82 ms (jitter: 0.09ms, low: 25.73ms, high: 25.92ms)
@olekstomek
olekstomek / Kod.gs
Last active April 22, 2022 08:03
Apps Script trigger - check dane.gov.pl/source-code and send email if new version
function checkDaneGovPlSourceCode() {
const scrappedTextFromWebsite = UrlFetchApp.fetch('https://dane.gov.pl/source-code/').getContentText();
if (scrappedTextFromWebsite.includes(formatDate(new Date()))) {
MailApp.sendEmail({
to: "[email protected]",
subject: "Nowa wersja kodu dane.gov.pl!",
htmlBody: scrappedTextFromWebsite + "</ br> https://dane.gov.pl/source-code/"
});
Logger.log('E-mail was sent.');
} else {
@olekstomek
olekstomek / zte286d.sh
Last active December 27, 2021 15:17
skrypt do pokazywania parametrów sygnału w modemie mobilnym 4G
#!/bin/sh
HOST=192.168.32.1
PASSWORD=admin
HEADER="Referer: http://$HOST/index.html"
P=$(echo -n "$PASSWORD" | base64 -w0 | sha256sum | awk '{print toupper($1)}')
A=$(wget -t 3 -q -O - --save-cookies cookies.txt --keep-session-cookies --header="$HEADER" --post-data "isTest=false&goformId=LOGIN&password=$P" http://$HOST/goform/goform_set_cmd_process)