Skip to content

Instantly share code, notes, and snippets.

@phumberdroz
phumberdroz / docker.tf
Created August 19, 2020 09:44
Terraform populate Docker Credentials in all Namespaces
variable "docker_password" {}
data "kubernetes_all_namespaces" "allns" {}
resource "kubernetes_secret" "docker_secrets" {
for_each = toset(data.kubernetes_all_namespaces.allns.namespaces)
metadata {
name = "gitlab-cloud"
namespace = each.value
}

How to codesign openFrameworks app without Apple developer license?

When I send openFrameworks app to my frined, app does not find data folder. This is because of "translocation", known issue on openFrameworks forum. There are couple of solution to avoid translocation but here I tried different way by codesigning. But quesion is, is it possible to codesign wihout Apple Developer license? Looks like possible...? https://stackoverflow.com/questions/27474751/how-can-i-codesign-an-app-without-being-in-the-mac-developer-program/27474942

Create Certificate

  1. Open Keychain Access.
@vcavallo
vcavallo / version.rake
Created December 6, 2016 19:49 — forked from muxcmux/version.rake
Manage your rails app version with this rake task
def valid? version
pattern = /^\d+\.\d+\.*\d*(\-(dev|beta|rc\d+))?$/
raise "Tried to set invalid version: #{version}".red unless version =~ pattern
end
def correct_version version
ver, flag = version.split '-'
v = ver.split '.'
(0..2).each do |n|
v[n] = v[n].to_i
@dcode
dcode / GitHub Flavored Asciidoc (GFA).adoc
Last active June 23, 2024 21:12
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)

@jnothman
jnothman / forkme.svg
Last active November 17, 2021 05:08
"Fork me on GitHub" ribbon in LaTeX/TikZ vector graphic
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.