Skip to content

Instantly share code, notes, and snippets.

@vch42
vch42 / samba4_install.sh
Last active April 13, 2022 17:08
samba4 install from sources script
#!/bin/bash
# samba4_install.sh
if [ -z $1 ]; then
echo "Missing version number to install...";
echo "eg. ./samba4_install.sh 4.0.0";
echo " ";
exit 1;
fi
@vch42
vch42 / setup_codesourcery.sh
Created March 11, 2017 16:19
Copyright (C) 2009-2012 Matthias "Maddes" Buecher
#!/bin/sh
#
# Script name: setup_codesourcery.sh
# Version: 2.2 - 2012-07-19
#
# Copyright (C) 2009-2012 Matthias "Maddes" Buecher
#
#
#!/bin/sh
. /lib/lsb/init-functions
#set_revision_var() {
# revision=$(grep "Revision" /proc/cpuinfo | sed -e "s/Revision\t: //")
# RPI2_REVISION=$((16#a01041))
# RPI3_REVISION=$((16#a02082))
# if [ "$((16#$revision))" -ge "$RPI3_REVISION" ]; then
@vch42
vch42 / cisco-process-pfx.sh
Created December 21, 2021 10:30
Process PFX certificate chain for Cisco AnyConnect on Linux
#!/bin/bash
ca="$HOME/.cisco/certificates/ca/ca.pem"
client="$HOME/.cisco/certificates/client/personal.pem"
key="$HOME/.cisco/certificates/client/private/personal.key"
if [ ! -f "$1" ]; then
echo "Provide the full chain pfx file as argument."
echo "Eg.: ./process-pfx.sh /home/tburton/Desktop/tburton_cert_chain.pfx"