Skip to content

Instantly share code, notes, and snippets.

@Lyoness
Lyoness / community-draft-Jan-2023.md
Last active January 17, 2023 20:59
draft of community call announcement before send.

Happy New Year! We are excited to confirm Tuesday 31 January at 1530 UTC for our first CUE Community Call of 2023.

Please reply with any questions/topics you would like to see covered.

Agenda

  • Project updates
  • Release updates
  • Follow-ups from Community Call 2022-11-29
  • Community Updates
  • Spotlight on...TBD. (If you would like to be featured on monthly spotlights, let us know!)

Language:

Struct: with inline comments for structs and memory memory padding / boundaries https://play.golang.org/p/hZRNwaKrMb we want to fit values based on size inside same byte boundaries. Memory Padding ift's 2 byte value - 2 byte alignment 4 byte value - 4 byte alignment (compiler does this) Bools lose their 0 value b/c of padding.

ActiveRecord::Base.connection.execute('set statement_timeout to 300000')
sql = "SELECT distinct repository_id FROM builds where id BETWEEN 148806987 AND 152728050"
repository_ids = ActiveRecord::Base.connection.execute(sql).map{ |row| row['repository_id'].to_i }
affected_repositories = 0
repository_ids.each do |id|
repo = Repository.find(id)
changed_builds = repo.builds.select {|b| b.created_at > '2016-08-09' && b.created_at < '2016-08-16' && b.previous_state == 'passed' && (b.state == 'failed' || b.state == 'errored') }.count
@Lyoness
Lyoness / golang-study-1
Created August 10, 2016 00:22
golang-studygroup-1
##Notes, linkdump, for golang-studygroup-1 on 9-August-2016
https://play.golang.org/p/dJLQZz-hVY - byte fun
iota - what is it?
Golang truthiness numbers?
https://golang.org/pkg/log/#New
Constants
@Lyoness
Lyoness / keybase.nd
Created April 8, 2016 20:41
keybase verify
### Keybase proof
I hereby claim:
* I am Lyoness on github.
* I am lyoness (https://keybase.io/lyoness) on keybase.
* I have a public key whose fingerprint is 9E34 ACEE E789 1428 A118 2E76 E74A 8F28 50FB C1A4
To claim this, I am signing this object: