Skip to content

Instantly share code, notes, and snippets.

View rymir's full-sized avatar
🏠
Working from home

Alexej Tessaro rymir

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rymir on github.
  • I am alexej (https://keybase.io/alexej) on keybase.
  • I have a public key ASAOkFHQ-LAKkFpOalOhW3az6eFe34mIre7XVAyrgKVAKwo

To claim this, I am signing this object:

Coding Maxims

  • code is debt (and bad code is a unhedged call option)
    • cant have 0-days or bugs if I dont write any code
    • our users dont care about the code
    • every line of code has costs (your time, readability, maintainability, complexity)
      • its like owning a house with lots of rooms. its nice when your friends come over once a month, but you pay rent every day
    • dont add features unless you're sure it is necessary
    • dont optimize prematurely
@rymir
rymir / awsauth
Created April 23, 2017 18:28
A simple helper script to generate dynamic AWS credentials using vault, authenticating using LDAP
#!/bin/bash
#
# This script:
# - Authorises a user against vault using LDAP
# - Generates AWS Access keys
# - Sets AWS Access key environment variables in all known formats
# - Writes ~/.aws/credentials
#
export VAULT_ADDR="https://YOUR_VAULT_HOSTNAME:8200"
### Keybase proof
I hereby claim:
* I am rymir on github.
* I am rymir (https://keybase.io/rymir) on keybase.
* I have a public key ASCfcMEcOM87RG1HDNXEF0Rxtf7s1-IY5x66_9KRWfsbjgo
To claim this, I am signing this object:
//
// UIImageUtil.swift
// MjOptimizer
//
// Created by fetaro on 2015/01/08.
// Copyright (c) 2015年 Shoken Fujisaki. All rights reserved.
//
import Foundation
import UIKit