Skip to content

Instantly share code, notes, and snippets.

View punkdata's full-sized avatar
🤖
Beep Boop

Angel Rivera punkdata

🤖
Beep Boop
View GitHub Profile
@punkdata
punkdata / config
Created June 7, 2021 12:44
Terminator CLI config
# Belongs in ~/.config/terminator/config
[global_config]
title_font = Courier 10 Pitch 10
[keybindings]
[profiles]
[[default]]
background_darkness = 0.9
background_type = transparent
cursor_color = "#aaaaaa"
font = Ubuntu Mono 12
@punkdata
punkdata / docker-access
Created May 20, 2020 14:08
Fix access issues when running docker from SNAP packages
Create and join the docker group.
$ sudo addgroup --system docker
$ sudo adduser $USER docker
$ newgrp docker
You will also need to disable and re-enable the docker snap if you added the group while it was running.
$ sudo snap disable docker
$ sudo snap enable docker
# Use this command to extract the data from a file after the "=" charcater
grep smoke_test_ip test.txt | cut -d '=' -f 2-
@punkdata
punkdata / arduino_ubuntu.txt
Created March 21, 2018 17:54
Ubuntu Arduino fix for Acccess Denied when Uploading
# When getting access denied during upload function in arduino use this cmd to give current user permission on Ubuntu OS
sudo usermod -a -G dialout $USER
@punkdata
punkdata / setup-mysql.sh
Created February 16, 2018 00:43 — forked from sheikhwaqas/setup-mysql.sh
Install MySQL Server on Ubuntu (Non-Interactive Installation)
# Download and Install the Latest Updates for the OS
apt-get update && apt-get upgrade -y
# Set the Server Timezone to CST
echo "America/Chicago" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
# Enable Ubuntu Firewall and allow SSH & MySQL Ports
ufw enable
ufw allow 22
@punkdata
punkdata / pm_install.sh
Created November 3, 2017 16:36
Postman Install Ubuntu 17.10
#!/usr/bash
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
sudo ln -s /opt/Postman/Postman /usr/bin/postman
#Create a Desktop Entry
cat > ~/.local/share/applications/postman.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Postman

Keybase proof

I hereby claim:

  • I am punkdata on github.
  • I am datapunk (https://keybase.io/datapunk) on keybase.
  • I have a public key ASC9TfDSE0Emvxmyr9kYX4PWf1JKq7IFN41Ay1UjaQfLNAo

To claim this, I am signing this object:

@punkdata
punkdata / docker_helper_cmd.sh
Last active August 2, 2017 14:52
Docker cmd helper scripts & commands
#remove all exited docker containers
docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs docker rm
# Remove all images tagged as <none>
docker rmi $(docker images -f "dangling=true" -q)
# DANGEROUS remove all images from docker
docker rmi $(docker images | grep "$2/\|/$2 \| $2 \|$2 \|$2-\|$2_" | awk '{print $1 ":" $2}') 2>/dev/null || echo "No images matching \"$2\" to purge."
@punkdata
punkdata / bash-shortener.sh
Created April 29, 2017 15:00
debian/ubuntu bash shorten the prompt to the current working directory put this in .bashrc file
export PS1='$(whoami):${PWD/*\//}# '
@punkdata
punkdata / interfaces
Created April 14, 2017 15:31
pixelOS wlan0 config
# goes in file: /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp