Skip to content

Instantly share code, notes, and snippets.

View nelaaro's full-sized avatar

Aaron Nel nelaaro

View GitHub Profile
@nelaaro
nelaaro / pipe_tail_read_file.sh
Created October 18, 2023 07:31 — forked from miguelmota/pipe_tail_read_file.sh
Bash pipe tail file while loop read line
#!/bin/bash
# read from stdin
while read line
do
echo "$line"
done < "${1:-/dev/stdin}"
# read from file
while read line
@nelaaro
nelaaro / values.yaml
Last active July 15, 2024 05:28
superset and dex configuration superset helm
# I am only showing the relavant sections that worked for me
# Install additional packages and do any other bootstrap configuration in this script
# For production clusters it's recommended to build own image with this step done in CI
bootstrapScript: |
#!/bin/bash
rm -rf /var/lib/apt/lists/* && \
pip install \
psycopg2==2.8.5 \
redis==3.2.1 \
@nelaaro
nelaaro / dex_jupyterhub.md
Last active August 17, 2021 14:55
Working dex and jupyterhub oauth configuration

After a lot of trial and error this is the basic working configuration I have found

Jupyter hub configuration

hub:
config:
	# https://zero-to-jupyterhub.readthedocs.io/en/latest/administrator/authentication.html#id1
	# https://dex.somedomain.net/.well-known/openid-configuration
	GenericOAuthenticator:

client_id: JupyterHub-auth

@nelaaro
nelaaro / sshuttle.md
Last active July 27, 2021 05:57
sshuttle

sshuttle to access remote networks

By following these steps you should have password less access to your remote hosts and networks via ssh and sshuttle.

Replace user with the your [user]. Put the relevant sections with configuration specific to your use case.

Configure sudo access

sshuttle --sudoers

@nelaaro
nelaaro / easy-client-vpn-strongswan.md
Created June 14, 2019 11:39 — forked from clivetyphon/easy-client-vpn-strongswan.md
Easy client VPN for all major platforms using strongSwan IPsec

Easy client VPN for all major platforms using strongSwan IPsec

Overview

The goal here is to provide quick and easy but secure client VPN that can be configured natively without any additional software on:

  • Linux
  • iOS
  • Android
  • Windows
  • OSX
@nelaaro
nelaaro / ReadME.md
Last active June 10, 2019 08:11
curl '--write-out' detailed performance report on url
@nelaaro
nelaaro / windows is my terminal running as administrator
Last active January 29, 2019 09:08
windows is my terminal running as administrator
# My terminals don't run as administrator
To test if youre `CMD`, `PowerShell` is running as administrator.
## PASS
C:\Users\user>net session
There are no entries in the list.
## Fail
@nelaaro
nelaaro / remove_apt_cache
Created January 28, 2019 13:49 — forked from marvell/remove_apt_cache
Remove APT cache (for Dockerfile)
apt-get clean autoclean
apt-get autoremove --yes
rm -rf /var/lib/{apt,dpkg,cache,log}/
@ECHO off
:top
CLS
ECHO Choose a shell:
ECHO [1] cmd
ECHO [2] bash
ECHO [3] PowerShell
ECHO [4] Python
ECHO.
ECHO [5] restart elevated
# CentOS-Vault.repo
#
# CentOS Vault holds packages from previous releases within the same CentOS Version
# these are packages obsoleted by the current release and should usually not
# be used in production
#-----------------
#
# yum [action] --disablerepo=* --enablerepo=511-base
#