git submodule add https://github.com/janjarfalk/canvasrunner.git components/canvasrunner/
git submodule foreach git pull origin master
cd ..
git commit . -m "Updated submodules"
# install chocolatey (win pkg manager like apt or brew) | |
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
# install programing languages | |
choco install -y python3 golang nodejs # nvm instead of nodejs is a good option | |
# install apps | |
choco install -y vscode googlechrome 7zip.install vlc notepadplusplus.install git.install winscp curl putty | |
# install vm |
const logform = require('logform'); | |
const tripleBeam = require('triple-beam'); | |
const winston = require('winston'); | |
const errorHunter = logform.format(info => { | |
if (info.error) return info; | |
const splat = info[tripleBeam.SPLAT] || []; | |
info.error = splat.find(obj => obj instanceof Error); |
#!/bin/bash | |
# https://medium.com/better-programming/create-github-repos-remotely-25153a6e6890 | |
# GitHub API Token | |
GH_API_TOKEN='' | |
# GitHub User Name | |
GH_USER='' | |
# Variable to store first argument to setup-repo, the repo name. Will be used as GH repo name, too. | |
NEW_REPO_NAME=$1 | |
# Store current working directory. | |
CURRENT_DIR=$PWD |
#!/bin/bash | |
# configure env variable STAGE, OLDPWD | |
# run command in each folder | |
set -e | |
for path in $(ls projects); do | |
if [[ -d "projects/$path" ]] | |
then | |
echo "deploying $path" |
const execa = require("execa"); | |
const fs = require("fs"); | |
const awsCliGetCmd = ({ FunctionName = "", Version = "" }) => ({ | |
"list-functions": `aws lambda list-functions`, | |
"list-versions-by-function": `aws lambda list-versions-by-function --function-name ${FunctionName}`, | |
"delete-function": `aws lambda delete-function --function-name ${FunctionName} --qualifier ${Version}` | |
}); | |
const run = async cmd => { |
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 |
# 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 |
function resolveSequentially(promisesArray) { | |
return promisesArray.reduce((accumulatorPromise, promise) => { | |
return accumulatorPromise | |
.then(() => { | |
return promise; | |
}) | |
}, Promise.resolve()); | |
} |
#!/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 | |
} |