Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew mealies

View GitHub Profile
@mealies
mealies / Ubuntu basic setup
Last active Aug 29, 2015
Ubuntu 14.04 After Install Basic Setup
View Ubuntu basic setup
# Ubuntu 14.04 After Install Stup Scripts
# Basic script to get most dependencies installed, switch shell to zsh and install prezto zsh extensions as well as node and ruby.
# Add PPA for Unity Tweak Tool
sudo add-apt-repository ppa:freyja-dev/unity-tweak-tool-daily
sudo apt-get update
# Add PPA for TLP laptop power management
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
@mealies
mealies / clean-up-boot-partition-ubuntu.md
Created Mar 2, 2018 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64
View clean-up-boot-partition-ubuntu.md

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
View keybase.md

Keybase proof

I hereby claim:

  • I am mealies on github.
  • I am mealies (https://keybase.io/mealies) on keybase.
  • I have a public key whose fingerprint is B344 0B8E B364 D2A8 542B DCDC 40D6 166E F8C8 3A34

To claim this, I am signing this object:

@mealies
mealies / deploy-site.sh
Last active Apr 10, 2019
Deply hugo static site to AWS s3
View deploy-site.sh
#!/bin/bash
set -e
DISTRIBUTION_ID=E1TOB0026XX0U7
BUCKET_NAME=thatopsguy.com
hugo -v
# Copy over pages
aws s3 sync --acl "public-read" --sse "AES256" public/ s3://$BUCKET_NAME/ --exclude 'img' --exclude 'js' --exclude 'css' --exclude 'post'
View minimal-arch-install
#!/bin/bash
hostname=""
encryption_passphrase=""
root_password=""
continent_city=""
swap_size="16"
echo "Updating system time"
timedatectl set-ntp true
You can’t perform that action at this time.