Skip to content

Instantly share code, notes, and snippets.

View shudarshon's full-sized avatar
🎯
Focusing

Shudarshon Chaki shudarshon

🎯
Focusing
View GitHub Profile
@tamsky
tamsky / buildspec.yml
Created August 28, 2018 15:29 — forked from Jamie-BitFlight/buildspec.yml
Terraform module that causes aws_codebuild_project to fail
version: 0.2
phases:
pre_build:
commands:
- echo Logging in to Amazon ECR...
- aws --version
- eval $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)
- REPOSITORY_URI=${ecr_address}
- GITHUB_TOKEN=${gh_token}
@StevenACoffman
StevenACoffman / Continuous Delivery Ideas.md
Last active December 28, 2019 23:49
Continuous Delivery Ideas

Hackathon Requirements

In order to organize a hackathon, we have to describe:

  • What the hackathon is about
  • What the benefits are
  • How the results/benefits will be reported
  • then talk to the resource managers and product managers with that stuff

General Requirements

We want per-branch automatic k8s deploys in our staging environment. Each github branch of a repo has an instance of - running. Deployments self-destruct after 4 hours if the branch is not master. Anyone can trigger a new build with a comment on a pull request (or new commit).

@a-h
a-h / buildspec.yml
Last active November 3, 2022 08:31
Build Go with private dependencies on AWS CodeBuild
version: 0.2
env:
parameter-store:
build_ssh_key: "build_ssh_key"
phases:
install:
commands:
- mkdir -p ~/.ssh
@ivodvb
ivodvb / install.sh
Created April 22, 2018 12:03
goaccess setup (tested on Ubuntu 16.04 and Debian 7)
apt update && apt upgrade -y && \
apt install -y libncursesw5-dev libglib2.0-dev libgeoip-dev libtokyocabinet-dev build-essential && \
wget http://tar.goaccess.io/goaccess-1.2.tar.gz && \
tar -xzvf goaccess-1.2.tar.gz && \
cd goaccess-1.2/ && \
./configure --enable-utf8 --enable-geoip=legacy && \
make && \
make install && \
sed -i 's/\#time-format %H:%M:%S/time-format %H:%M:%S/g' /usr/local/etc/goaccess.conf && \
sed -i 's/\#date-format %d\/%b\/%Y/date-format %d\/%b\/%Y/g' /usr/local/etc/goaccess.conf && \
@GhazanfarMir
GhazanfarMir / Instructions.sh
Last active December 21, 2023 22:55
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04
########## Install NGINX ##############
# Install software-properties-common package to give us add-apt-repository package
sudo apt-get install -y software-properties-common
# Install latest nginx version from community maintained ppa
sudo add-apt-repository ppa:nginx/stable
# Update packages after adding ppa
@javagrails
javagrails / solr data type field mapping info.json
Last active July 13, 2020 08:44
solr data type field mapping
https://bigwisdom.net/solr-tutorial-learn-solr-in-2-hours/
========================== Solr Basic Data Types for Index =============================
Data Type |Index_Suffix |Example
----------------------------------------------------------------------
String _s id:"1051",
String _s url_s:"https://javagrails.wordpress.com/",
String _s title_s:"MackBookProkk",
String _s description_s:"dmlasd",
String _s duration_s:"dasdsad",
@zyphlar
zyphlar / cloudwatch-alarm-to-slack.js
Last active February 6, 2019 12:00
See comments
'use strict';
/**
* See http://notes.webutvikling.org/send-aws-cloudwatch-alarms-to-slack/ for instructions
* But I like this code better because the snsToSlack.js code doesn't parse the CloudWatch JSON
*
* Follow these steps to configure the webhook in Slack:
*
* 1. Navigate to https://<your-team-domain>.slack.com/services/new
*
@arsho
arsho / Basic Commands.md
Last active October 16, 2021 23:20
Step by step installation procedure of Docker in a ubuntu machine. Run Django, Flask, PHP using Docker and Docker compose

Docker

Build image
docker build -t CONTAINER_NAME .
Run container
docker run CONTAINER_NAME -p 3013:3000
@sdorsett
sdorsett / consul-a-install.txt
Last active February 7, 2022 11:12
install 3 node consul cluster on Centos 7
yum install -y epel-release
yum install -y bind-utils unzip jq
cd ~/
wget https://releases.hashicorp.com/consul/1.0.2/consul_1.0.2_linux_amd64.zip
unzip consul_1.0.2_linux_amd64.zip
mv consul /usr/local/bin/
adduser consul
mkdir /etc/consul.d
chown -R consul:consul /etc/consul.d/
mkdir /var/consul
@Neo23x0
Neo23x0 / audit.rules
Last active January 13, 2024 14:12
Linux Auditd Best Practice Configuration
# IMPORTANT!
# This gist has been transformed into a github repo
# You can find the most recent version there:
# https://github.com/Neo23x0/auditd
# ___ ___ __ __
# / | __ ______/ (_) /_____/ /
# / /| |/ / / / __ / / __/ __ /
# / ___ / /_/ / /_/ / / /_/ /_/ /
# /_/ |_\__,_/\__,_/_/\__/\__,_/