Skip to content

Instantly share code, notes, and snippets.

View kotnik's full-sized avatar

Nikola Kotur kotnik

View GitHub Profile
import time
import contextlib
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
FB_USER = "YOUR FACEBOOK MAIL"
FB_PASS = "YOUR FACEBOOK PASSWORD"
backoff_time = 5
#!/bin/bash
if [[ -z "$1" ]]; then
echo "Need filename"
exit 1
fi
file_ext=$(echo $1 |awk -F . '{if (NF>1) {print $NF}}')
file=$(mktemp /tmp/XXXXXX.$file_ext)
cp "$1" $file
Package: lxc-templates
Architecture: linux-any
Depends: lxc (>= 0.8.0), ${misc:Depends}
Recommends: busybox-static,
debootstrap | cdebootstrap,
openssl,
rsync,
uuid-runtime,
xz-utils
Suggests: qemu-user-static
Verifying that +kotnik is my Bitcoin username. You can send me #bitcoin here: https://onename.io/kotnik
api = 2
core = 7.x
; Drupal core.
projects[drupal][type] = core
projects[drupal][version] = 7.32
projects[drupal][patch][] = "https://drupal.org/files/issues/install-redirect-on-empty-database-728702-36.patch"
; Platform indicator module.
projects[platform][version] = 1.2
$ git push
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 567 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
Processing activity environment.push
Found 1 new commit.
@kotnik
kotnik / battery_check.py
Created October 23, 2014 09:45
Change background to red on low battery.
#!/usr/bin/env python3
import os
import time
import argparse
from subprocess import check_call
def cli_options():
parser = argparse.ArgumentParser()
parser.add_argument(
#!/usr/bin/env python3
import fileinput
import json
import statistics
def pr_line(i, j, k):
print("%s %s %s" % (i.ljust(40), j.rjust(10), k.rjust(10)))
def main():

Keybase proof

I hereby claim:

  • I am kotnik on github.
  • I am kotnik (https://keybase.io/kotnik) on keybase.
  • I have a public key whose fingerprint is CED8 F1EC DADD 599B 1215 70B5 C392 619A D8C0 813B

To claim this, I am signing this object:

www.rts.rs
www.blic.rs
www.b92.net
www.kurir-info.rs
www.novosti.rs
www.24sata.rs
www.mondo.rs
smedia.rs
www.limundo.com
www.kupujemprodajem.com