Skip to content

Instantly share code, notes, and snippets.

View rkennesson's full-sized avatar
:octocat:
I may be slow to respond.

Richard Kennesson rkennesson

:octocat:
I may be slow to respond.
View GitHub Profile
Debian 10 Setup Instructions (post install)
By: Matthew_Moore
_____________________________________________________________________________
Enable Sudo
Enter root using SU command
apt-get install sudo
@rkennesson
rkennesson / post_install.sh
Last active July 6, 2019 15:21 — forked from waleedahmad/post_install.sh
Ubuntu post installation script for installing software of your choice.
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
else
#Update and Upgrade
echo "Updating and Upgrading"
apt-get update && sudo apt-get upgrade -y
#!/usr/bin/env bash
sudo apt update
sudo apt -y install curl
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo install -y -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt-get install -y apt-transport-https
sudo apt-get update
sudo apt-get -y install code
@rkennesson
rkennesson / firewall-build-up
Last active July 1, 2019 13:01
iptables tips
#!/bin/bash
#
# iptables example configuration script'
# https://github.com/ChrisTitusTech/firewallsetup
# Drop ICMP echo-request messages sent to broadcast or multicast addresses
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
# Drop source routed packets
echo 0 > /proc/sys/net/ipv4/conf/all/accept_source_route
#!/bin/bash
# Save this file in the ~/bin folder (or other convenient locations) as LM_iso_verify.sh
# When you want to check the integrity of the downloaded LMxx.x .iso file:
#
# Download or move your Mint xx.x.iso file to your Downloads folder.
# Move this LM_iso_verify.sh file to the Downloads folder
# and make sure it is marked as executable. (Or if you keep it in /home/<your user name>/bin,
# then it is should already be on the PATH, and you don't need to move it.)
#
@rkennesson
rkennesson / conda_installer.sh
Created April 1, 2019 16:41 — forked from apoorvalal/conda_installer.sh
download and install conda
CONTREPO=https://repo.continuum.io/archive/
# Stepwise filtering of the html at $CONTREPO
# Get the topmost line that matches our requirements, extract the file name.
ANACONDAURL=$(wget -q -O - $CONTREPO index.html | grep "Anaconda3-" | grep "Linux" | grep "86_64" | head -n 1 | cut -d \" -f 2)
wget -O ~/Downloads/anaconda.sh $CONTREPO$ANACONDAURL
bash ~/Downloads/anaconda.sh
err() {
echo "[$(date +'%Y-%m-%dT%H:%M:%S%z')]: $*" >&2
}
# if ! do_something; then
# err "Unable to do_something"
# exit "${E_DID_NOTHING}"
# fi
https://release.gitkraken.com/linux/gitkraken-amd64.deb
git init
git checkout --orphan master
git commit --allow-empty -m empty
##############################################################
atmega328bb.name=ATmega328 on a breadboard (8 MHz internal clock)
atmega328bb.upload.protocol=arduino
atmega328bb.upload.tool=arduino:avrdude
atmega328bb.upload.maximum_size=30720
atmega328bb.upload.speed=57600