Skip to content

Instantly share code, notes, and snippets.

View noizbuster's full-sized avatar
😎
Awesome

NoizBuster (Wonwoo) noizbuster

😎
Awesome
View GitHub Profile
@noizbuster
noizbuster / my_winston_logger.js
Created January 8, 2019 07:07
my winston logger
const winston = require('winston');
require('winston-daily-rotate-file');
// can replace with values on configuration
const LOG_CONSOLE_LEVEL = 'debug';
const LOG_CONSOLE_JSON = true;
const LOG_FILE_LEVEL = 'info';
const LOG_FILE_NAME = 'VirtualWorkers-%DATE%.log';
// Winston Daily Rotate File : https://github.com/winstonjs/winston-daily-rotate-file
@noizbuster
noizbuster / .zshrc
Last active March 3, 2025 06:17
zshrc command alias
# aliases for system
alias apt_upgrade_sequence="sudo apt update && sudo apt dist-upgrade -y && sudo apt autoremove -y && sudo apt autoclean"
alias swapfree="sudo swapoff -a; sudo swapon -a"
# aliases for git
alias gits="git status"
alias gitf="git fetch --all --prune"
alias gitsave="git config credential.helper store"
alias gitreload="git fetch --all && git rev-parse --abbrev-ref HEAD | xargs -I {} git reset origin/{} --hard"
alias gitwip="git add . && git rev-parse --abbrev-ref HEAD | xargs -I {} git commit --no-verify -m \"{}-WIP\""
@noizbuster
noizbuster / disable_grub_timeout.sh
Created June 7, 2018 05:21
Disable timeout on grub
#!/bin/bash
sudo sed -i -- 's/GRUB_TIMEOUT=10/GRUB_TIMEOUT=-1/g' /etc/default/grub
cat /etc/default/grub | grep GRUB_TIMEOUT
sudo update-grub
# edit the ~/.gitconfig
# it's from https://stackoverflow.com/questions/1838873/visualizing-branch-topology-in-git
[alias]
lg = !"git lg1"
lg1 = !"git lg1-specific --all"
lg2 = !"git lg2-specific --all"
lg3 = !"git lg3-specific --all"
lg1-specific = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
@noizbuster
noizbuster / RTL8812AU.sh
Created February 23, 2017 05:12
Install RTL8812AU driver on ubuntu 14.04 (or higher)
#! /bin/bash
sudo apt-get install build-essential git
git clone https://github.com/gnab/rtl8812au.git
cd rtl8812au
make
sudo make install
sudo modprobe 8812au
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required