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 / 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 / Diagnostyka Gosund
Created October 7, 2020 19:14
Diagnostyka w aplikacji Gosund (ISP: Toya)
Zacznij diagnostykę
AppCode: com.gosund.smart
AppName: com.gosund.smart
AppVersion: 3.12.2
Device type: Xiaomi:Xiaomi:MI 9
System version: 10
Mobile operator: Orange
ISOCountryCode: pl
MobileCountryCode:
@olekstomek
olekstomek / zte_setband_2.0.py
Last active September 28, 2022 10:39
skrypt do ustawiania parametrów sygnału w modemie mobilnym 4G
import base64
import hashlib
import requests
import sys
#usage: python3 zte-setband_2.0 B1,B3,B7
router_ip = '192.168.100.1' #change to MF286D IP
password = 'password' #change to MF286D admin password
@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: "my@e-mail.com",
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)
@olekstomek
olekstomek / zte-v3.0a.js
Last active December 27, 2021 15:17
skrypt do pokazywania parametrów sygnału w modemie mobilnym 4G
javascript:ftb();function getStatus(){$.ajax({type:"GET",url:"/goform/goform_get_cmd_process",data:{cmd:"network_type,mcc,mnc,rssi,rsrq,lte_rsrp,wan_lte_ca,lte_ca_pcell_band,lte_ca_pcell_bandwidth,lte_ca_scell_band,lte_ca_scell_bandwidth,lte_ca_pcell_arfcn,lte_ca_scell_arfcn,Z_SINR,Z_CELL_ID,Z_eNB_id,Z_rsrq,lte_ca_scell_info,wan_ipaddr,ipv6_wan_ipaddr,static_wan_ipaddr,opms_wan_mode,opms_wan_auto_mode,ppp_status,loginfo",multi_data:"1"},dataType:"json",success:function(l){for(signal=l,vars=["mcc","mnc","rssi","network_type","wan_lte_ca","lte_rsrp","Z_SINR","rsrq","Z_CELL_ID","Z_eNB_id","lte_ca_pcell_bandwidth","lte_ca_pcell_band","lte_ca_scell_info"],e=0;e<vars.length;e++)window[vars[e]]=l[vars[e]];if(setgraph("rsrp",lte_rsrp,-130,-70),setgraph("rsrq",rsrq,-16,-3),enbid=Math.trunc(Z_eNB_id/256),plmn=mcc.toString()+mnc.toString(),$("#enbid").html(enbid),"22201"==plmn&&(plmn="2221"),"22299"==plmn&&(plmn="22288"),"22250"==plmn&&6==enbid.length&&(plmn="22288"),link_lte="https://lteitaly.it/internal/map.php#bts="+
program ColorPicker;
uses crt;
const
QuitKey = #27;
PrevKey = #75;
NextKey = #77;
var