Skip to content

Instantly share code, notes, and snippets.

View andreicek's full-sized avatar
☘️

Andrei Zvonimir Crnković andreicek

☘️
View GitHub Profile
{
"features": {
"copilot": false
},
"theme": "One Light",
"buffer_font_size": 13,
"buffer_font_family": "MonoLisa Custom",
"tab_size": 2,
"language_overrides": {
"Elixir": {

openpgp4fpr:95842ddb8603ebd879cb90c5d0ea677fd93a75bc

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:

---
version: "2.1"
services:
wireguard:
image: linuxserver/wireguard
container_name: wireguard
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
@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
}
@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 / yubikey.md
Created January 17, 2018 20:35
Markdown my talk about GPG and Yubikey

Security with

[fit] Yubikey and GPG

--

@andreicek


@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 / 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

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: