This file contains hidden or 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
package com.elm.mb.rest.filters; | |
import java.io.IOException; | |
import javax.servlet.FilterChain; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import org.apache.commons.logging.Log; |
This file contains hidden or 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
$('#change-password').bootstrapValidator({ | |
feedbackIcons: { | |
valid: 'glyphicon glyphicon-ok', | |
invalid: 'glyphicon glyphicon-remove', | |
validating: 'glyphicon glyphicon-refresh' | |
}, | |
fields: { | |
'new-password': { | |
validators: { | |
identical: { |
This file contains hidden or 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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 | |