Skip to content

Instantly share code, notes, and snippets.

View sookah's full-sized avatar
:octocat:
Learning

Saujan Ghimire sookah

:octocat:
Learning
View GitHub Profile
@sookah
sookah / s3Upload.sh
Last active March 5, 2020 11:45
Script to upload to s3 and download
#!/bin/bash
# This is the ISensit Gateway diagnostic Reporter by Saujan Ghimire
# Globals
SCRIPT_NAME=$(basename -- "$0")
export VERSION="v1.0"
export PROJECT_PATH=$( cd $(dirname $0) ; cd ../; pwd -P )
export SCRIPT_NAME="${SCRIPT_NAME%.*}"
export BASE_DIR=/tmp
@sookah
sookah / setup_elastic.md
Last active February 14, 2020 14:58
How to setup beats-ELK stack on aws and the pi embedded hardware

Elastic and PI

Cloud Side

Create an EC2 instance with Ubuntu flavor

add the initial elk repos and prepare to setup elasticsearch, logstash and kibana

setup config files for each module

make sure that the ports 9200 and 5601 are open for the server

@sookah
sookah / install.sh
Created April 18, 2018 23:07 — forked from douglasmiranda/install.sh
After Install Ubuntu 17.10 - Chrome, Fish Shell, Docker, Docker Compose
sudo apt update
sudo apt upgrade -y
# Remember: install / verify additional drivers
sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt update
# google chrome and chrome extension to use gnome extensions
@sookah
sookah / README.md
Created January 5, 2017 00:06 — forked from terenceponce/README.md
Setting up rbenv, Ruby 2.1, Rails 4.1.0.beta1, nginx, Passenger, PostgreSQL 9.1 on Ubuntu 12.04 LTS for Windows Azure

Setting up Ruby, Rails, Nginx, Passenger, PostgreSQL 9 on Ubuntu 12.04 LTS for Windows Azure

Last updated: 12/31/2013

Fix the locale issue

  • Edit /etc/default/locale as sudo.
  • Append LC_ALL="en_US.UTF-8" at the end of the file, save and quit.
  • sudo locale-gen en_US en_US.UTF-8
  • sudo dpkg-reconfigure locales

Install the necessary packages to install rbenv and build Ruby