Skip to content

Instantly share code, notes, and snippets.

View AlexsJones's full-sized avatar
🧟‍♀️

Alex Jones AlexsJones

🧟‍♀️
View GitHub Profile
@saiyam1814
saiyam1814 / kubeadm + containerd 1.23
Created December 8, 2021 06:00
kubeadm + containerd 1.23
Node=74.220.21.97
OS - Ubuntu 20.04
cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf
overlay
br_netfilter
EOF
sudo modprobe overlay
sudo modprobe br_netfilter
@nhira
nhira / workspaces-linux-client-rpm.md
Last active August 30, 2024 08:44
How to install Amazon Workspaces Linux Client for Fedora

DEPRECATED

(This gist is not being maintained, but the comments below might help people.)

Amazon WorkSpaces Linux client - RPM installation

Overview

The good news is that there is an Amazon WorkSpaces Linux client. If you happen to use Ubuntu, you can use the official instructions from the documentation. But what if you're on an rpm-friendly distribution like Fedora or CentOS?

alien to the rescue.

@alexellis
alexellis / inlets-kind.md
Last active January 19, 2021 07:19
Expose Kubernetes ClusterIP services with inlets.dev

KinD with inlets.dev

Expose Kubernetes ClusterIP services with inlets.dev

Get KinD:

# Linux

sudo curl -Lo /usr/local/bin/kind \
@jiahuif
jiahuif / main.go
Created October 16, 2017 06:00
golang: tunnel tcp over socks5
package main
import (
"flag"
"io"
"net"
"time"
log "github.com/sirupsen/logrus"
"golang.org/x/net/proxy"
@tscholl2
tscholl2 / aes.go
Last active May 5, 2025 17:31
simple AES encryption/decryption example with PBKDF2 key derivation in Go, Javascript, and Python
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"fmt"
"strings"
@sieste
sieste / arch-linux-encrypted-kernel-downgrade
Created November 14, 2016 22:35
Minimal instructions for kernel downgrade on arch linux with full system encryption using dm-crypt and luks
# Kernel downgrade on ARCH Linux with encrypted file-system
#
# assumes you followed https://gist.github.com/mattiaslundberg/8620837 to set up your system
#
# Credits:
# https://stephentanner.com/restoring-grub-for-an-encrypted-lvm.html
# https://wiki.archlinux.org/index.php/Kernel_Panics
# Boot into archiso live USB
@AlexsJones
AlexsJones / gist:54e790fa919f9d0ecb1aaa37951848a8
Last active October 17, 2016 09:17
Gitlab and why it's not production ready

Current issues:

####Build process

  • Any change to build configuration essentially requires a new branch to make the change & then a pull request to build it in the gitlab pipeline. Therefore, two seperate changes would essentially spawn N * C builds (N is the number of builds per pipeline, C is changes - On complexity).

  • static YAML files require enormous amounts of repetitive statements as it doesn't support in line interpolation or dynamically injection build variables.

    • Further to this; by way of compromise, the YAML sets environment shell variables, which have to fight ordinality with those set by developers in Xcode or subsequent shell scripts.
  • The fan out build strategy (whilst promoting parrallism) actually creates a block on building as tests will continue to run - despite the

@Yawning
Yawning / orhttp_example.go
Created April 29, 2015 14:41
How to dispatch HTTP requests via Tor in Go.
// To the extent possible under law, the Yawning Angel has waived all copyright
// and related or neighboring rights to orhttp_example, using the creative
// commons "cc0" public domain dedication. See LICENSE or
// <http://creativecommons.org/publicdomain/zero/1.0/> for full details.
package main
import (
// Things needed by the actual interface.
"golang.org/x/net/proxy"
/*
* =====================================================================================
*
* Filename: jnxguid.c
*
* Description:
*
* Version: 1.0
* Created: 26/01/2015 21:16:23
* Revision: none
@sandcastle
sandcastle / install-teamcity.md
Last active March 4, 2025 05:06
Install TeamCity 9.0.3 on Ubuntu with Nginx