fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
apt update
apt install -y screen default-jdk
ln -s minecraft_server.1.7.4.jar minecraft_server.jar
screen -S minecraft
  1. Create new user (e.g. webhook) with the following permissions: Overall > Read, Job > Build, Job > Read & Job > Workspace. Login as the user and get their API token
  2. Under a job, enable "Trigger Builds Remotely" and set an authentication token
  3. Trigger a POST request with the following structure:


export DOMAIN=""
curl | sh
bash --login
mkdir -p /etc/nginx/certs/$DOMAIN/ --issue -d $DOMAIN -w /var/www/$DOMAIN/public/ --install-cert -d $DOMAIN \
--certpath /etc/nginx/certs/$DOMAIN/cert.pem \
--keypath /etc/nginx/certs/$DOMAIN/key.pem \
--fullchainpath /etc/nginx/certs/$DOMAIN/fullchain.pem \
View s3-redirect-routing-rules.xml
# Based on:
# Replace with desired domain (and x.domain instances)
openssl genrsa 2048 > x.domain.key
openssl req -new -x509 -nodes -sha1 -days 3650 -key x.domain.key > x.domain.cert
# Interactive prompt: enter * for the Common Name
openssl x509 -noout -fingerprint -text < x.domain.cert >
cat x.domain.cert x.domain.key > x.domain.pem
  1. Register a client at (redirect_uri can be something simple such as http://localhost)
  2. Go to the 'Security' tab for your client (under manage) and untick 'Disable implicit OAuth'
  3. Take the following URL, subsitute the [client_id] with your own and the [redirect_uri] with one you specified during the registration process:[client_id]&redirect_uri=[redirect_uri]&response_type=token
  4. Navigate to the URL in the browser (while logged in as the same user), after accepting any prompts you should be redirected to your specified redirect_uri with the access token appended


Javascript equivalents in quotes for comparison

AND (∧)

A ∧ B = a && b

OR (∨)

A ∨ B = a || b

NOT (¬)

View main.css
Based on ITCSS structure (
# Layers
- Settings: font, colors definitions, etc.
- Tools: globally used mixins and functions.
- Generic: reset/normalize styles, box-sizing definition, etc.
- Elements: styling for bare HTML elements.
- Objects: class-based selectors which define undecorated design patterns
- Components: specific UI components
View ip.domain.tld
server {
listen 80;
server_name ip.domain.tld;
add_header Content-Type text/plain;
return 200 $remote_addr;
View ssl_params
# USAGE TEMPLATE (within server block):
# ------------------------------------------------------------------------------
# include ssl_params;
# ssl_certificate /root/;
# ssl_certificate_key /root/;
# ssl_trusted_certificate /root/;
# ------------------------------------------------------------------------------
ssl on;