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
{ | |
"\u00e1\u00bb\u00a3": "ợ", | |
"\u00e1\u00bb\u009b": "ớ", | |
"\u00e1\u00bb\u0085": "ễ", | |
"\u00c3\u00a0": "à", | |
"\u00c6\u00a1": "ơ", | |
"\u00e1\u00bb\u0083": "ể", | |
"\u00c5\u00a9": "ũ", | |
"\u00c6\u00b0": "ư", | |
"\u00c3\u00ba": "ú", |
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
# This file isn't a script | |
mkdir v8 | |
cd v8 | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
export PATH=$PATH:$PWD/depot_tools | |
gclient sync #Can skip if error occur | |
fetch v8 | |
cd v8 |
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
Python Clean Code Tip: | |
When your module becomes too big you can restructure it to a package while keeping all the imports from the module as they were. | |
👇 | |
# BEFORE | |
# models.py | |
class Order: |
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 github.com | |
User git | |
Hostname github.com | |
PreferredAuthentications publickey | |
IdentityFile C:\Users\amdin\.ssh\id_rsa | |
IdentitiesOnly yes | |
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
Stop the container(s) using the following command: | |
``` | |
docker-compose down | |
``` | |
Delete all containers using the following command: | |
``` | |
docker rm -f $(docker ps -a -q) | |
``` | |
Delete all volumes using the following command: | |
``` |
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
docker save postgres > postgres.tar | |
# docker import [OPTIONS] file|URL|- [REPOSITORY[:TAG]] | |
docker import postgres.tar postgres:latest |
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
yarn cache clean | |
npm cache clean --force | |
npm cache verify | |
Remove-Item -path C:\Users\Admin\Downloads -recurse | |
Clear-RecycleBin -Force | |
<# | |
Note: Eliminate `-WhatIf` parameter to get action be actually done | |
Note: PS with version prior to 4.0 can't delete non-empty folders | |
#> |
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
echo -ne '##### (33%)\r' | |
sleep 1 | |
echo -ne '############# (66%)\r' | |
sleep 1 | |
echo -ne '####################### (100%)\r' | |
echo -ne '\n' | |
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 those have issue "Infinity loop" while run front-end locally in Chrome or new Egde development. Try to do following steps: | |
``` | |
Access chrome://flags/ or edge://flags/ | |
_> Searching for : SameSite by default cookies | |
_> Select Disable | |
_> Reset browser | |
``` | |
This is issue relate to New default SameSite configuration of Chrome and not affect in test or production environment ( because these site is same site with auth keycloak server ) |
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
export default TEST = { | |
createdAt: '2019/12/11 00.00.000', | |
updatedAt: '2019/12/11 00.00.000', | |
publishAt: '2019/12/11 00.00.000', | |
views: 1000, | |
taken: 100, | |
homeworkId: Object('12345'), | |
name: 'Listening test', | |
description: 'This test get from ABC IELTS book', | |
type: 'reading || listening || writing', |
NewerOlder