Skip to content

Instantly share code, notes, and snippets.

Jeremy Zimmerman stopspazzing

View GitHub Profile
View lets encrypt for hostin.mu & hostin.ru proof
Hello, Sorry to disturb you this way but I couldn't fine a way to reply on https://community.letsencrypt.org/t/web-hosting-who-support-lets-encrypt/6920. I am the CTO of Hostin and we support automatically LetsEncrypt (thanks to cPanel support ^^). We operate in Mauritius through https://www.hostin.mu/ and Reunion Island through https://www.hostin.re/ :) Thanks!
View main.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import aioodbc
from sanic import Sanic
from sanic.exceptions import NotFound
from sanic.response import file, redirect
from sanic_compress import Compress
@stopspazzing
stopspazzing / main.py
Created May 7, 2017
creates but doesnt save data to sqlite db?
View main.py
'Driver=SQLite3;Database=sqlite.db'
View error gargoyle and sftp
Status: Connecting to 192.168.1.1...
Status: Connected to 192.168.1.1
Error: Received unexpected end-of-file from SFTP server
Error: Could not connect to server
Status: Waiting to retry...
Status: Connecting to 192.168.1.1...
Response: fzSftp started, protocol_version=5
Command: open "root@192.168.1.1" 22
Command: Pass: ********
Status: Connected to 192.168.1.1
View overview.sh
<div class="row">
<h1 class="page-header"><%~ overview.Sts %></h1>
<div class="col-lg-4">
<div id="device_container" class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Device</h3>
</div>
<div class="panel-body">
<ul class="list-group">
View leverage browser caching in .htaccess
# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0
# Set up caching on media files for 1 year (forever?)
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
ExpiresDefault A29030400
Header append Cache-Control "public"
</FilesMatch>
@stopspazzing
stopspazzing / cli.py
Created Dec 30, 2015
Let's Encrypt CLI
View cli.py
"""Let's Encrypt CLI."""
# TODO: Sanity check all input. Be sure to avoid shell code etc...
# pylint: disable=too-many-lines
# (TODO: split this file into main.py and cli.py)
import argparse
import atexit
import functools
import json
import logging
import logging.handlers
View gist:c871f935771f14933c63
********* <sslsupport@namecheap.com>
Dec 13, 2015, 10:53 AM
to:
“emailremoved” <emailremoved>
Dear Jeremy,
We are deeply sorry to know that you have decided to end our relationships, both because we value your business and because we truly believe purchased SSL is a better choice in most cases.
We'll happily provide a 30% discount on your SSL renewal if you'll stay with us.
View gargoyle_footer_header.c
You can’t perform that action at this time.