Skip to content

Instantly share code, notes, and snippets.

View v6's full-sized avatar
💭
// , ALWAYS serious at http://basanese.com

Nathan Basanese v6

💭
// , ALWAYS serious at http://basanese.com
View GitHub Profile
@v6
v6 / business-hrs.sentinel
Created November 18, 2019 18:17 — forked from rigelreyes/business-hrs.sentinel
Sentinel Test files
import "time"
# Expect requests to only happen during work days (Monday through Friday)
# 0 for Sunday and 6 for Saturday
workdays = rule {
time.now.weekday > 0 and time.now.weekday < 6
}
# Expect requests to only happen during work hours (7:00 am - 6:00 pm)
workhours = rule {
How would Vault's encryption handle attacks from quantum computers?
I've been researching HashiCorp Vault lately, and I really like that it uses strong cryptography for it's core security mechanisms.
https://www.vaultproject.io/docs/internals/security.html#external-threat-overview
I want to learn more about this, because it's interesting to discuss.
And it may end up affecting many security systems that rely on conventional mechanisms of cryptography in the future, as the technology advances and state actors begin to adopt it.
@v6
v6 / install_fpm.sh
Created March 18, 2017 01:29 — forked from boardstretcher/install_fpm.sh
Install FPM on centos 6.5
# install ruby, rubygems and all requirements, then install FPM (effing package manager)
# fpm: https://github.com/jordansissel/fpm
# as root
# update system, install requirements
yum update -y
yum install ruby-devel gcc curl libyaml-devel
# get the ruby version manager and install
curl -L get.rvm.io | bash -s stable
@v6
v6 / fabfile.py
Last active August 29, 2015 14:13 — forked from kpantic/fabfile.py
from fabric.api import (task, local, lcd)
"""
The pep8 and jshint tasks return False if errors were found and True if found.
The show_errors parameter controls if the method prints out the errors returned by
the checker program.
Requirements: Install pep8 and jshint, so that they can be run from the command line
- pip install pep8