Skip to content

Instantly share code, notes, and snippets.

View danhunsaker's full-sized avatar

Hennik Hunsaker danhunsaker

View GitHub Profile
@benspaulding
benspaulding / ReadMe.md
Last active February 8, 2018 04:55
Simple start for a Python web app on nanobox.io

Test if Nanobox Python is configured properly

Sometimes getting caught up in the configuration of gunicorn or uWSGI with the configuration of nanobox can be confusing. If you are not getting what you expect, starting here can be a good way to know if you have ports configured properly.

local

When running nanobox run remember that:

@cullan
cullan / nanobox_latest_backup.sh
Last active November 20, 2019 08:59
Nanobox fetch latest backup
#!/bin/bash
# grab the latest backup from the warehouse data hoarder
# this file goes in the root of the nanobox project.
# it assumes you followed the backup guide:
# https://content.nanobox.io/data-safety-with-nanobox-backup-and-recovery/
port=7410
address="https://localhost:$port/blobs"
token=$(nanobox evar ls | awk '/DATA_HOARDER_TOKEN/ {print $3}')
@tylerflint
tylerflint / README.md
Last active November 21, 2016 10:00
Nanobox run & deploy

Major changes

We have been working on some exciting changes! This is a fundamental shift in workflow, in how nanobox is used, and how nanobox works for you. After about a dozen conversations that all followed the same pattern, it occurred to us: Nanobox needs to be simpler, it needs to get out of the way. And that's exactly what we did, we threw away the clunky workflow and started over.

Overview

Excluding one-time-only administrative commands like adding evars, Nanobox has been stripped down to two primary commands:

nanobox run
@0xadada
0xadada / github-latest-release.sh
Created July 8, 2015 15:56
Download latest GitHub project release
curl -LOk `curl --silent https://api.github.com/repos/jasmine/jasmine/releases/latest | /usr/bin/awk '/browser_download_url/ { print $2 }' | /usr/bin/sed 's/"//g'`
@tylerflint
tylerflint / nanobox-expectation-values.md
Last active August 25, 2017 19:21
Nanobox dev expectations and values

You are an artisan, not an engineer

An engineer makes something work. You are more than that, you are an artisan. Artisans practice a craft and may through experience and aptitude reach the expressive levels of an artist.

Approach your work as a master craftsman.

Style matters

Just because we're building infrastructure and tools doesn't mean it can't be cool, stylish, and fun. Aesthetic matters. See The Substance of Style

@dyatlov
dyatlov / hb-test.py
Last active April 9, 2020 20:03
OpenSSL heartbeat PoC with STARTTLS support - Python3 version
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
import re
import codecs
@takeshixx
takeshixx / hb-test.py
Last active July 4, 2024 03:29
OpenSSL heartbeat PoC with STARTTLS support.
#!/usr/bin/env python2
"""
Author: takeshix <takeshix@adversec.com>
PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org).
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP.
"""
import sys,struct,socket
from argparse import ArgumentParser