Skip to content

Instantly share code, notes, and snippets.

View neektza's full-sized avatar

Nikica Jokic neektza

View GitHub Profile
apiVersion: cert-manager.io/v1alpha2
kind: ClusterIssuer
metadata:
name: letsencrypt-prod-cluster-issuer
spec:
acme:
email: admin@verybigthings.com
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-prod-cluster-issuer-secret
@neektza
neektza / schema.ex
Last active October 31, 2019 10:09
defmodule GostPlatformWeb.GraphQL.Schema do
use Absinthe.Schema
use Absinthe.Schema.Notation
use Absinthe.Relay.Schema, :modern
use Absinthe.Relay.Schema.Notation, :modern
alias GostPlatform.{Vessel, Fleet}
@fleets %{
@neektza
neektza / buckets.tf
Last active August 31, 2018 10:35 — forked from nagelflorian/buckets.tf
Terraform config for static website hosting on AWS
# AWS S3 bucket for static hosting
resource "aws_s3_bucket" "website" {
bucket = "${var.website_bucket_name}"
acl = "public-read"
tags {
Name = "Website"
Environment = "production"
}
@neektza
neektza / todo-remaining.md
Last active May 9, 2018 11:42 — forked from elkarrde/todo-remaining.md
WWF N4P Todo remaining

Remaining Todos

Jezici

  • disclamer copy u footeru za BCS → (fali nam disclaimer)

Naslovna

  • nisu okomito u ravnini priče na naslovnoj (desni rub) → ne mozemo reproducirat bug
  • priče bi trebale biti centrirane (sad ima više praznine na desnoj strani) → ne mozemo reproducirat bug
  • link na naslov i sliku na CS treba voditi na CS, ne na članak kojeg nema
@neektza
neektza / todo-180503.md
Created May 4, 2018 13:57 — forked from elkarrde/todo-180503.md
WWF N4P To do, 2018-05-03

WWF N4P Todo 2018-05-03

Jezici

  • ispraviti jezik AL
  • staviti umjesto HR - BCHS
    • (može i disclamer u donjem dijelu koje to jezike podrazumjeva)

Naslovna

  • zamijeni project u platform
  • izbriši in this project u 2 rečenici " This project is supported by our friends and partners. Thanks for supporting us in this project. Nature and people will appreciate it.
@neektza
neektza / todo-180426.md
Last active May 2, 2018 16:17 — forked from elkarrde/todo-180426.md
WWF to do, 2018-0426

2018-04-26

SLUGOVI:

  • (@danijel) provjeriti na GA, jesu postojeći slugovi referani direktno od negdje
    • poslati report Nikici
    • ako jesu, dodati redirectove
  • hr title -> hr slug
  • en title -> en slug

VISUAL:

Biodiversity and The Protected Areas System in Albania.pdf
Montenegro in Figures 2016.pdf
Mechanisms for mainstreaming a sustainable biodiversity economy, including payments for ecosystem services.pdf
Kosovo - Country Environmental Analysis (CEA).pdf
Albania in Figures, 2014.pdf
Mapping ecosystem services for policy support and decision making in the European Union.pdf
An economic case for restoring rivers and their ecosystem services.pdf
Bitka za Sutjesku - Stručna mišljenja o planiranim hidroelektranama u NP Sutjeska.pdf
Countries and regions - Bosnia and Herzegovina.pdf
ESIA Albania Annex 6.2.3 - Protected Areas System in Albania.pdf
module EventMachine
def self.run_deferred_callbacks
until (@resultqueue ||= []).empty?
result,cback = @resultqueue.pop
cback.call result if cback
end
size = @next_tick_mutex.synchronize { @next_tick_queue.size }
size.times do |i|
callback = @next_tick_mutex.synchronize { @next_tick_queue.shift }
begin
module EventMachine
def self.spawn_threadpool
until @threadpool.size == @threadpool_size.to_i
thread = Thread.new do
Thread.current.abort_on_exception = true
while true
op, cback = *@threadqueue.pop
result = op.call
@resultqueue << [result, cback]
EventMachine.signal_loopbreak
module EventMachine
def self.defer op = nil, callback = nil, &blk
unless @threadpool
@threadpool = []
@threadqueue = ::Queue.new
@resultqueue = ::Queue.new
spawn_threadpool
end
@threadqueue << [op||blk,callback]
end