Skip to content

Instantly share code, notes, and snippets.

@nebjak
nebjak / stats.md
Last active August 8, 2023 07:28
GitHub Stats

GitHub stats

boost-license1_54_0-1.54.0-11.2.noarch
update-alternatives-1.16.10-9.4.x86_64
libcom_err2-1.42.11-10.2.x86_64
libpython3_4m1_0-3.4.1-6.2.x86_64
libusb-1_0-0-1.0.20-1.1.x86_64
libgcc_s1-5.2.1+r226025-4.2.x86_64
libext2fs2-1.42.11-10.2.x86_64
libbz2-1-1.0.6-30.4.x86_64
libnettle4-2.7.1-9.1.x86_64
libzio1-1.00-11.4.x86_64
➜ ~ time tar cJf thunderbird.tar.xz .thunderbird
tar cJf thunderbird.tar.xz .thunderbird 497.81s user 6.82s system 100% cpu 8:21.31 total
➜ ~ time tar czf thunderbird.tar.gz .thunderbird
tar czf thunderbird.tar.gz .thunderbird 48.49s user 2.13s system 96% cpu 52.311 total
➜ ~ time tar cjf thunderbird.tar.bz2 .thunderbird
tar cjf thunderbird.tar.bz2 .thunderbird 127.37s user 2.14s system 100% cpu 2:08.98 total
➜ ~ l thunderbird.tar.*
-rw-rw-r--. 1 nebjak nebjak 404M Jul 23 09:10 thunderbird.tar.bz2
-rw-rw-r--. 1 nebjak nebjak 417M Jul 23 09:07 thunderbird.tar.gz
-rw-rw-r--. 1 nebjak nebjak 391M Jul 23 09:02 thunderbird.tar.xz

Keybase proof

I hereby claim:

  • I am nebjak on github.
  • I am nebjak (https://keybase.io/nebjak) on keybase.
  • I have a public key whose fingerprint is B1EA 8ED6 8E21 6344 220D AB5C 2524 9628 ED3B CDC6

To claim this, I am signing this object:

@nebjak
nebjak / CompanyFactory.rb
Created July 3, 2013 09:45
FactoryGirl definicija :-)
FactoryGirl.define do
factory :company do
naziv "Test Company doo za proizvodnju, promet i usluge"
skraceni_naziv "Test Company doo"
pib "101010101"
mb "10101010"
adresa "Palih programera 64b"
mesto
ptt_broj
pak "101010"
@nebjak
nebjak / NBS-pretraga-racuna
Created May 31, 2013 16:24
Pretraga računa preko Nardodne Banke Srbije
Osnovni URL
-----------
http://www.nbs.rs/rir_pn/pn_rir.html.jsp?type=rir_results&lang=SER_CIR&konverzija=yes&
Moguća pretrga po
-----------------
--------------------------------------------
| Podatak | ključ |
--------------------------------------------
@nebjak
nebjak / serbia_zip_codes.csv
Last active December 4, 2017 14:13
List of Serbia zip codes with cities in CSV
zip_code city
11000 Beograd
11010 Beograd Vozdovac
11030 Beograd Čukarica
11050 Beograd Zvezdara
11060 Beograd Palilula
11070 Novi Beograd
11080 Beograd Zemun
11090 Beograd Rakovica
11130 Kaluđerica
@nebjak
nebjak / serbia_zip_codes2.json
Created May 20, 2013 11:24
List of Serbia zip codes with cities in form of one JSON object per line
{ "city" : "Beograd", "_id" : 11000 }
{ "city" : "Beograd Vozdovac", "_id" : 11010 }
{ "city" : "Beograd Čukarica", "_id" : 11030 }
{ "city" : "Beograd Zvezdara", "_id" : 11050 }
{ "city" : "Beograd Palilula", "_id" : 11060 }
{ "city" : "Novi Beograd", "_id" : 11070 }
{ "city" : "Beograd Zemun", "_id" : 11080 }
{ "city" : "Beograd Rakovica", "_id" : 11090 }
{ "city" : "Kaluđerica", "_id" : 11130 }
{ "city" : "Rušanj", "_id" : 11194 }
@nebjak
nebjak / serbia_zip_codes.json
Last active February 22, 2021 11:04
List of Serbia zip codes with cities in form of JSON array
[
{ "city" : "Beograd", "_id" : 11000 },
{ "city" : "Beograd Vozdovac", "_id" : 11010 },
{ "city" : "Beograd Čukarica", "_id" : 11030 },
{ "city" : "Beograd Zvezdara", "_id" : 11050 },
{ "city" : "Beograd Palilula", "_id" : 11060 },
{ "city" : "Novi Beograd", "_id" : 11070 },
{ "city" : "Beograd Zemun", "_id" : 11080 },
{ "city" : "Beograd Rakovica", "_id" : 11090 },
{ "city" : "Kaluđerica", "_id" : 11130 },
@nebjak
nebjak / wma2mp3.sh
Created May 13, 2013 06:45
Convert .wma audio files to .mp3 to subdirectory *mp3*
for i in *.wma; do ffmpeg -i $i mp3/${i%.wma}.mp3; done