Skip to content

Instantly share code, notes, and snippets.

View lukaswoj's full-sized avatar

Łukasz Wojciechowski lukaswoj

View GitHub Profile
# here is how you can build locally kwin-bismuth package that in 3.1.4-4build2 comes broken unfortunately for Kubuntu 24.04
# from main system
sudo apt-get install kwin-bismuth
git clone https://github.com/Bismuth-Forge/bismuth.git
cd bismuth
git checkout v3.1.4
docker run --rm -it --volume `pwd`:/app --workdir /app ubuntu
# from inside the container
@lukaswoj
lukaswoj / extract_mbank_loan_history.js
Last active February 5, 2017 01:17
You can extract into json history of your mBank mortage
var table = {};
table.data = $('#scheduleDetails > div.data > table > tbody > div > div.jspPane > tr > td:nth-child(1)').map(function(x, y){return y.textContent.trim()}).toArray();
table.dataksiegowania = $('#scheduleDetails > div.data > table > tbody > div > div.jspPane > tr > td:nth-child(2)').map(function(x, y){return y.textContent.trim()}).toArray();
table.opis = $('#scheduleDetails > div.data > table > tbody > div > div.jspPane > tr > td:nth-child(3)').map(function(x, y){return y.textContent.trim()}).toArray();
table.kwota = $('#scheduleDetails > div.data > table > tbody > div > div.jspPane > tr > td:nth-child(4)').map(function(x, y){return y.textContent.trim()}).toArray();
table.kwotadosplaty = $('#scheduleDetails > div.data > table > tbody > div > div.jspPane > tr > td:nth-child(5)').map(function(x, y){return y.textContent.trim()}).toArray();
JSON.stringify(table);
@lukaswoj
lukaswoj / extract_bitbucket_repository_names.js
Last active January 19, 2017 11:11
With this gist you can go over all subpages of repository list in bitbucket and extract list of them all
// 1. Go to https://bitbucket.org/dashboard/repositories?page=1
// launch below two lines in developer console
var cssSelector = '#repositories-pjax > div > section > table > tbody > tr > td.repo-list--repo-column > div > a';
var bbRepositories = [];
// launch below statement once on 1st page, then go to 2nd page and launch it again and until you go through all pages
$(cssSelector).each(
function(index, el) {
bbRepositories.push(el.attributes.href.nodeValue.split('/')[2]);
}