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://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04 | |
# https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-04 | |
# https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-18-04 | |
# https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-on-ubuntu-18-04#installing-the-oracle-jdk | |
# https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-18-04 | |
# install nginx | |
sudo apt update | |
sudo apt install nginx | |
sudo ufw app list |
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
alias l='ls -lah' | |
alias gac='git add . && git commit -am' | |
alias gi='git init && gac "init"' | |
alias gc='git checkout' | |
alias glo='git pull origin' | |
alias gd='gc develop && glo develop && gc master && glo master && git merge develop && git push' | |
alias prt='prettier --write ./*.js' |
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
mkdir -p src/components/$1 | |
touch src/components/$1/$1.scss | |
sed -e "s/COMPONENT_NAME/$1/g" ~/code_templates/component.js > src/components/$1/index.js |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "edit0", | |
"Effect": "Allow", | |
"Action": [ | |
"lambda:CreateFunction", | |
"lambda:List*", | |
"lambda:Get*", |
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://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/APIGateway.html#getExport-property | |
const fs = require("fs"); | |
const AWS = require("aws-sdk"); | |
const path = require("path"); | |
const apigateway = new AWS.APIGateway({ | |
apiVersion: "2015-07-09", | |
region: "us-east-1" | |
}); | |
const getExport = params => { |
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
# ~/code_templates/component.js | |
import React from 'react'; | |
import './COMPONENT_NAME.scss'; | |
function COMPONENT_NAME() { | |
return <div>Hello</div>; | |
} | |
export default COMPONENT_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
#!/bin/bash | |
echo "Starting sctipt $0" | |
display_usage() { | |
echo | |
echo "Usage: $0" | |
echo | |
echo " -h, --help Display usage instructions" | |
echo " -p, --print Print welcome message" | |
echo | |
} |
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
function resolveSequentially(promisesArray) { | |
return promisesArray.reduce((accumulatorPromise, promise) => { | |
return accumulatorPromise | |
.then(() => { | |
return promise; | |
}) | |
}, Promise.resolve()); | |
} |
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
# update & upgrade | |
sudo apt update && apt upgrade | |
# create user | |
adduser <username> | |
# install packages | |
apt install tilix maltego metasploit-framework burpsuite wireshark aircrack-ng hydra nmap beef-xss nikto | |
# install tor |
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
get detail for package: https://registry.npmjs.org/object-remap | |
get detail for package by veriosn: https://registry.npmjs.org/object-remap/0.0.8 | |
https://github.com/npm/registry/blob/master/docs/download-counts.md | |
https://api.npmjs.org/downloads/point/2000-01-01:3000-01-01/object-remap | |
http://registry.npmjs.org/-/package/babel-core/dist-tags | |
https://api.npms.io/v2/search?q=cross+spawn | |
https://api.npms.io/v2/package/react |