Skip to content

Instantly share code, notes, and snippets.

View razzkumar's full-sized avatar
🚩
Exploring

razzkumar

🚩
Exploring
View GitHub Profile
@razzkumar
razzkumar / docker-compose-v1.yml
Created March 8, 2023 12:25 — forked from markheath/docker-compose-v1.yml
Elasticsearch docker compose examples
version: '2.2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.4.1
container_name: elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
/* Generated by Fontie - the magic webfont generator <http://fontie.flowyapps.com> */
@font-face {
font-family:'FiraCode-Regular';
src: url('FiraCode-Regular.eot');
src: url('FiraCode-Regular.eot?#iefix') format('embedded-opentype'),
url('FiraCode-Regular.woff') format('woff'),
url('FiraCode-Regular.ttf') format('truetype'),
url('FiraCode-Regular.svg#FiraCode-Regular') format('svg');
font-weight: 400;
@razzkumar
razzkumar / autoscaler-eks.ts
Created June 28, 2022 03:14 — forked from esys/autoscaler-eks.ts
eks cdk install cluster autoscaler
import * as cdk from "@aws-cdk/core";
import * as eks from "@aws-cdk/aws-eks";
import * as ec2 from "@aws-cdk/aws-ec2";
import * as iam from "@aws-cdk/aws-iam";
import { CfnJson } from "@aws-cdk/core";
export class MyCluster extends cdk.Construct {
constructor(scope: cdk.Construct, id: string) {
super(scope, id);
@razzkumar
razzkumar / README.md
Created April 5, 2022 04:40 — forked from straight-shoota/README.md
Unlink unused config files in sites-enabled with Ansible

This task cleans sites-enabled dir from config files that should not be enabled anymore Its quite easy to use a list of enabled sites to link their config files to sites-enabled, as shown in the last entry. There will still be links to the config files of sites that had been enabled in the previous ansible run, they need to be removed explicitly. The simple way would be to remove the sites-enablied directory alltogether. But this would allways require to create new links to the config files for enabled sites. Thus it would force a server restart even if there had really no changes at all. Defining a var disabled_sites is not quite a good idea since you would probably forget to add or remove items from that list at one time. So my solution is to list all config files that do not correspond to enabled sites and in a second step remove those.

I use it with nginx, but it should also work with apache/httpd or other configurations with a similar concept.

It would be easier to use just rm with an extended gl

@razzkumar
razzkumar / .vimrc
Created April 26, 2019 11:36 — forked from millermedeiros/.vimrc
My VIM settings (.vimrc)
" =============================================================================
" Miller Medeiros .vimrc file
" -----------------------------------------------------------------------------
" heavily inspired by: @factorylabs, @scrooloose, @nvie, @gf3, @bit-theory.
" =============================================================================
" -----------------------------------------------------------------------------
" BEHAVIOR
" -----------------------------------------------------------------------------