Skip to content

Instantly share code, notes, and snippets.

View bjartek's full-sized avatar
💭
No power in the verse can stop me

Bjarte S. Karlsen bjartek

💭
No power in the verse can stop me
  • Shiny && Find && Versus
  • Lillesand, Norway
  • X @0xBjartek
View GitHub Profile
DEBU[0048] 🎁 GetLatestBlock called blockHeight=11 blockID=c6a3cac787516a25b81620eb7138e49ca1e8026aa4da6eff28c458924cd95d4e
DEBU[0048] 👤 GetAccount called address=192440c99cb17282
fatal error: concurrent map writes
goroutine 140 [running]:
runtime.throw(0x4d7372c, 0x15)
runtime/panic.go:1116 +0x72 fp=0xc0011b0738 sp=0xc0011b0708 pc=0x4036b92
runtime.mapassign_faststr(0x4bd6e60, 0xc00069ec60, 0xc000c25c80, 0x20, 0xc000c25c80)
runtime/map_faststr.go:211 +0x3f7 fp=0xc0011b07a0 sp=0xc0011b0738 pc=0x4015fc7
github.com/dapperlabs/flow-go/fvm/state.MapLedger.Get(...)
val saleMap = listOf("foo" to 1)
val smsToGen = listOf(1)
val result: List<Pair<String, Int>> = smsToGen.mapNotNull { sms ->
val found = saleMap.find { it.second == sms }
if (found == null) {
logger.debug("adfs")
}
ending build context to Docker daemon 3.072kB
Step 1/2 : FROM fedora:rawhide
---> 5292e27c6dac
Step 2/2 : RUN dnf --repofrompath f29-build,http://kojipkgs.fedoraproject.org/repos/f29-build/latest/x86_64/ --repo f29-build install jre-10-headless && dnf clean all
---> Running in caf86ad878ed
Added f29-build repo from http://kojipkgs.fedoraproject.org/repos/f29-build/latest/x86_64/
f29-build 258 kB/s | 56 MB 03:40
Last metadata expiration check: 0:02:49 ago on Thu May 17 20:31:52 2018.
Dependencies resolved.
================================================================================
Step 1/2 : FROM fedora:rawhide
---> 5292e27c6dac
Step 2/2 : RUN dnf --repofrompath f29-build,http://kojipkgs.fedoraproject.org/repos/f29-build/latest/x86_64/ --repo f29-build install java-10-openjdk && dnf clean all
---> Running in ab337f6a6215
Added f29-build repo from http://kojipkgs.fedoraproject.org/repos/f29-build/latest/x86_64/
f29-build 210 kB/s | 56 MB 04:31
Last metadata expiration check: 0:02:49 ago on Thu May 17 20:25:37 2018.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
Step 2/2 : RUN microdnf install --nodocs jre-10-headless && microdnf clean all
---> Running in d35a2925581d
Downloading metadata...
Downloading metadata...
Package Repository Size
Installing:
copy-jdk-configs-3.3-9.fc28.noarch updates 25.4 kB
findutils-1:4.6.0-19.fc28.x86_64 updates 539.1 kB
freetype-2.8-10.fc28.x86_64 fedora 392.9 kB
java-1.8.0-openjdk-headless-1:1.8.0.171-4.b10.fc28.x86_64 updates 33.4 MB
Lets say you have a DeploymentConfig that is running two containers.
- a nginx container with static content
- a nodejs container
Both of these containers are deployed with the same version.
How do you ensure that they are always delpoyed with the same version?
If you use ImageChangeTriggers on both of them then will there not be a small time where one of them can run another version then the other?

What we would like to have

  • A way to tag in the imagestream GUI.
  • A way to import the imaggestream in the GUI
  • Filter the tags in the imagestream. Lets say filter all tags that are aliases, all tags that are scheduled.

Why do we want it

Lets say we have an group in our organization that is called workflow. They have an application called ticket that they want to deploy into several environemnts for different kinds of testing. These environments are called st and at.

Keybase proof

I hereby claim:

  • I am bjartek on github.
  • I am bjartek (https://keybase.io/bjartek) on keybase.
  • I have a public key whose fingerprint is 0CD3 4721 3562 EE8A 9205 F962 E67C 99A5 626B 2F3A

To claim this, I am signing this object:

@bjartek
bjartek / mongoimport_negative_date
Created April 5, 2012 21:29
Error when importing date before epoch
Env:
Mac os X: 10.7.3
Mongo DB: 2.0.4 installed from homebrew
~> mongo test
MongoDB shell version: 2.0.4
connecting to: test
> db.test.find()
{ "_id" : ObjectId("4f7e0d7797e8f440983dfc70"), "testdate" : ISODate("1969-12-31T23:59:59.900Z") }
> exit
@bjartek
bjartek / gist:1106584
Created July 26, 2011 11:57
Knekkebrød oppskrift
KNEKKEBRØD
2dl havrekli
2dl kruskakli
2dl havregryn ( jeg bruker lettkokte)
2dl sesamfrø
2dl solsikkefrø
2dl sammalt rug grov
2dl linfrø
2-3 ts salt
2-3 ss olje