Skip to content

Instantly share code, notes, and snippets.

View andrewhummus's full-sized avatar
😏

Andrew N andrewhummus

😏
View GitHub Profile
@dapangmao
dapangmao / data.md
Last active September 28, 2023 06:50
Top 10 lessons learned from Dockerized Elasticsearch

Combining Docker and Elasticsearch together will make many things in life easier. Depending on the scales, there are three scenarios for an implementation of Elasticsearch use case -

    1. Single ES instance and single machine
    1. Multiple ES instances and single machine
    1. Multiple ES instances and multiple machines

Docker has three mechanisms corresponding to each of the scenarios above.

    1. Docker commands
    1. Docker Compose
@xDimGG
xDimGG / app.js
Created October 15, 2017 19:07
Basic Discord OAuth2 Example
const { get, post } = require('snekfetch');
const express = require('express');
const btoa = require('btoa');
const app = express();
const cfg = {
id: 'get_one',
secret: 'get_one'
};
const Discord = require("discord.js");
const fs = require('fs');
module.exports = class mute {
constructor(){
this.name = 'mute',
this.alias = ['tempmute'],
this.usage = 'mute';
}
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@andrewhummus
andrewhummus / coc-settings.json
Created September 7, 2021 01:27
modified coc settings
{
"codeLens.enable": true,
"coc.preferences.extensionUpdateCheck": "daily",
"coc.preferences.formatOnType": true,
"coc.preferences.willSaveHandlerTimeout": 1000,
"coc.preferences.formatOnSaveFiletypes": [
"c",
"python",
"rust",
"markdown",
@andrewhummus
andrewhummus / .vimrc
Created September 9, 2021 23:30
Simple monochrome vimrc for working with rust/python
syntax on
set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nu
set nowrap
set smartcase