Skip to content

Instantly share code, notes, and snippets.

View ndkhoa's full-sized avatar

Nguyen Dang Khoa ndkhoa

View GitHub Profile
{"version":1,"resource":"file:///Users/thanhpq/workspace/company/Web_Dashboard/src/components/partners/FormInput.vue","entries":[{"id":"Wv9k.vue","timestamp":1655381418898},{"id":"0mlC.vue","timestamp":1655381485195},{"id":"YGan.vue","timestamp":1655381646926},{"id":"F6D8.vue","timestamp":1655381678272},{"id":"teG3.vue","source":"Fix all ESLint auto-fixable problems","timestamp":1655381745126},{"id":"oagL.vue","timestamp":1655381755517},{"id":"SZDY.vue","timestamp":1655381843919},{"id":"5zZT.vue","timestamp":1655381856625},{"id":"fkad.vue","timestamp":1655381947447},{"id":"cUcg.vue","timestamp":1655381989203},{"id":"YGJD.vue","timestamp":1655382140168},{"id":"Tji8.vue","timestamp":1655382308699},{"id":"K2ZT.vue","timestamp":1655395677842},{"id":"He3g.vue","source":"Fix all ESLint auto-fixable problems","timestamp":1655395749737},{"id":"8Dqv.vue","timestamp":1655395750994},{"id":"N7lu.vue","source":"Fix all ESLint auto-fixable problems","timestamp":1655395759685},{"id":"ozZl.vue","timestamp":1655395788763},{"i
@markheath
markheath / docker-compose-v1.yml
Last active November 20, 2025 12:00
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:
@John-Almardeny
John-Almardeny / noti.sh
Last active December 7, 2018 06:55
Create a Notification With Sound with a Given Message and Time in Linux-Like OS
#!/bin/sh
# https://gist.github.com/John-Almardeny/04fb95eeb969aa46f031457c7815b07d
# Create a Notification With Sound with a Given Message and Time
# The Downloaded Sound is from Notification Sounds https://notificationsounds.com/
MSSG="$1"
TIME="$2"
# install wget if not found
@Jonalogy
Jonalogy / handling_multiple_github_accounts.md
Last active October 31, 2025 02:52
Handling Multiple Github Accounts on MacOS

Handling Multiple Github Accounts on MacOS

The only way I've succeeded so far is to employ SSH.

Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:

Host *
 AddKeysToAgent yes

> UseKeyChain yes

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@nweddle
nweddle / agnoster-newline.zsh-theme
Created March 11, 2016 21:25
Agnoster ZSH Theme with New Line
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
# Make sure you have a recent version: the code points that Powerline
@PurpleBooth
PurpleBooth / README-Template.md
Last active December 3, 2025 00:19
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@vsouza
vsouza / .bashrc
Last active September 19, 2025 15:41
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin
@mlanett
mlanett / rails http status codes
Last active November 14, 2025 15:11
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing