- Terminal output to file: https://askubuntu.com/a/420983
This file contains 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
# For Grafana dashboard: https://grafana.com/grafana/dashboards/19458-wireguard-wirerest-jvm/ | |
# put these under `metrics.configs.scrape_configs` | |
- job_name: 'wirerest' | |
metrics_path: '/actuator/prometheus' | |
authorization: | |
credentials: YOUR_WIREREST_TOKEN | |
static_configs: | |
targets: ['YOUR_WIREREST_IP:8081'] |
This file contains 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
# from: https://github.com/microsoft/WSL/issues/4401#issuecomment-670080585 | |
# checks to see if we are in a windows or linux dir | |
function isWinDir { | |
case $PWD/ in | |
/mnt/*) return $(true);; | |
*) return $(false);; | |
esac | |
} | |
# wrap the git command to either run windows git or linux |
This file contains 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
/** | |
* Example: | |
* | |
* <ng-container *rerender='changingInput'> | |
* this content will be re-rendered everytime `changingInput` changes | |
* </ng-container> | |
*/ | |
import { Directive, | |
Input, |
Improved YARD CHEATSHEET http://yardoc.org
forked from https://gist.github.com/chetan/1827484 which is from early 2012 and contains outdated information.
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
This file contains 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
# HOST | |
# make symlink work on shared folder (from: https://github.com/npm/npm/issues/992#issuecomment-174154202) | |
VM_NAME="Ubuntu" | |
SHARE_NAME="sf_dev" | |
VBoxManage setextradata "$VM_NAME" VBoxInternal2/SharedFoldersEnableSymlinksCreate/$SHARE_NAME 1 | |
# check again | |
VBoxManage getextradata "$VM_NAME" enumerate | |
This file contains 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
brew upgrade node | |
brew upgrade yarn | |
yarn install --ignore-engines |
This file contains 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
fastboot boot ~/Downloads/twrp-3.2.3-0-nitrogen.img | |
adb shell | |
setprop persist.camera.HAL3.enabled 1 | |
setprop persist.camera.eis.enable 1 | |
exit |
This file contains 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
class User { | |
private _birthDate: string; | |
// can behave like a LAZY property | |
get birthDate(): string { | |
if (this._birthDate) { | |
return this._birthDate; | |
} | |
return this._birthDate = '1981-11-11'; |
This file contains 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
DESCRIPTION | TEXT | COLOR | |
---|---|---|---|
classic site | classic | green | |
PWA | PWA | red | |
API | API | blue | |
mobile | mobile | orange | |
unknown | unknown | gray | |
technical debt | debt | purple | |
chore | chore | purple | |
bug | bug | black |
NewerOlder