Skip to content

Instantly share code, notes, and snippets.

View jkarthid's full-sized avatar
😎
Data Scientist

Jayakarthi jkarthid

😎
Data Scientist
View GitHub Profile
@jkarthid
jkarthid / keybase.md
Last active September 23, 2020 19:08

Keybase proof

I hereby claim:

  • I am jkarthid on github.
  • I am jkarthid (https://keybase.io/jkarthid) on keybase.
  • I have a public key ASDJdM3p89i32jxr8kpMP7MwRSQDpV_ecTmVKMbIntanQgo

To claim this, I am signing this object:

@jkarthid
jkarthid / vpc-fargate.yaml
Created July 23, 2020 17:15 — forked from lizrice/vpc-fargate.yaml
Cloudformation template for setting up VPC and subnets for Fargate
# Usage:
# aws cloudformation --region <region> create-stack --stack-name <stack name> --template-body file://vpc-fargate.yaml
# This template will:
# Create a VPC with:
# 2 Public Subnets
# 2 Private Subnets
# An Internet Gateway (with routes to it for Public Subnets)
# A NAT Gateway for outbound access (with routes from Private Subnets set to use it)
#
@jkarthid
jkarthid / bitbucket-pipelines.yml
Created July 26, 2019 18:00 — forked from felipefernandes/bitbucket-pipelines.yml
Bitbucket pipeline for ftp deployment ( Node + Gulp + Bower + FTP + Rsync )
image: node:6.11.2
pipelines:
custom: # Pipelines that are triggered manually
deployment-to-production-init:
- step:
caches:
- node
script: # Modify the commands below to build your repository.
- npm install -g gulp
@jkarthid
jkarthid / clean-up-boot-partition-ubuntu.md
Created July 26, 2019 17:59 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@jkarthid
jkarthid / clone_all_bitbucket.sh
Created December 20, 2018 09:17 — forked from brunosaboia/clone_all_bitbucket.sh
Bash one-liner script to clone all repos from a Bitbucket team
for repo in $(curl -u {username} --raw https://api.bitbucket.org/1.0/users/{team} | sed -r 's/("name": )/\n\1/g' | sed -r 's/"name": "(.*)"/\1/' | sed -e 's/{//' | cut -f1 -d\" | tr '\n' ' '); do git clone git@bitbucket.org:{team}/$repo.git; done
@jkarthid
jkarthid / Jenkinsfile
Created January 4, 2018 07:33 — forked from chinshr/Jenkinsfile
Best of Jenkinsfile, a collection of useful workflow scripts ready to be copied into your Jenkinsfile on a per use basis.
#!groovy
# Best of Jenkinsfile
# `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins
node {
}
@jkarthid
jkarthid / pedantically_commented_playbook.yml
Created August 21, 2016 19:50 — forked from marktheunissen/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
@jkarthid
jkarthid / redis-server
Created March 2, 2016 23:15 — forked from tessro/redis-server
A CentOS initscript for Redis
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid