This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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\"" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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)' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder