Skip to content

Instantly share code, notes, and snippets.

View bluetoothfx's full-sized avatar

Syed Refat Al Abrar bluetoothfx

View GitHub Profile
@bluetoothfx
bluetoothfx / journalctl
Last active January 7, 2020 20:36
simple journalctl usage
#Example
https://blog.selectel.com/managing-logging-systemd/
# export
sudo journalctl -u kestrel-mysite.service -o cat > log2.txt
#purge journalctl
sudo journalctl --rotate --vacuum-time=1s
#show recent log
@bluetoothfx
bluetoothfx / Basic Postgresql command
Last active November 23, 2019 20:01
Some quick command for Postgresql
TRUNCATE TABLE table_name RESTART IDENTITY;
TRUNCATE TABLE "AspNetUsers" CASCADE;
@bluetoothfx
bluetoothfx / Go_Lang_Setup.txt
Last active October 7, 2019 19:40
Start a go project
For windows:
1. install go package from following
https://golang.org/dl/
2. From Git bash (may follow like):
mkdir -p $GOPATH/src/<project-root>/<user-name>/<project-name>
example:
mkdir -p $GOPATH/src/github.com/bluetoothfx/restapi
3. If it fails to create GO folder then do set Go path by below command
Eventbus:
https://alligator.io/vuejs/global-event-bus/
Materialize Css:
https://materializecss.com
Open VS code in a specific directory
> code .
Open terminal VS Code
> Ctrl + `
Duplicate line:
> Alt + Shift + Up/Down Arrow
Move a Line Up/Down: