Skip to content

Instantly share code, notes, and snippets.

@ray-moncada
ray-moncada / http_response_code.php
Created Feb 1, 2022 — forked from ewwink/http_response_code.php
PHP Class for HTTP Response Status Codes
View http_response_code.php
<?php
/**
* StatusCodes provides named constants for
* HTTP protocol status codes. Written for the
* Recess Framework (http://www.recessframework.com/)
*
* @author Kris Jordan
* @license MIT
* @package recess.http
*
View nginx-server-template.conf
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate /usr/local/etc/nginx/ssl/{{host}}.crt;
ssl_certificate_key /usr/local/etc/nginx/ssl/{{host}}.key;
ssl_ciphers HIGH:!aNULL:!MD5;
# listen 80;
server_name {{host}};
@ray-moncada
ray-moncada / vagrant-hostname-down.sh
Created Dec 24, 2021 — forked from gmcclins/vagrant-hostname-down.sh
manage a vagrant host with systemd
View vagrant-hostname-down.sh
#!/usr/bin/env bash
#
# script to stop vagrant box for use with systemd
# place scripts into /usr/lib/systemd/scripts/
# be sure to put the .service file in /lib/systemd/system/
#
# -- Geoffrey McClinsey
VAGRANTUSR=vagrant # user you want vagrant box to run as
VAGRANTBOXPATH= # add path to Vagrantfile