Skip to content

Instantly share code, notes, and snippets.

View deathnmind's full-sized avatar

deathnmind

  • United States
View GitHub Profile
@deathnmind
deathnmind / docker_setup.sh
Last active May 16, 2024 19:35
docker setup from docker
#! /bin/bash
# from: https://docs.docker.com/engine/install/ubuntu/
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done
sudo apt update
sudo apt install ca-certificates curl -yqq
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
@deathnmind
deathnmind / gist:a88beddc630215cae03a35325857fa7f
Created January 6, 2023 22:19
Short list to add to pi-hole...
0272ac85-5199-4024-a555-397c3d825d95.edge.permutive.app
1060694.collect.igodigital.com
10870841.collect.igodigital.com
110006702.collect.igodigital.com
117583536.intellimizeio.com
29773.v.fwmrm.net
2b36d2a1092a.cdn4.forter.com
33490a8068184d69ac8e8a04a88c384b7ee3a9f7.cws.conviva.com
36796bbd529145159d1008e4b886f4ea.fp.measure.office.com
3a6b0682-f3e1-4576-a706-5eb4101b9cc3.edge.permutive.app
@deathnmind
deathnmind / chezmo_go.sh
Last active November 12, 2022 00:37
Chezmoi install and apply
# one liner sh -c "$(curl -fsLS get.chezmoi.io)" -- init --apply deathnmind
#! /bin/bash
sh -c "$(curl -fsLS get.chezmoi.io)"
sudo ln -s ./bin/chezmoi /usr/bin/chezmoi
# logout and log back in
chezmoi init --apply https://github.com/deathnmind/dotfiles.git
@deathnmind
deathnmind / gist:d30d9ec49e22756328f8ce366576918b
Created August 30, 2022 22:43
install and use nala - alternative to APT.
#! /bin/bash
# Source: https://gitlab.com/volian/nala/-/wikis/Installation
# more info: https://trendoceans.com/nala-package-manager/
####
echo "deb https://deb.volian.org/volian/ scar main" | sudo tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list
wget -qO - https://deb.volian.org/volian/scar.key | sudo tee /etc/apt/trusted.gpg.d/volian-archive-scar-unstable.gpg > /dev/null
echo "deb-src https://deb.volian.org/volian/ scar main" | sudo tee -a /etc/apt/sources.list.d/volian-archive-scar-unstable.list
sudo apt update && sudo apt install nala
@deathnmind
deathnmind / gist:803eb28659c5553c9bf88fee687ece6c
Created September 28, 2021 10:43
docker & docker compose instllation
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo groupadd docker
sudo usermod -aG docker $USER
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
apt list --installed
sudo apt search firefox
@deathnmind
deathnmind / gist:81d70ee661d9c4601b44e38aa8a36ee9
Last active September 26, 2021 00:37
Multipass quick start
multipass launch hirsute --name server1
multipass shell server1
multipass stop server1
multipass delete server1
multipass purge
@deathnmind
deathnmind / gist:b016dbf1306d6e7c652893d376c30536
Last active September 28, 2021 10:37
Zeek setup and run
sudo apt update
sudo apt-get install cmake make gcc g++ flex bison libpcap-dev libssl-dev python3 python3-dev swig zlib1g-dev
git clone --recursive https://github.com/zeek/zeek
cd zeek
./configure
make
sudo make install
sudo ln --symbolic /usr/local/zeek/bin/zeek /usr/bin/zeek
zeek /usr/local/zeek/share/zeek/site/local.zeek -r test.pcap