Skip to content

Instantly share code, notes, and snippets.

---
- name: Provision an EC2 Instance
hosts: local
connection: local
gather_facts: False
tags: provisioning
# Necessary Variables for creating/provisioning the EC2 Instance
vars:
instance_type: t1.micro
security_group: testserver # Change the security group name here
@azurebose
azurebose / sonarqube.service
Created March 1, 2023 03:18 — forked from W1R3D-Code/sonarqube.service
Running SonarQube as a Service on Linux with SystemD - /etc/systemd/system/sonarqube.service
[Unit]
Description=SonarQube service
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh start
ExecStop=/opt/sonarqube/bin/linux-x86-64/sonar.sh stop
@azurebose
azurebose / Pinball.java
Created October 14, 2022 14:26 — forked from antimatter15/Pinball.java
A simple pinball game in java
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Panel00 extends JPanel {
Timer t = new Timer(1, new Listener());
int ctr = 0;
double G = 0.1; //Gravitational Constant
final int xpos = 280;