Skip to content

Instantly share code, notes, and snippets.

View beevelop's full-sized avatar
🐝

Maik Hummel beevelop

🐝
View GitHub Profile
@arastu
arastu / create-cert-and-key-with-certbot.sh
Last active March 15, 2021 04:28
Configuring Harbor with HTTPS Access via letsencrypt(certbot with --standalone flag)
sudo certbot certonly --standalone -d registry.example.com
@dennisstritzke
dennisstritzke / fileEncryption.md
Last active March 6, 2023 21:00
A very short documentation on using OpenSSL keys to encrypt and decrypt files.

Procedure

  1. Create a random key.
  2. Encrypt the random key via an SSH RSA public key
  3. Send the encrypted file and encrypted key
  4. Encrypt the key
  5. Encrypt the file

Create key via

openssl genrsa -out rsa.private 4096
@shamil
shamil / rundeck_executions_cleanup.sh
Last active August 7, 2024 17:44
Rundeck executions cleanup
#!/bin/bash -e
# see related issue: https://github.com/rundeck/rundeck/issues/357
# export required vars
export RD_URL=http://localhost:4440 RD_USER=admin RD_PASSWORD=admin RD_HTTP_TIMEOUT=300
# make sure rd & jq commands are in the PATH
which -- rd jq >/dev/null
del_executions() {
@evelyne24
evelyne24 / .dockerignore
Last active September 4, 2019 19:57
Docker-ize Connfa
Dockerfile
.git
.git*
@zshamrock
zshamrock / docker-compose.yml
Last active March 20, 2017 13:23
TICK services docker compose
version: '2'
networks:
# create a network to share between TICK services, so they can connect to each other by specifying influxdb network name
influxdb:
services:
telegraf:
image: telegraf:1.1.2
container_name: telegraf1.1.2
@max-mapper
max-mapper / index.sh
Last active November 2, 2023 10:13
generate ES512 and RS256 elliptic curve keypairs for JWT JWK (JSON Web Token JSON Web Key) using openssl
# RS256
# private key
openssl genrsa -out rs256-4096-private.rsa 4096
# public key
openssl rsa -in rs256-4096-private.rsa -pubout > rs256-4096-public.pem
# ES512
# private key
openssl ecparam -genkey -name secp521r1 -noout -out ecdsa-p521-private.pem
# public key
#To build:
#docker build -t psychemedia/robertalab .
#To probe/debug the build...
#docker run -it psychemedia/robertalab bash
#To run:
#docker run -p 1999:1999 psychemedia/robertalab
#To expose to other machines on the local netwrok, the docker VM needs port forwarding set up
#https://blog.ouseful.info/2016/05/22/exposing-services-running-in-a-docker-container-running-in-virtualbox-to-other-computers-on-a-local-network/
FROM ubuntu
@ajbrown
ajbrown / gist:8aea5189d8e84046a4f2
Created March 14, 2016 15:28
BackWPup S3 permissions. This includes the minimum permissions needed to allow the Wordpress BackWPup plugin to complete a backup job with an Amazon S3 destination.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1457967512000",
"Effect": "Allow",
"Action": [
"s3:ListAllMyBuckets"
],
"Resource": [
@sjehutch
sjehutch / hockeyapp.sh
Created February 25, 2016 19:48
hockeyapp.sh
#!/usr/bin/env bash
# Remove this if you want deployment for every pull request.
if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
echo "This is a pull request. No deployment will be done."
exit 0
fi
# This will only deploy if your main branch is develop.
if [[ "$TRAVIS_BRANCH" != "develop" ]]; then
@danharper
danharper / normalize-filenames.js
Last active August 17, 2018 19:32 — forked from dcramer/normalize-filenames.js
use Sentry (Raven) on PhoneGap
Raven.config(dsn, {
dataCallback(data) {
const normalize = filename => filename.split('/www/', 2)[1]
data.exception.values[0].stacktrace.frames.forEach(frame => {
frame.filename = normalize(frame.filename)
})
data.culprit = data.exception.values[0].stacktrace.frames[0].filename