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
| # Create a CA key | |
| openssl genrsa 2048 > ca-key.pem | |
| # Create a CA cert | |
| openssl req -new -x509 -nodes -days 365000 -key ca-key.pem -out ca-cert.pem | |
| # Create a server key | |
| openssl req -newkey rsa:2048 -nodes -days 365000 -keyout server-key.pem -out server-req.pem | |
| # Create a client key |
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
| First create a cloud config YAML file, save it for example, as "my-user-data.yaml" | |
| --- | |
| #cloud-config | |
| hostname: ubuntu-vm1 | |
| users: | |
| - default | |
| - name: someuser |
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
| # Tmux Config File Location | |
| ~/.tmux.conf | |
| # tmux Config Not Applied | |
| # All TMUX sessions must be killed first | |
| # Kill tmux server | |
| tmux kill-server | |
| # or | |
| killall tmux |
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
| openssl genrsa -des3 -out ca.key 4096 | |
| openssl req -new -x509 -days 1000 -key ca.key -out ca.crt | |
| openssl genrsa -des3 -out client.key 4096 | |
| openssl req -new -key client.key -out client.csr | |
| openssl x509 -req -days 1000 -in client.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out client.crt | |
| openssl pkcs12 -export -clcerts -in client.crt -inkey client.key -out client.p12 | |
| openssl pkcs12 -in client.p12 -out client.pem -clcerts |
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
| global | |
| log /dev/log local0 | |
| log /dev/log local1 notice | |
| chroot /var/lib/haproxy | |
| stats socket /run/haproxy/admin.sock mode 660 level admin | |
| stats timeout 30s | |
| user haproxy | |
| group haproxy | |
| daemon |
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
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
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
| sudo apt-get install xrdp xorgxrdp | |
| echo xfce4-session > ~/.xsession && chmod a+x ~/.xsession | |
| sudo service xrdp restart |
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
| <build> | |
| <plugins> | |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-assembly-plugin</artifactId> | |
| <executions> | |
| <execution> | |
| <phase>package</phase> | |
| <goals> | |
| <goal>single</goal> |