Skip to content

Instantly share code, notes, and snippets.

View ganezasan's full-sized avatar
🎉
Happy

Taka ganezasan

🎉
Happy
View GitHub Profile
@ganezasan
ganezasan / config.yml
Created January 16, 2020 02:17
shallow clone example
# copy from this orb
# https://circleci.com/orbs/registry/orb/guitarrapc/git-shallow-clone
version: 2.1
commands:
checkout_shallow:
description: checkout with git shallow clone. Support Alpine, Ubuntu, Debian and
others.
parameters:
depth:
@ganezasan
ganezasan / webpack.config.js
Created June 3, 2020 07:58
Select the parallel setting for fixing the OOM issue in webpack4
const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
optimization: {
minimizer: [
new TerserPlugin({
parallel: 2,
}),
],
}
@ganezasan
ganezasan / debug.md
Created August 23, 2020 14:08
clean-up-nomad-client

enable drain

$ nomad node-drain -self -enable

manually remove nomad client data file

!#/bin/bash
export NOMAD_DATA_ROOT=/opt/nomad
for ALLOC in `ls -d $NOMAD_DATA_ROOT/alloc/*`; do 
 for JOB in `ls ${ALLOC} | grep -v alloc`; do 

Keybase proof

I hereby claim:

  • I am ganezasan on github.
  • I am takayukiito (https://keybase.io/takayukiito) on keybase.
  • I have a public key ASASGZrAP6UC-8-gmrUzrGDnEGVi5x8FGqqp2fQm6DzeKgo

To claim this, I am signing this object: