Skip to content

Instantly share code, notes, and snippets.

View arjunkori's full-sized avatar

Arjun Kori arjunkori

  • Koricorp LTD
  • Mumbai,Maharastra,India
  • 05:06 (UTC +05:30)
View GitHub Profile
@arjunkori
arjunkori / gist:5c5608f02fe8183c23f0930ed26b5510
Created May 4, 2022 10:17
AWS S3 Policy For Private Repository
# REACT Project AWS s3 Hosting
# Provate S3 Bucket
S3 Policy
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
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
On mac
cd $HOME/.ssh
ssh-keygen -> codecommit_rsa (filename)
create file named empty config on ssh directory
touch config
chmod 600 config
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
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]
mysqlimport --ignore-lines=1 \--fields-terminated-by=, --local \--host 127.0.0.1 -u root -p password TableName.csv
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);
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
/*
* 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
@arjunkori
arjunkori / OpenSSH KEY Authentication Account Enumeration
Last active November 18, 2018 06:48
How to secue OpenSSH --OpenSSH S/KEY Authentication Account Enumeration
sudo vi /etc/ssh/sshd_config
ChallengeResponseAuthentication yes
AllowTcpForwarding no
Then
quite vim
:wq