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
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 4.0" | |
} | |
} | |
} | |
provider "aws" { |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'CloudFormation template to deploy honeypot application on Amazon ECS' | |
Parameters: | |
VpcId: | |
Type: AWS::EC2::VPC::Id | |
Description: The VPC ID where the ECS cluster will be created | |
PublicSubnet1: | |
Type: AWS::EC2::Subnet::Id |
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
AWSTemplateFormatVersion: '2010-09-09' | |
Description: 'CloudFormation template for Honeypot ECS Service in ap-southeast-1' | |
Parameters: | |
VpcId: | |
Type: AWS::EC2::VPC::Id | |
Description: The VPC ID where the ECS service will be deployed | |
PublicSubnet1: | |
Type: AWS::EC2::Subnet::Id |
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
cd /path/to/my/repo | |
git remote add origin https://username@bitbucket.org/username/example.git | |
git push -u origin master # to push changes for the first time |
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
lsb_release -a | |
uname -a |
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
https://niiconsulting.com/checkmate/2017/06/a-detail-guide-on-oscp-preparation-from-newbie-to-oscp/ | |
https://resources.infosecinstitute.com/top-10-linux-distro-ethical-hacking-penetration-testing/#gref |
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
https://help.github.com/en/articles/adding-an-existing-project-to-github-using-the-command-line | |
echo "# scoreKeeper" >> README.md | |
git init | |
git add . | |
git add README.md | |
git commit -m "first commit" | |
git remote add origin https://github.com/jazst21/scoreKeeper.git | |
git push -u origin master |
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
import React from 'react'; | |
import config1, { Title, Players } from './Config'; | |
class App extends React.Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
name: "xx", | |
score: 5 | |
}; |
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
import React from 'react'; | |
import config1, { Title, Players } from './Config'; | |
import PlayersData from '../api/PlayersData'; | |
import { Tracker } from 'meteor/tracker'; | |
Tracker.autorun(() => { | |
console.log('players list =', PlayersData.find().fetch()); | |
}) | |
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
import { Meteor } from 'meteor/meteor'; | |
import PlayersData from '../imports/api/PlayersData'; | |
import { Players } from '../imports/ui/Config.js'; | |
Meteor.startup(() => { | |
Players.map(player => { | |
PlayersData.insert({ | |
name: player.name, | |
score: player.score | |
}) |
NewerOlder