Skip to content

Instantly share code, notes, and snippets.

Ben Gardner unshift

Block or report user

Report or block unshift

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
#!/usr/bin/env bash
sudo yum update -y
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
docker info
View example.js
const foo = {}
export default foo = 3
View wand.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

MIT License

Copyright (c) 2017-present Ben Gardner

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View launch.js
const chromeLauncher = require('chrome-launcher')
const DEFAULT_ARGS = [
touch /etc/yum.repos.d/google-chrome.repo
echo -e "[google-chrome]\nname=google-chrome\nbaseurl=\$basearch\nenabled=1\ngpgcheck=1\ngpgkey=" >> /etc/yum.repos.d/google-chrome.repo
touch /etc/yum.repos.d/centos.repo
echo -e "[CentOS-base]\nname=CentOS-6 - Base\nmirrorlist=\ngpgcheck=1\ngpgkey=\n\n" >> /etc/yum.repos.d/centos.repo
echo -e "#released updates\n[CentOS-updates]\nname=CentOS-6 - Updates\nmirrorlist=\ngpgcheck=1\ngpgkey=\n\n" >> /etc/yum.repos.d/centos.repo
echo -e "#additional packages that may be useful\n[CentOS-extras]\nname=CentOS-6 - Extras\nmirrorlist=\ngpgcheck=1\ngpgkey=
export PATH=$PATH:/usr/pgsql-10/bin/
export PGUSER=postgres
yum group install -y "Development Tools"
yum install -y openssl-devel
cd /tmp && git clone
cd citus && ./configure
DATE=`date +%m-%d-%Y`
AWS_REGION=$(curl|grep region|awk -F\" '{print $4}')
export PGUSER=postgres
pg_dumpall | aws --region $AWS_REGION s3 cp - "s3://$AWS_BUCKET/$HOSTNAME/$DATE.bak"
echo "Backup saved on $(date)"
export PATH=$PATH:/usr/pgsql-10/bin/
cd /tmp
git clone && cd pgjwt
make && make install
cd /tmp
git clone && cd pg_gen_uid
View aws-example.go
package main
import (
You can’t perform that action at this time.