Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Building Asteroids 2D Game for Kids

Micheal Colhoun colhountech

💭
Building Asteroids 2D Game for Kids
View GitHub Profile
@colhountech
colhountech / github-api-quickstart.url
Last active Dec 12, 2015
simple request to github endpoint using curl
View github-api-quickstart.url
curl https://api.github.com/users/colhountech -H "Accept: application/vnd.github.v3+json" -k
@colhountech
colhountech / get-meta-gists.curl
Created Dec 12, 2015
get meta-info for all my gists
View get-meta-gists.curl
curl https://api.github.com/users/colhountech/gists -H "Accept: application/vnd.github.v3+json" -k
View fix-wsl2-dns-resolution.txt
1. Create a file: /etc/wsl.conf.
2. Put the following lines in the file in order to ensure the your DNS changes do not get blown away
[network]
generateResolvConf = false
3. In a cmd window, run wsl --shutdown
4. Restart WSL2
5. Create a file: /etc/resolv.conf. If it exists, replace existing one with this new file.
6. Put the following line in the file
View disable cloudinit and purge
sudo touch /etc/cloud/cloud-init.disabled
sudo apt-get purge cloud-init
View disable ipv6 on ubuntu
# /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
# reboot
sudo reboot
# sudo vi /etc/default/grub
# add
@colhountech
colhountech / get_short_conf.sh
Last active Feb 27, 2021
strip # and blank lines from conf files
View get_short_conf.sh
grep -v "^#" $1 | grep -v "^\s*$"
@colhountech
colhountech / defluff-ubuntu-vm.sh
Created Feb 27, 2021
Turn off fluff on ubuntu images
View defluff-ubuntu-vm.sh
sudo touch /etc/cloud/cloud-init.disabled
sudo systemctl disable lxd
sudo systemctl stop cloud-init
sudo systemctl disable cloud-init
sudo apt remove lvm2 -y --purge
sudo apt remove policykit-1 -y --purge