Skip to content

Instantly share code, notes, and snippets.

View pingec's full-sized avatar

Matej Drolc pingec

View GitHub Profile
@pingec
pingec / akos_test.js
Last active April 15, 2023 15:07
akos speed test automation
//https://www.akostest.net/sl/
var oneMinute = 1000 * 60;
var oneHour = oneMinute * 60;
akosSpeedTest();
setInterval(()=>{
akosSpeedTest();
}, oneHour);
@pingec
pingec / bali_pack_list.md
Last active March 2, 2023 06:39
Bali pack list

Most to least used:

  • flip flops

  • quick dry mesh sneakers

  • no-show sports socks x 3

  • underwear x 5

  • thin hiking pants convertible into shorts (knee zippers), 2 zipper pockets (wallet + phone)

  • everyday outdoor t-shirt x 4

  • loose, thin cotton t-shirt for sleep / indoor work x 3

@pingec
pingec / .gitignore
Created November 6, 2019 17:25
Whitelist .msi files inside subdir of ignored dir
# Some trickery in order to ignore everything inside bin except bin/release/*.msi paths (rules 2 & 3 are necessary to force git to crawl release subfolder of bin)
# 1. Ignore all files in any bin folder at any subpath
**/[Bb]in/*
# 2. Unignore bin/release subfolder at any subpath so that git will crawl it
!**/[Bb]in/[Rr]elease
# 3. Ignore all files inside bin/release subfolder at any subpath
**/[Bb]in/[Rr]elease/*
# 4. But whitelist .msi files
!**/[Bb]in/[Rr]elease/*.msi
@pingec
pingec / waldo.js
Created September 12, 2019 17:21
https://github.com/angus-c/waldojs compiled for use in browser, search javascript objects / object tree
// https://github.com/angus-c/waldojs
function compare(value1, value2) {
if (value1 === value2) {
return true;
}
/* eslint-disable no-self-compare */
// if both values are NaNs return true
if ((value1 !== value1) && (value2 !== value2)) {
@pingec
pingec / windows_utils.md
Created September 6, 2019 10:39
Windows utils list
### Keybase proof
I hereby claim:
* I am pingec on github.
* I am pingo (https://keybase.io/pingo) on keybase.
* I have a public key ASCb2oS8GN6jMQ6bPwu1et9uLs4fcj9BVPvWcNn_oISlMQo
To claim this, I am signing this object:
@pingec
pingec / bitstampTxRunningBalance.js
Last active June 30, 2019 23:50
Expand bitstamp transactions page with running balance in USD in BTC
function processBitstampTx(balanceEur = 0, balanceUsd = 0, balanceBtc = 0, account = "Main Account"){
const balances = { };
function deposit(textAmount){
console.log("%cDeposit: " + textAmount, "color:green");
const split = textAmount.split(" ");
@pingec
pingec / submodule_remove.txt
Created May 16, 2019 19:24
Remove submodule
To remove a submodule you need to:
Run git rm --cached <submodule name>
Delete the relevant lines from the .gitmodules file.
Delete the relevant section from .git/config.
Commit
Delete the now untracked submodule files.
Remove directory .git/modules/<submodule name>
@pingec
pingec / Vlaganje_oliv.md
Last active November 21, 2022 18:20
Vlaganje oliv

Zeleni plodovi:

  • Siviljski način - plodove potapljamo v 1-3% NaOH 20 - 25 stopinj celzija da se plodovi razgrenijo in niso več trpki 8 do 12 ur. Plodove operemo z vodo 3 do 4 dni, menjamo vodo na 6-12 ur. Industrija postopek pospeši tako, da nadomesti vodo s kislino. Sledi fermentacija v 7-9% slanici ki ima 3 faze in traja 30 - 60 dni. Kasneje lahko plodove razkoščičimo in napolnimo s povrtninami ali mesom.
  • Kastelvetranski način (Sicilija, J. Italija) - plodovi se namakajo direkt v 7-9% slanici zmešani z 1.8-2.5% NaOH. Tri mesece. Način manj razširjen zaradi višje pokvarljivosti.
  • Naravni način - Plodove namakamo v 8-10% slanici. Lahko dodajamo zelišča. Postopek dolgotrajen 6-9 mesecev, manj primeren za industrijo.
  • Način picholine (Francija) - vlaganje sorte picholine - 12 ur v 3-5% sodi nato 8-10 dni v 3-7% slanici.

Črni plodovi:

  • Grški način (naravni način) - plodove namakamo v slanici 6-12 mesecev - najbolj razširjen način v mediteranu z različnim variacijami močnosti sla
@pingec
pingec / BitstampTransactionsToCsv.js
Created February 11, 2019 11:39
Dumps bitstamp transactions from html table to csv string (including transaction IDs)
/* Dumps bitstamp transactions from html table to csv string (including transaction IDs) */
let bitStampTrxToCsv = () => {
let trxs = $("table.transactions").find("tr");
let csv = "";
for (let i = 0; i < trxs.length - 1; i++) {
if (trxs.eq(i).is(".details")) {