Skip to content

Instantly share code, notes, and snippets.

View andreicek's full-sized avatar
☘️

Andrei Zvonimir Crnković andreicek

☘️
View GitHub Profile
@andreicek
andreicek / README.md
Last active December 21, 2015 15:39
Swiss Croatian keyboard layout for OSX and MacBook Air/Pro

Swiss Croatian Keyboard Layout

I made this since the new MacBook Air that I am planning on buying has a weird Swiss keyboard with a bunch of keys that I don't use and a bunch missing that I do use.

##The layout

Animated layout

##Installation procedure

Keybase proof

I hereby claim:

  • I am andreicek on github.
  • I am andre1cek (https://keybase.io/andre1cek) on keybase.
  • I have a public key ASAk4tPVgKKlZ_NYEoLI2jjStqIAEufsAPt8cmC1BG7J8wo

To claim this, I am signing this object:

@andreicek
andreicek / 0_DELETE_MULTIPLE_S3.md
Last active June 9, 2017 12:17
Delete multiple files from s3

Usage

  1. Clone this git clone https://gist.github.com/01f95213129dfeaf4ebf80decfe27c4c.git
  2. Have all object to be deleted in a file (e.g. files.txt) separated by new line
  3. Have AWS CLI configured
  4. Run the whole thing
echo files.txt | ./delete.sh
@andreicek
andreicek / index.js
Last active July 30, 2017 07:11
Enpass CSV to pass
const fs = require('fs');
const {spawn} = require('child_process');
function read() {
return new Promise((resolve) => {
fs.readFile('./pass.csv', 'UTF-8', (_, data) => resolve(data));
});
}
function objectify(item) {
@andreicek
andreicek / yubikey.md
Created January 17, 2018 20:35
Markdown my talk about GPG and Yubikey

Security with

[fit] Yubikey and GPG

--

@andreicek


@andreicek
andreicek / be-more-productive-with-mobx-cpf.md
Last active February 20, 2018 08:41
Be more productive with MobX CPF

Abstract

Imagine a world where your state management has less boilerplate and code that is both easier to understand and faster to write. And now imagine that it's as scalable as insert your library here. This talk shows you that not only frameworks benefit from a functional and straightforward state management solution.

Details

The talk will focus on the ideas of MobX and how the library works (a simple pub-sub implementation) instead of on focusing on React and integration with React or any other framework.

ToC:

  • what is state management
@andreicek
andreicek / musicsort.sh
Created February 23, 2018 22:12
Finds all mp3 and sorts them in a flat strucutre
#!/usr/bin/env bash
musicFolder=$1
dist=$2
function usage() {
echo $1
exit 1
}
---
version: "2.1"
services:
wireguard:
image: linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:

Keybase proof

I hereby claim:

  • I am andreicek on github.
  • I am 0x7f (https://keybase.io/0x7f) on keybase.
  • I have a public key ASChxzjMOAKEDR0OJMljBd0P_wcK_My7zJgL-YStC5dWWAo

To claim this, I am signing this object:

openpgp4fpr:95842ddb8603ebd879cb90c5d0ea677fd93a75bc