Skip to content

Instantly share code, notes, and snippets.

View lopcode's full-sized avatar
🌿

sage lopcode

🌿
View GitHub Profile

This is the "map exchange code" for twitch.tv/carrot 's Factorio: Space Age playthrough:

>>>eNp1Uj2IE0EUnrkYcsZEgwRBOM4IB4IQwdNSsqsgIqLV9etkMxsHN7O5+YmcCqa4UrDRQhttPeF6u4CNBx6IVnYnWliIRBRthDizm9lMNrmBN/vmfW++9763swAAKAIIwFIFrUsSRp7PZAt7EQkB6DuvtrZiK/go9InAduyAH6E0CYCBU/SjbhezesSwHT4YM9YtxjgZU9zZqDcRV8muk1jfKQehjBih2OthKuxy5UCG7Yghzw9JEGjE2BGDEB4i2uI2dqgd4uacO5UkHjfhZZsoJWBXsYl5bFxEdGoU4/gdJDCz8xcJi2h2HuWQiFtEdrym1mnTlCiSPcJnu82zyL891Ume+wx17cvHuEBMENr2EMPI60SEC5lUnlyyG9e9VLkMA8mI7yGftLw23uCJAsOaFwzjqcolIWmbC0w9S1c8BMkQVbpm9PZk6CMqla7MgzmaIr1IO4R3ptqdmSeAT9b+nuxvLgNtowegNhppU96eesjaAOxravVVQXvVLiq7NGGC8F51+8rnu48dmCScccfOcBwZNE3kqnFuuPtCK8Y5b/Gci9cvy0mKClVinLXoTpwE3NQghGtfK+v89E4D/nv588P15k0Hnr1c/TFc3W4osKCVLqTbs6d6vTZSgOHcc8bQJwfuvtPruwNz+kZVby8eqm1wLQdg5bA51paAaa1haKouDOL1xyj5YpyPTlaHGsQFTb6st7d6y4OUUnUGE9d95EL3hEGPT1LU/VVg99CaKNwxZd9Y9TONzP4IW0cmsuLO+Q1FXbCVbt9yaTdqnu8L5uQ+d+NZAp31W8WSk0YMVfKtuPG4c+lbHDrTL007muT+qcbuf5LmWGA=<<<
resource "hcloud_placement_group" "runner" {
name = "runner-placement-group"
type = "spread"
}
locals {
fsn_datacenter = "fsn1-dc14"
nbg_datacenter = "nbg1-dc3"
runners = [
{

Keybase proof

I hereby claim:

  • I am lopcode on github.
  • I am carrot (https://keybase.io/carrot) on keybase.
  • I have a public key ASAZjN3hpzbhivNauI_C1A8qprDIefU31MpYN3PiAujZsgo

To claim this, I am signing this object:

FROM --platform=$TARGETPLATFORM eclipse-temurin:18-jdk as jre-build
ARG jar
ARG docs
WORKDIR /app
RUN mkdir build
ADD $jar build/service.jar
RUN jdeps \
--ignore-missing-deps \
--multi-release 18 \
package sponsor.api.fetcher
import io.ktor.client.HttpClient
import io.ktor.client.call.receive
import io.ktor.client.request.header
import io.ktor.client.request.parameter
import io.ktor.client.request.request
import io.ktor.client.statement.HttpResponse
import io.ktor.http.HttpMethod
import kotlinx.serialization.SerialName
@lopcode
lopcode / Dockerfile
Created February 21, 2021 23:10
Example of filtering RDS region-specific certificates, installed to an OpenJDK Docker image, to speed up image build time (eu-west-2)
FROM openjdk:16-jdk-buster
LABEL org.opencontainers.image.source="https://github.com/KaleCharity/snip"
ARG jar
ADD $jar /service.jar
RUN curl -sS "https://s3.amazonaws.com/rds-downloads/rds-combined-ca-bundle.pem" > rds-combined-ca-bundle.pem
RUN awk 'split_after == 1 {n++;split_after=0} /-----END CERTIFICATE-----/ {split_after=1}{print > "rds-ca-" n ".pem"}' < rds-combined-ca-bundle.pem
RUN for CERT in rds-ca-*; do \
@lopcode
lopcode / install_nomad_server.yaml
Last active July 25, 2018 22:08
Simple Nomad installation and updating using Ansible
# To update to a new version of Nomad:
# Download and calculate checksums:
# http --download https://releases.hashicorp.com/nomad/0.8.4/nomad_0.8.4_linux_amd64.zip
# shasum --algorithm 256 --binary nomad_0.8.4_linux_amd64.zip
# unzip nomad_0.8.4_linux_amd64.zip
# shasum --algorithm 256 --binary nomad
# Update facts in this script
# Only run on one hashimaster at a time!
- name: Set nomad version
fun extractGraphemeClusters(input: String): List<String> {
val characters = mutableListOf<String>()
val iterator = BreakIterator.getCharacterInstance()
iterator.setText(input)
var start = iterator.first()
var iterated = false
while (!iterated) {
val next = iterator.next()
@lopcode
lopcode / code-of-conduct.md
Last active July 20, 2017 17:37
#compsoc code of conduct

#compsoc Code of Conduct

#compsoc aims at being a nice place to chat about computer related things for anyone involved with Edinburgh University.

With that in mind, there is a single rule:

  • Be nice

Not being nice could include:

Keybase proof

I hereby claim:

  • I am carrotcodes on github.
  • I am carrot (https://keybase.io/carrot) on keybase.
  • I have a public key ASDeLjES8LMAdIUKm3q9b_KJyaVRIfO9Vn1du1paiU4q5wo

To claim this, I am signing this object: