most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
# Run it from the root of your Jekyll site like bash Jekyll-S3.sh | |
## | |
# Configuration options | |
## | |
STAGING_BUCKET='s3://<YOUR-S3-BUCKET-NAME>' | |
LIVE_BUCKET='s3://<YOUR-S3-BUCKET-NAME>' | |
SITE_DIR='_site/' | |
## |
#!/bin/bash | |
######################################### | |
# This script will install redis, | |
# and download a pre-configured config | |
######################################### | |
### Set the log file path | |
cd ~ | |
set_log_path=$(cd && pwd) | |
log_file="$set_log_path/skcript.log" |
# update packages | |
sudo apt-get update | |
# install python and graphite dependencies | |
sudo apt-get install -y python python-dev python-virtualenv libevent-dev python-pip python-cairo python-django-tagging python-twisted python-memcache python-pysqlite2 | |
# install web server | |
sudo apt-get install -y nginx uwsgi uwsgi-plugin-python | |
# install postgresql and dependencies |
user www-data; | |
worker_processes 1; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
sendfile on; |
### Get InfluxDB up and running for your Grafana stack | |
docker run -d -p 8086:8086 -p 2003:2003 -p 8083:8083 \ | |
-e INFLUXDB_GRAPHITE_ENABLED=true \ | |
-e INFLUXDB_ADMIN_ENABLED=true \ | |
influxdb |
### Get a Grafana instance up and running with persistent storage | |
### Grafana Dockerfile | |
### Create a storage: | |
docker run -d -v /var/lib/grafana --name grafana-storage busybox:latest | |
### Run Grafana | |
docker run \ | |
-d \ |
docker run -d -p 8086:8086 -p 2003:2003 -p 8083:8083 \ | |
-e INFLUXDB_GRAPHITE_ENABLED=true \ | |
-e INFLUXDB_ADMIN_ENABLED=true \ | |
influxdb | |
docker run \ | |
-d \ | |
-p 3000:3000 \ | |
--name=grafana \ | |
--volumes-from grafana-storage \ |
### Install Oracle Java 8, this means you agree to their binary license!! | |
cd ~ | |
sudo add-apt-repository -y ppa:webupd8team/java | |
sudo apt-get update | |
echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections | |
echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections | |
sudo aptitude -y install oracle-java8-installer | |
### Download and Install ElasticSearch |
#!/bin/bash | |
SCRIPT='cd /web/vcms/; bundle exec sidekiq' | |
RUNAS=dimon | |
NAME=vcms-sidekiq | |
PIDFILE=/web/vcms/tmp/pids/sidekiq.pid | |
LOGFILE=/web/vcms/log/sidekiq.log | |
start() { |