Skip to content

Instantly share code, notes, and snippets.

@jazst21
jazst21 / main.tf
Created October 20, 2024 20:21
workshop terraform for honeypot application
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
provider "aws" {
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
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
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
lsb_release -a
uname -a
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
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
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
};
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());
})
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
})