Skip to content

Instantly share code, notes, and snippets.

View vlastikcz's full-sized avatar

Vlastimil K vlastikcz

View GitHub Profile
@vlastikcz
vlastikcz / python-web2py PKGBUILD
Created May 31, 2013 20:06
python-web2py PKGBUILD
pkgname=python-web2py
pkgver=2.4.7
pkgrel=1
pkgdesc="Free open source full-stack framework for rapid development of fast, scalable, secure and
portable database-driven web-based applications. Written and programmable in Python. "
arch=('i686' 'x86_64')
url="http://www.web2py.com"
license=('LGPL3')
depends=('python2')
makedepends=('unzip')
pkgname=602xmlfiller
pkgver=4.52.0.3_13.0725
pkgrel=1
pkgdesc="Application for filling in and submitting smart forms (ZFO) or work with form applications on desktop PC environment"
url="http://www.602.eu/form-filler"
arch=('i686' 'x86_64')
license=('custom')
depends=('nss')
if [[ $CARCH == 'i686' ]]; then
@vlastikcz
vlastikcz / designer.html
Created August 18, 2014 21:14
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@vlastikcz
vlastikcz / StringJoiner (JDK 1.8)
Last active December 12, 2019 18:28
IntelliJ Idea - toString() template w/ StringJoiner
public java.lang.String toString() {
return new StringJoiner(", ", "$class.name{", "}")
#set($i = 0)
#foreach($member in $members)
#if(!$member.modifierStatic)
#if($member.primitiveArray || $member.objectArray)
.add("$member.name=" + java.util.Arrays.toString($member.name))
#elseif ($member.string)
.add("$member.name='" + $member.accessor + "'")
#else
@vlastikcz
vlastikcz / Barcamp Brno 2015.md
Last active May 1, 2017 20:07
Barcamp Brno 2015 - conference notes

How is made the Booking.com

Jan Pospíšil (@korel_cz)

  • spent 1.5 years working in Amsterdam
  • teams are working by compenents - menu, featured widget, hotel listing, hotel detail page...
  • but it is not an issue if one team changes another's team component -> developers are expected to be intelligent enough to know their limits and experience
  • each team can work as they want (some teams use Jira, some not and preffer blackboard or sticky notes...)

Core technologies

Keybase proof

I hereby claim:

  • I am vlastikcz on github.
  • I am vlastikcz (https://keybase.io/vlastikcz) on keybase.
  • I have a public key ASDxBeeSlwR6273lPcDoV57F6LcnO_LNKasf3rlYUj4HTAo

To claim this, I am signing this object:

@vlastikcz
vlastikcz / Autofill OpenVPN OTP with Tunnelblick.md
Last active April 27, 2021 22:31
Autofill OpenVPN OTP on MacOS with Tunnelblick

Autofill OpenVPN OTP

On MacOS with Tunnelblick.

brew install oath-toolkit
mkdir ~/Documents/my-vpn.tblk
cp ~/Downloads/profile.ovpn ~/Documents/my-vpn.tblk/
printf "#!/bin/bash\n/usr/local/bin/oathtool --totp -b -d 6 {OTP_KEY_HERE}" > ~/Documents/my-vpn.tblk/static-challenge-response.user.sh
chmod +x ~/Documents/my-vpn.tblk/static-challenge-response.user.sh