Skip to content

Instantly share code, notes, and snippets.

View sanderpick's full-sized avatar
🎟️
Got me a ticket to ride

Sander Pick sanderpick

🎟️
Got me a ticket to ride
View GitHub Profile
@sanderpick
sanderpick / install-redis.sh
Last active February 22, 2017 21:50 — forked from FUT/install-redis.sh
Install Redis on EC2
1. Install Linux updates, set time zones, followed by GCC and Make
sudo yum -y update
sudo ln -sf /usr/share/zoneinfo/America/Indianapolis \
/etc/localtime
sudo yum -y install gcc make
2. Download, Untar and Make Redis 2.8 (check here http://redis.io/download)
@sanderpick
sanderpick / install.sh
Last active March 7, 2022 00:12
Install an ipfs-cluster peer on Amazon Linux.
#!/usr/bin/env bash
set -e
[ -z "$CLUSTER_SECRET" ] && echo "Need to set CLUSTER_SECRET" && exit 1;
echo 'export IPFS_PATH=/data/ipfs' >>~/.bash_profile
echo 'export IPFS_CLUSTER_PATH=/data/ipfs-cluster' >>~/.bash_profile
source ~/.bash_profile
@sanderpick
sanderpick / ipfs-gateway-nginx.conf
Created February 27, 2018 23:54
nginx config files for an ipfs-cluster peer gateway on Amazon Linux.
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
include /usr/share/nginx/modules/*.conf;
events {
worker_connections 1024;
}
@sanderpick
sanderpick / install.sh
Last active March 13, 2018 20:12
Install an nginx reverse proxy + cache for an ipfs-cluster peer gateway on Amazon Linux.
#!/usr/bin/env bash
set -e
# install nginx
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install ./epel-release-latest-7.noarch.rpm -y
sudo yum install nginx -y
rm epel-release-latest-7.noarch.rpm
@sanderpick
sanderpick / ipfs.sh
Last active November 29, 2022 04:30
Install ipfs on Amazon Linux.
#!/usr/bin/env bash
set -e
echo 'export IPFS_PATH=/data/ipfs' >>~/.bash_profile
source ~/.bash_profile
# ipfs daemon
wget https://dist.ipfs.io/go-ipfs/v0.4.15/go-ipfs_v0.4.15_linux-amd64.tar.gz
tar xvfz go-ipfs_v0.4.15_linux-amd64.tar.gz
#!/usr/bin/env bash
set -e
# textile daemon
wget https://s3.amazonaws.com/dist.textile.io/textile-go-linux-amd64.tar.gz
tar xvfz textile-go-linux-amd64.tar.gz
rm textile-go-linux-amd64.tar.gz
sudo mv textile-go-linux-amd64 /usr/local/bin/textile
@sanderpick
sanderpick / cafe_init.sh
Last active January 4, 2019 03:13
Deploys a Textile cafe node to a remote Linux host
#!/usr/bin/env bash
set -e
while getopts k:r:u:p: option
do
case "${option}"
in
k) KEY=${OPTARG};;
r) RELEASE=${OPTARG};;
@sanderpick
sanderpick / cafe_install.sh
Last active August 13, 2019 09:02
Installs a Textile cafe node on Linux
#!/usr/bin/env bash
set -e
while getopts r:u:p: option
do
case "${option}"
in
r) RELEASE=${OPTARG};;
u) URL=${OPTARG};;
@sanderpick
sanderpick / cafe_upgrade.sh
Last active January 4, 2019 03:14
Upgrades a Textile cafe node on a remote Linux host
#!/usr/bin/env bash
set -e
while getopts k:r:p: option
do
case "${option}"
in
k) KEY=${OPTARG};;
r) RELEASE=${OPTARG};;
@sanderpick
sanderpick / cafe_reinstall.sh
Created December 29, 2018 18:34
Re-installs a Textile cafe node on Linux
#!/usr/bin/env bash
set -e
while getopts r: option
do
case "${option}"
in
r) RELEASE=${OPTARG};;
esac