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 / 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 / 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
#-----------------
[C6.0-base]
name=CentOS-6.0 - Base
baseurl=http://vault.centos.org/6.0/os/$basearch/
@nelaaro
nelaaro / README-Template.md
Created April 5, 2018 08:23 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@nelaaro
nelaaro / ssh_agent_start.fish
Created December 6, 2017 08:53 — forked from gerbsen/ssh_agent_start.fish
Auto-launching ssh-agent in fish shell
# content has to be in .config/fish/config.fish
# if it does not exist, create the file
setenv SSH_ENV $HOME/.ssh/environment
function start_agent
echo "Initializing new SSH agent ..."
ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV
echo "succeeded"
chmod 600 $SSH_ENV
. $SSH_ENV > /dev/null