Skip to content

Instantly share code, notes, and snippets.

View nwanati's full-sized avatar

Bones nwanati

View GitHub Profile
@nwanati
nwanati / 1-vscode-cleanup.sh
Created January 17, 2025 13:49 — forked from AfroThundr3007730/1-vscode-cleanup.sh
vscode profile cleanup tasks
#!/bin/bash
# Purge extensions cache
rm -fr /vscode/vscode-server/extensionsCache/* ~/.vscode-server/extensionsCache/*
# Remove older extension versions
find ~/.vscode*/extensions -maxdepth 1 -type d |
awk '{t=gensub(/(.+)-[0-9\.-]+.+/, "\\1", 1); if (t in m) {print $0} else {m[t]++}}' |
xargs -rtl rm -fr
@nwanati
nwanati / add-dod-certs.sh
Created January 17, 2025 13:48 — forked from AfroThundr3007730/add-dod-certs.sh
Import DoD root certificates into linux CA store
#!/bin/bash
# Imports DoD root certificates into Linux CA store
# Version 0.4.1 updated 20241216 by AfroThundr
# SPDX-License-Identifier: GPL-3.0-or-later
# For issues or updated versions of this script, browse to the following URL:
# https://gist.github.com/AfroThundr3007730/ba99753dda66fc4abaf30fb5c0e5d012
# Dependencies: curl gawk openssl unzip wget
@nwanati
nwanati / WSLWindows10Setup.md
Created November 16, 2021 16:27 — forked from AjkayAlan/WSLWindows10Setup.md
Windows SubSystem For Linux setup that I like with some developers stuff mixed in

Setting Up WSL

Install A Distro:

  1. Run the following in powershell as admin Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

  2. Install a distro (ex: Ubuntu 18.04 LTS - https://www.microsoft.com/store/apps/9N9TNGVNDL3Q)

  3. Open your distro you installed via the start menu, let it setup

  4. Update and upgrade

sudo apt-get update