Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
hostname=""
encryption_passphrase=""
root_password=""
continent_city=""
swap_size="16"
echo "Updating system time"
timedatectl set-ntp true
@mealies
mealies / deploy-site.sh
Last active April 10, 2019 06:26
Deply hugo static site to AWS s3
#!/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'
@mealies
mealies / keybase.md
Last active September 9, 2018 13:57

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 / clean-up-boot-partition-ubuntu.md
Created March 2, 2018 12:48 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

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 
@mealies
mealies / Ubuntu basic setup
Last active August 29, 2015 14:16
Ubuntu 14.04 After Install 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