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
# Kill program using one port | |
sudo fuser -k 8000/tcp | |
# Rename selected files using a regular expression | |
rename 's/\.bak$/.txt/' *.bak | |
# Get full path of file | |
readlink -f file.txt | |
# Who is logged in? |
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
# moved to https://github.com/przemyslawjanpietrzak/ubuntu-onStart/blob/master/main.sh |
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
#create s3 bucket | |
aws s3api create-bucket --bucket <bocket-name> --create-bucket-configuration LocationConstraint=eu-central-1 |
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
[ | |
{ | |
"enabled": true, | |
"updateUrl": "https://userstyles.org/styles/chrome/37035.json?ik-syntax-theme=ik-Twilight&ik-syntax-codemirror=ik-cm-twilight&ik-syntax-jupyter=ik-jp-twilight&ik-bg-choice=ik-yes&ik-bg-options=ik-Tiled&ik-bg-attachment=ik-Scroll&ik-tab-size=ik-0&ik-code-wrap=ik-nowrap&ik-base-color=%234183C4&ik-font-choice=Menlo&ik-bg-url=ik-default", | |
"md5Url": "https://update.userstyles.org/37035.md5", | |
"url": "http://userstyles.org/styles/37035", | |
"originalMd5": "e0b1ec80c4391daac7e3c42041092bf3", | |
"installDate": 1535963488323, | |
"sections": [ | |
{ |
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
# max warning numbers in eslint | |
if [ $(npm run lint | grep WARNING | wc -l) -gt 331 ]; then exit 1; fi |
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
// WRONG | |
// export class ROUTE { | |
// public static readonly LOGIN = '/login'; | |
// public static readonly RECRUITMENTS = '/recruitments'; | |
// public static readonly RECRUITMENT_EDIT = '/recruitments/:id'; | |
// } |
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
@Output() onChange = new EventEmitter(); // Explicit type parameter needs to be provided to the constructor | |
@Output() onChange = new EventEmitter<number>(); // OK | |
@Output() onChange = new EventEmitter<any>(); // also OK |
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
// WRONG | |
obj['key'] | |
// GOOD | |
obj.key |
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
// WRONG | |
const fn = (arg) => arg; | |
// GOOD | |
const fn1 = (arg: any) => arg; | |
// GOOD | |
const fn2 = (arg: number) => arg; |
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
const fn = () => { | |
if (true) { | |
return; // ERROR: Not all code paths return a value. | |
} | |
if (false) { | |
return 42; | |
} | |
} |