Skip to content

Instantly share code, notes, and snippets.

View aleks-mariusz's full-sized avatar

aleks aleks-mariusz

  • London, UK (formerly NYC)
View GitHub Profile
@Gowee
Gowee / uacme-cloudflare-hook.sh
Last active March 9, 2024 01:29
DNS-01 challenge hook script of uacme for Cloudflare
#!/bin/sh
# Copyright (C) 2020 Michel Stam <michel@reverze.net>
# Copyright (C) 2021 Hung-I Wang <whygowe@gmail.com>
#
# The script is adatped from:
# https://github.com/ndilieto/uacme/blob/5edec0eea1bcf6f454ec1787297c2408c2f2e97a/nsupdate.sh
#
# Licensed under the the GNU General Public License <http://www.gnu.org/licenses/>.
# The script is meant to be used as a hook script of uacme to update TXT records for acme challenges.
@noseka1
noseka1 / How to approve OpenShift operator upgrade using CLI.md
Last active May 16, 2024 10:57
How to approve OpenShift operator upgrade using CLI

Install the operator using the Manual approval strategy, see the attached screenshot.

An install plan has been created but not executed as it has not been approved:

oc get installplan -n openshift-logging
NAME            CSV                                    APPROVAL   APPROVED
install-dq68d   clusterlogging.4.5.0-202007012112.p0   Manual     false
@ChristopherA
ChristopherA / macOS-Preferences-Defaults.sh
Last active May 27, 2024 13:35
macOS Preferences Defaults
#!/usr/bin/env zsh
#===========================================================================
# * INFO
#
# macOS Preferences Defaults
# By Christopher Allen @ChristopherA https://github.com/christophera/
# My most basic macOS preferences, in this gist to make it easy to load on
# multiple machines and VMs. Ideally runs on all macOS versions since Yosemite,
@aliicex
aliicex / readme.md
Last active July 6, 2024 15:38
Faux-implementing IPv6 Policy-Based Routing on OpenWRT

Stangri's VPN Policy Routing package is a mainstay of my OpenWRT builds. It works great for IPv4, but I couldn't, for the life of me, get it working with IPv6. Instead, I had to faux-implement PBR as follows.

My VPN provider only gave me a single IP address with a /128 prefix, so I was forced to use NAT6. This left me with a stanza in my firewall config that looks like this; note the masq6 option

config zone
	option name 'wan_vpn'
	option input 'REJECT'
	option output 'ACCEPT'
	option forward 'REJECT'
@dwojciec
dwojciec / Openshift 4.2 on VMware using govc
Created November 21, 2019 16:49 — forked from ralvares/Openshift 4.3 on VMware using govc
Openshift 4.2 on VMware using govc
curl https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.2/4.2.0/rhcos-4.2.0-x86_64-vmware.ova -o rhcos-4.2.0-x86_64-vmware.ova
govc import.ova -name=rhcos-4.2.0-x86_64-vmware ./rhcos-4.2.0-x86_64-vmware.ova
export GOVC_URL='vsphere.server.local
export GOVC_USERNAME='admin@vsphere.local'
export GOVC_PASSWORD='password
export GOVC_INSECURE=1
export GOVC_NETWORK='NETWORK'
@lpabon
lpabon / px-security-2.1.x-k8s.md
Last active November 6, 2019 20:13
Setting up Portworx 2.1.x with security in Kubernetes using a single token

Overview

The following describes how to setup Portworx security with a single token. The goal is for users to be authenticated by Kubernetes, then have a Kubernetes to Portworx token used by all users. This model protects the storage system from unwanted access from outside Kubernetes.

The following is based on Portworx 2.1.x with security.

Download a spec

Generating secrets

@lpabon
lpabon / doc.md
Last active October 26, 2019 11:35
Setting up Portworx with security using a single token

Overview

The following describes how to setup Portworx security with a single token. The goal is for users to be authenticated by Kubernetes, then have a Kubernetes to Portworx token used by all users. This model protects the storage system from unwanted access from outside Kubernetes.

The following is based on Portworx 2.2 with security and CSI.

Download a spec

Generating secrets

@aliicex
aliicex / e3372_openwrt_setup.md
Last active July 1, 2023 10:13
Using the Huawei E3372 4G Dongle with OpenWRT

Hardware requirements:

USB modem - Huawei E3372h-153/E3372s-153 (in StickMode; non-HiLink)

Firmware versions beginning with 21.xxx.xx.xx.xx NOT 22.xxx.xx.xx.xx

Router running OpenWRT; I use:

  • GL.iNet AR750S firmware v3.022
  • OpenWrt 18.06.1 r7258-5eb055306f / LuCI openwrt-18.06 branch (git-18.196.56128-9112198)
@eugenetriguba
eugenetriguba / bootableUSB.md
Last active June 16, 2023 11:24
A tutorial on how to create a bootable USB stick using Bash on Mac OS X

How to Create a Bootable USB stick on Mac OS X

Convert the ISO to UDRW format. Note: the names destination and source are used for clarification. The name of the destination does not matter.

$ hdiutil convert -format UDRW -o destination.img source.iso

Reading CCCOMA_X64FRE_EN-US_DV9          (Apple_UDF : 0)…
...............................................................................
Elapsed Time: 11.058s
@marcinhlybin
marcinhlybin / 01-self-signed.txt
Last active October 7, 2023 13:35
Strongswan with Letsencrypt certificates issue
# Self-signed server certificates
Strongswan 5.6.2
Mac OS X 10.14.2 / Windows 7 / Windows 10
Without doing anything MacOS X VPN error: User Authentication failed.
After adding ca.crt and setting IP Security (IPSec) to "Always Trust", VPN connection works.
After adding ca.crt also works for Windows 7 and Windows 10.
# CA