Skip to content

Instantly share code, notes, and snippets.

View SilverJan's full-sized avatar

jbi SilverJan

View GitHub Profile
@SilverJan
SilverJan / install_bootstrap_studio_ubuntu.sh
Last active April 3, 2024 13:49
Bootstrap Studio setup on Ubuntu/Linux incl. desktop file (app launcher)
# step 1) download binary
sudo su
mkdir -p /opt/bootstrapstudio
cd /opt/bootstrapstudio
# get latest link from https://bootstrapstudio.io/download
wget https://bootstrapstudio.io/releases/desktop/5.6.3/Bootstrap%20Studio.AppImage -O bootstrapstudio.AppImage
chmod +x *.AppImage
# step 2) create desktop file
cat <<EOF > /usr/share/applications/bootstrapstudio.desktop
@SilverJan
SilverJan / bash_get_ad_pw_expiry_date.sh
Last active March 15, 2021 07:21
One-liner to get the AD password expiry date for a user (in UTC)
# input vars
AD_USER=abc1de
# Windows ticks are in 100ns
WINDOWS_TICK=10000000
# seconds to be added to make Windows file time Unix file time
SEC_TO_UNIX_EPOCH=11644473600
# 180 days (AD setting via maxPwdAge) in seconds
PWD_MAX_AGE_SECONDS=15552000
# AD server
AD_SERVER="x.xx.com"