Skip to content

Instantly share code, notes, and snippets.

View kvbik's full-sized avatar

Jakub Vysoký kvbik

View GitHub Profile

Keybase proof

I hereby claim:

  • I am kvbik on github.
  • I am kvbik (https://keybase.io/kvbik) on keybase.
  • I have a public key ASAkBk-4on0EHqAwp69X3Cxw0hHo_44sk6JctMNHkruRbwo

To claim this, I am signing this object:

@kvbik
kvbik / min-pro-tatu.py
Last active May 3, 2017 10:36
min() a max() tatuv ukol
class WeNeedArgumentsException(Exception):
pass
def min(*args, key=lambda x: x):
sequence = args
if len(args) == 1:
sequence = args[0]
if len(sequence) == 0:
raise WeNeedArgumentsException('we need arguments')
#!/bin/bash
# git clone https://gist.github.com/kvbik/2f90a73d3acd9fb1ef4d2a45c5f9cfe8
# current macos wifi connection, thx to
# https://apple.stackexchange.com/questions/81221/how-do-i-get-wi-fi-info-from-within-terminal
W=$(
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | \
sed -n '/^[ ]*SSID: / s/^[ ]*SSID: //p'
)
@kvbik
kvbik / 00-nastaveni.txt
Last active December 10, 2016 16:11
pyworking 2016/12/10 django
Nastavit http://bit.ly/pyworking-prg-01
=======================================
* Pythonanywhere.com - ucet
* Github.com - ucet
* Vytvorit na https://github.com repository "prvniblog"
- Initialize with README
- Add .gitignore Python
- Create repository
@kvbik
kvbik / Dockerfile
Created October 28, 2015 17:50
simple container based on ubuntu including python and gis (geo stuff)
FROM ubuntu:trusty
RUN apt-get update
RUN apt-get install -qyy \
-o APT::Install-Recommends=false -o APT::Install-Suggests=false \
binutils libproj-dev gdal-bin \
libpq-dev python-dev libxml2-dev libxslt1-dev libffi-dev xmlsec1 \
python2.7 unzip virtualenvwrapper
WORKDIR /app
@kvbik
kvbik / pull.sh
Created May 5, 2015 20:12
quick and hacky shell script for transforming github issue to a pull request
#!/bin/bash
# all credits and thx to http://stackoverflow.com/a/4529172
[[ $1 ]] && ISSUE=$1 || exit
[[ $2 ]] && BRANCH=$2 || exit
[[ $3 ]] && BASE=$3 || BASE=master
OWNER=walksource
REPO=roomstorm-backend
[color]
status = auto
diff = auto
branch = auto
[alias]
st = status
ci = commit
co = checkout
[core]
@kvbik
kvbik / screenrc
Created January 26, 2015 12:56
my config for gnu screen
# include default settings
source /etc/screenrc
# disable startup
startup_message off
# set bottom line
hardstatus alwayslastline "%{= dc}%-Lw%{= dw}%{!b}%n*%f %t%{!b}%{= dc}%+Lw%=[ %H ] %d.%m.%Y %c:%s"
# default term variable
@kvbik
kvbik / alias.sh
Created November 21, 2014 01:25
nechte si @napyvo pred @starenka chvili odemceny notebook a vase produktivita je ta tam :)) https://twitter.com/kvbik/status/535605055760924674
#alias vi=vim
alias vi=emacs
#alias g=git
alias g=hg
#alias rm_pyco='find . -name "*.py[co]" -exec rm -v {} \;'
alias rm_pyco='echo banik'
Verifying that +kvbik is my Bitcoin username. You can send me #bitcoin here: https://onename.io/kvbik