Skip to content

Instantly share code, notes, and snippets.

View vookimedlo's full-sized avatar

Michal Duda vookimedlo

View GitHub Profile
@vookimedlo
vookimedlo / CalculatorView.swift
Created July 7, 2019 06:07 — forked from nahuelDeveloper/CalculatorView.swift
An IBInspectable Calculator Construction Set
// CalculatorView.swift
// as seen in http://nshipster.com/ibinspectable-ibdesignable/
//
// (c) 2015 Nate Cook, licensed under the MIT license
import UIKit
/// The alignment for drawing an String inside a bounding rectangle.
enum NCStringAlignment {
case LeftTop
@vookimedlo
vookimedlo / git2dch.sh
Created April 20, 2019 20:33 — forked from nikicat/git2dch.sh
Shell script to regenerate debian changelog from git log
#!/bin/sh
sudo apt-get install -y moreutils git-buildpackage
>debian/changelog
prevtag=initial
pkgname=`cat debian/control | grep '^Package: ' | sed 's/^Package: //'`
git tag -l v* | sort -V | while read tag; do
(echo "$pkgname (${tag#v}) unstable; urgency=low\n"; git log --pretty=format:' * %s' $prevtag..$tag; git log --pretty='format:%n%n -- %aN <%aE> %aD%n%n' $tag^..$tag) | cat - debian/changelog | sponge debian/changelog
prevtag=$tag
@vookimedlo
vookimedlo / windows_batch.md
Created April 1, 2019 20:06
Windows Batch Scripts: Useful constructs

Change Current Directory to the Batch File Directory

cd /D "%~dp0"

@vookimedlo
vookimedlo / shell_shortcuts.md
Created January 22, 2019 18:36
Shell shortcuts
➜  bindkey
"^@" set-mark-command
"^A" beginning-of-line
"^B" backward-char
"^D" delete-char-or-list
"^E" end-of-line
"^F" forward-char
"^G" send-break
"^H" backward-delete-char
@vookimedlo
vookimedlo / interesting_unicode_chars.md
Created December 14, 2018 20:39
Interesting Unicode Characters

‼️💬⚠️ℹ️

@vookimedlo
vookimedlo / CURL Services.md
Last active November 22, 2018 19:03
Interesting CURL services

Weather

curl wttr.in/

curl wttr.in/Praha

External IP Address

curl checkip.amazonaws.com

Keybase proof

I hereby claim:

  • I am vookimedlo on github.
  • I am vookimedlo (https://keybase.io/vookimedlo) on keybase.
  • I have a public key ASBgHxNE138PO2O8UEAkuzU5h-FUeJYkZVtdGOlFdOvylwo

To claim this, I am signing this object:

@vookimedlo
vookimedlo / xcode-build-bump.sh
Created March 10, 2018 20:44 — forked from sekati/xcode-build-bump.sh
Xcode Auto-increment Build & Version Numbers
# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)
@vookimedlo
vookimedlo / MacOS: Tag files from command line.md
Last active January 9, 2018 18:34
MacOS: Tag files from command line
@vookimedlo
vookimedlo / Unicode Numbers
Last active December 19, 2017 22:11
Various Unicode Latin Number Sets
𝟎𝟏𝟐𝟑𝟒𝟓𝟔𝟕𝟖𝟗
𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡
𝟢𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟪𝟫
𝟬𝟭𝟮𝟯𝟰𝟱𝟲𝟳𝟴𝟵
𝟶𝟷𝟸𝟹𝟺𝟻𝟼𝟽𝟾𝟿
0123456789
0123456789
⁰¹²³⁴⁵⁶⁷⁸⁹