Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
"UserData": { | |
"Fn::Base64": { "Fn::Join":["", [ | |
"#!/bin/bash -ex\n", | |
"apt-get update\n", | |
"apt-get -y install python-setuptools\n", | |
"mkdir aws-cfn-bootstrap-latest\n", | |
"curl https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | tar xz -C aws-cfn-bootstrap-latest --strip-components 1\n", | |
"easy_install aws-cfn-bootstrap-latest\n", | |
"/usr/local/bin/cfn-init --stack ", { "Ref":"AWS::StackName" }, " --resource WebServer", " --region ", { "Ref": "AWS::Region" }, "\n", | |
"\n", |
@Data | |
@Component | |
@ConfigurationProperties(prefix = "sample") | |
@Validated | |
public class SampleProperties { | |
@NotNull | |
private String sample1; | |
} |
module.exports.handler = function (event, context, callback) { | |
let body = ` | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Serverless Home</title> | |
<style> | |
.hidden { |
@startuml | |
node "VPC A" as VpcA | |
node "VPC B" as VpcB | |
VpcA -> VpcB : TCP/4407 | |
VpcB -> VpcA : TCP/3306 | |
@enduml |
@SpringBootApplication | |
public class Main { | |
public static void main(String[] args) { | |
final ConfigurableApplicationContext context = SpringApplication.run(Main.class, args); | |
final AppBean app = context.getBean(AppBean.class); | |
app.run(args); | |
} | |
} |
Right now I managed to reproduce another issue that has affected my device for some time and it might be related:
for proj in ~/Projects/* ; do | |
if [[ -d "$proj" && -d "$proj/.git" ]]; then | |
echo -n "$proj: " | |
cd $proj && git branch | sed -n '/\* /s///p' | |
fi | |
done |
import javax.swing.*; | |
import javax.swing.event.TableColumnModelListener; | |
import javax.swing.event.TableColumnModelEvent; | |
import javax.swing.event.ChangeEvent; | |
import javax.swing.event.ListSelectionEvent; | |
import javax.swing.table.JTableHeader; | |
import javax.swing.table.TableColumn; | |
import javax.swing.table.DefaultTableColumnModel; | |
import java.awt.*; |