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
# REACT Project AWS s3 Hosting | |
# Provate S3 Bucket | |
S3 Policy | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", |
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
https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties | |
https://www.w3schools.com/sass/showsass.php?filename=demo_sass_mixin1 | |
https://scotch.io/starters/react/adding-sass-to-create-react-app-applications | |
https://sass-lang.com/documentation/at-rules/mixin | |
https://sass-lang.com/documentation/variables |
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
On mac | |
cd $HOME/.ssh | |
ssh-keygen -> codecommit_rsa (filename) | |
create file named empty config on ssh directory | |
touch config | |
chmod 600 config | |
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
aws lambda get-function --function-name cq-backend-profile-dev-api-getLanguageCode --query 'Code.Location' | |
you will get signed url | |
Paste the output URL in browser will download the code |
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
yum install mysql-server | |
chkconfig mysqld on | |
service mysqld start | |
Update password on your local MySQL server if you want, | |
mysqladmin -u root password [your_new_pwd] | |
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
mysqlimport --ignore-lines=1 \--fields-terminated-by=, --local \--host 127.0.0.1 -u root -p password TableName.csv |
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
PaymentUtil() { | |
this.indusIndFormatter = this.indusIndFormatter.bind(this); | |
this.space_gen = this.space_gen.bind(this); | |
this.hdfcFormatter = this.hdfcFormatter.bind(this); | |
this.hdfcFormatter_Part2 = this.hdfcFormatter_Part2.bind(this); |
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
nvm install v10.13.0 | |
nvm current | |
nvm run 6.10.3 app.js | |
nvm install v6.16.0 | |
nvm use v6.16.0 | |
pm2 show app_name |
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
/* | |
* MYSQL RESET AUTO INCREMENT TO 1 | |
*/ | |
SET @num := 0; | |
UPDATE your_table SET id = @num := (@num+1); | |
ALTER TABLE your_table AUTO_INCREMENT =1; | |
/* | |
* remove duplicate |
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
sudo vi /etc/ssh/sshd_config | |
ChallengeResponseAuthentication yes | |
AllowTcpForwarding no | |
Then | |
quite vim | |
:wq |
NewerOlder