Skip to content

Instantly share code, notes, and snippets.

View jaikoo's full-sized avatar
🗻
Working

Jonathan Conway jaikoo

🗻
Working
View GitHub Profile
BEGIN MESSAGE.
Bdi27aAuAu4VVko SF1k8ulIMo2PQaM 0et1Nr7zFRjMROW vxxElO463PrU57Z
cu1J9Hxwq2M5tHC FAoBjYlOTWdTCKq 6Xr2MZHgg6jXvMV nDWeobPOg2I3E0f
8iv6RQKqnD8YNcU uHEu3xDBtVveKGL K4Aywzs9MMQWd2T n6VBG2bDcyriPqe
pJe2yUYmUKmwqZd THhqEdjBy6e2iD4 iTxq621.
END MESSAGE.
@jaikoo
jaikoo / go_developer_spec.md
Last active February 6, 2019 12:05
Senior Go Developer

Senior Go Developer at Banked - Full time

Salary

Dependent on ability/potential. Preference on ability/potential rather than experience.

About

Banked is a London based Fintech, primarily working within the Open Banking/PSD 2.0 space. What does this mean? We help 3rd parties access and process financial data in ways that make it easy, useful and ultimately secure. We do all this while putting transparency and control back in the hands of the end user.

Requirements

Keybase proof

I hereby claim:

  • I am jaikoo on github.
  • I am jaikoo (https://keybase.io/jaikoo) on keybase.
  • I have a public key ASBO9suZKZba_02-9O2A512nbN8d2HbEr0sJff_Wv2XMqAo

To claim this, I am signing this object:

Mining parts
Motherboard either: https://www.amazon.co.uk/ASRock-H81-PRO-BTC-R2-0/dp/B01M5FQZYE/ref=sr_1_1?ie=UTF8&qid=1498643442&sr=8-1&keywords=btc+pro+motherboard
or
https://www.amazon.co.uk/Biostar-TB85-Intel-Socket-Motherboard/dp/B06VS94ZSF
CPU
https://www.amazon.co.uk/Intel-Celeron-G1840-Processor-LGA1150/dp/B00K5OJ0TS/ref=pd_lpo_vtph_107_lp_t_4?_encoding=UTF8&psc=1&refRID=QMZTF1YX8CMTS643V6PQ
Returns the internal DNS entries
--------------------------------
nodes=$(kubectl --kubeconfig=deploy/kubeconfig get nodes -o jsonpath='{range.items[*].metadata}{.name} {end}'); echo $nodes
Returns the public IP addresses
------------------------
nodes=$(kubectl --kubeconfig=deploy/kubeconfig get nodes -o jsonpath='{range .items[*].status.addresses[?(@.type=="ExternalIP")]}{.address} {end}'); echo $nodes
@jaikoo
jaikoo / gist:daf88024b8de1cf9339b
Created August 6, 2014 10:48
Force SSL for all request/feature tests in RSpec
config.before(:each) do
(request.env["rack.url_scheme"] = "https") if defined?(request) && request
end
@jaikoo
jaikoo / gist:6658963
Last active December 23, 2015 15:59
This is a rant. It's totally unscientific and emotional and should be taken as an old programmer blowing off steam.
  • Getting projects that rely on a particular version of X, Y or Z external software being installed to even boot up
  • Gems that rely on n number of other gems that are locked to a particular version - how many of us have had to fork an open source lib just to mess with the locked versions
  • Gems that rely on C extensions that are built against specific system installed libs
  • Running bundle update always seems to take way longer(1) on a non trivial project than in other ecosystems dependency management systems such as Clojure/Leningen or Node/npm etc

I'm not saying things are perfect in other languages. Heck, although I can just about use SBT I refuse use Scala because it seriously grates me in so many ways. And Go, which I love as a language has only recently started seeing some decent attempts with projects trying to deal with the difficult problem of dependency management.

I know some of my points above can be rectified by engineers just using a bit of common sense in their projects. I love writing apps

# Tested on Ubuntu 13.04 x64
# You need to set those environment variables
#```
# export DATABASE_USER=username_here
# export DATABASE_PASSWORD=password_here
# export DATABASE_NAME=database_name_here
# export DATABASE_ROOT_PASSWORD=database_root_password
# ```
# ON SERVER
@jaikoo
jaikoo / gist:4754975
Last active December 12, 2015 09:49
Answer to a recent LRUG question about downloading of images in parallel. I noticed everyone seemed to shy away from threads, but with j.u.c you get a lot for free including battle hardened concurrency semantics.
#!/usr/bin/env jruby
java_import java.util.concurrent.Executors
require 'net/http'
class ThreadedDownloader
def initialize(poolsize = 50)
@executor = Executors.new_fixed_thread_pool(poolsize)
end
@jaikoo
jaikoo / miniskirt.rb
Created June 3, 2012 13:39 — forked from stephencelis/minifacture.rb
Factory girl, relaxed.
# Factory girl, relaxed.
#
# Factory.define :user do |f|
# f.login 'johndoe%d' # Sequence.
# f.email '%{login}@example.com' # Interpolate.
# f.password f.password_confirmation('foobar') # Chain.
# end
#
# Factory.define :post do |f|
# f.user { Factory :user } # Blocks, if you must.