Skip to content

Instantly share code, notes, and snippets.

@nivertech
nivertech / gist:8f3e9964168e7cc67c29
Created April 1, 2015 21:45
missing wx dependencies when building Erlang/OTP 17.5 on Ubuntu 12.04
$:~/Downloads/otp_src_17.5$ ./configure | grep wx
configure: configuring in wx/.
configure: running /bin/bash '/home/zvi/Downloads/otp_src_17.5/lib/wx/./configure' --prefix=/usr/local '--prefix=/usr/local' '--cache-file=/dev/null' '--srcdir=/home/zvi/Downloads/otp_src_17.5/lib' --cache-file=/dev/null --srcdir=/home/zvi/Downloads/otp_src_17.5/lib/wx/.
checking for debug build of wxWidgets... checking for wx-config... /usr/local/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=yes)... yes (version 3.0.1)
checking for wxWidgets static library... no
checking for standard build of wxWidgets... checking for wx-config... (cached) /usr/local/bin/wx-config
checking for wxWidgets version >= 2.8.4 (--unicode --debug=no)... yes (version 3.0.1)
checking for wxWidgets static library... no
@nivertech
nivertech / aws_signature_v4.py
Created December 15, 2014 12:00
sign AWS Lambda HTTP API request - using AWS Version 4 signature
# AWS Version 4 signing example
# taken from:
# http://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html
# Lambda API (InvokeAsync)
# http://docs.aws.amazon.com/lambda/latest/dg/API_InvokeAsync.html
# See: http://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html
# This version makes a POST request and passes request parameters
# in the body (payload) of the request. Auth information is passed in
@nivertech
nivertech / DDD, CQRS & ES.md
Created January 25, 2022 12:09 — forked from rasheedamir/DDD, CQRS & ES.md
DDD, CQRS & ES!

To implement command processing we need the following pieces:

  • Commands which request that something should happen, i.e. some state change
  • Events which indicate that something has happened
  • Aggregates that handles Commands and generates Events based on the current state
  • Event store which stores all events that has happened
  • Application services that receives Commands and routes it to the appropriate aggregate

https://github.com/rasheedamir/event-sourcing-in-practice

name: Elixir CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
MIX_ENV: test
@nivertech
nivertech / amazon.md
Created December 30, 2016 21:34 — forked from anonymous/amazon.md
Amazon Noncompete and Invention Assignment

I recently received a job offer from Amazon AWS. The pay and benefits are quite decent. I do really like the role and it would be work that interests me. The people that I have met so far in interviews are great.

What I do not like is the documents I have to sign to get started. They include stuff like this:

"ATTENTION AND EFFORT. During employment, Employee will devote Employee’s entire productive time, ability, attention, and effort to

Keybase proof

I hereby claim:

  • I am nivertech on github.
  • I am nivertech (https://keybase.io/nivertech) on keybase.
  • I have a public key ASBH-B46fr8ZOZH514tlt8-bAix6N7UAhhMXU19TPDOLbQo

To claim this, I am signing this object:

@nivertech
nivertech / ants.clje
Created April 16, 2020 19:35 — forked from devstopfix/ants.clje
Rich Hickey's ants simulator ported to Clojure on the BEAM
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are covered by the
; Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
; which can be found in the file CPL.TXT at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; the terms of this license.
; You must not remove this notice, or any other, from this software.
;
; Original Clojure JVM code :- https://gist.github.com/michiakig/1093917

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Hello World - Google Web Search API Sample</title>
<script src="https://www.google.com/jsapi"
type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-2.1.4.min.js" ></script>
<script language="Javascript" type="text/javascript">
//<!