Skip to content

Instantly share code, notes, and snippets.

View imkarthikk's full-sized avatar
:bowtie:
Focusing

Karthik Kamalakannan imkarthikk

:bowtie:
Focusing
View GitHub Profile
@imkarthikk
imkarthikk / gist:036c48a03e237288957f
Created November 12, 2015 05:56 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


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"
@imkarthikk
imkarthikk / gist:772f86858f90efa55687
Created March 9, 2015 12:32
Graphite, UWSGI and nginx setup on Ubuntu 14.04
# 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
@imkarthikk
imkarthikk / nginx.conf
Last active March 11, 2018 07:06 — forked from oroce/nginx.conf
user www-data;
worker_processes 1;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
sendfile on;
@imkarthikk
imkarthikk / InfluxDB Dockerfile
Created February 7, 2018 04:35
Grafana + InfluxDB + Docker for real-time dashboards
### 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
@imkarthikk
imkarthikk / Grafana Dockerfile
Created February 7, 2018 04:33
Grafana + InfluxDB + Docker for real-time dashboards
### 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 \
@imkarthikk
imkarthikk / ElasticSearch.sh
Last active January 3, 2018 13:27 — forked from gourneau/ElasticSearch.sh
Shell Script to install Elastic Search on Ubuntu 14.04 Server
### 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
@imkarthikk
imkarthikk / sidekiq.sh
Last active October 12, 2017 19:43 — forked from ponchik/sidekiq.sh
#!/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() {