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
require 'base64' | |
require 'digest' | |
require 'openssl' | |
require 'fileutils' | |
module Jekyll | |
class ProtectedPage < Page | |
def aes256_encrypt(password, cleardata) | |
digest = Digest::SHA256.new | |
digest.update(password) |
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
--- | |
layout: default | |
--- | |
{{ page.title | escape}} | |
<div id="content"> | |
Insert password for decryption | |
<input id="password" type="password"> | |
<button onclick="decrypt()">Decrypt</button> |
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
docker: | |
- image: circleci/python:3.6.1 | |
steps: | |
- checkout | |
- setup_remote_docker | |
- run: | |
name: Install AWScli | |
command: pip install awscli --upgrade --user |
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
--- | |
- hosts: vpn | |
tasks: | |
- name: ensure ufw installed | |
apt: | |
name: ufw | |
update_cache: true | |
- name: ufw deny incoming | |
ufw: |
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
echo "LANG=en_US.utf-8" >> /etc/environment | |
echo "LC_ALL=en_US.utf-8" >> /etc/environment |
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
--- | |
- hosts: all | |
become: true | |
tasks: | |
- name: ensure ufw installed | |
apt: name=ufw update_cache=true | |
- name: ufw deny incoming | |
ufw: | |
direction: incoming |