Skip to content

Instantly share code, notes, and snippets.

@epatr
epatr / ceu-html-template.html
Last active August 31, 2023 14:12
CEU Template
<div class="col">
<div class="card text-dark bg-light mb-5 shadow text-center">
<h5 class="card-header">{{card-header}}</h5>
<div class="card-body">
<h6 class="card-subtitle text-muted">{{card-date}}</h6>
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">{{list-item}}</li>
location = /xmlrpc.php {
deny all;
access_log off;
log_not_found off;
}
location ~* /wp-includes/.*.php$ {
deny all;
access_log off;
log_not_found off;
}
@epatr
epatr / gist:43b32e7b0c0e7c489dc2b9144d8576d6
Created May 7, 2019 21:14
denver-home-energy-score-pilot.html
<div class="row mb-3">
<div class="col-md-4 align-items-center text-center"><a href="https://energyscoreusa.com/wp-content/uploads/2019/04/HIPilot.png"><img class="img-fluid" src="https://energyscoreusa.com/wp-content/uploads/2019/04/HIPilot-300x103.png" /></a></div>
<div class="col-md-8 align-items-center">
Denver is running a pilot to explore how sharing Home Energy Scores can drive awareness and energy savings for prospective home buyers, sellers and those who have recently purchased. The pilot will pay for a single-family home in Denver to receive a Home Energy Score generated by a qualified Home Energy Score Certified Assessor. The Score provides comparable and credible information about a home’s energy performance using a 10-point score to reflect how much energy the home is estimated to use in total, not per square foot.
<hr />
</div>
</div>
@epatr
epatr / 7zextract.bat
Created November 13, 2018 23:19
Recursively extract and delete compressed files
:: To actually include the path expansion character (tilde), I had to give valid numbers; see http://ss64.com/nt/rem.html for bug reference. Also, try call /? for more info.
@REM The %~n0 extracts the name sans extension to use as output folder. If you need full paths, use "%~dpn0". The -y forces overwriting by saying yes to everything. Or use -aoa to overwrite.
@REM Using `x` instead of `e` maintains dir structure (usually what we want)
:: If you want recursive, use FOR /R
@FOR /R %%a IN (*.zip) DO @(
@if [%1] EQU [/y] (
@7z x "%%a" -o"%%~dpa" -aoa
) else if [%1] EQU [/yd] (
@7z x "%%a" -o"%%~dpa" -aoa
@epatr
epatr / scrollspy.html
Created October 12, 2018 16:47
Bootstrap Scrollspy Stylized
<body data-spy="scroll" data-target="#navbar-submenu" >
<nav id="navbar-submenu" class="navbar navbar-light bg-light py-0">
<ul class="nav m-auto justify-content-center">
<li class="nav-item"><a class="nav-link page-scroller" href="#understanding-the-home-energy-score">Understanding the Score</a></li>
<li class="nav-item"><a class="nav-link page-scroller" href="#realtors-and-agents-sell-homes-faster">Real Estate</a></li>
<li class="nav-item"><a class="nav-link page-scroller" href="#become-a-certified-assessor">Become an Assessor</a></li>
</ul>
</nav>

Keybase proof

I hereby claim:

  • I am epatr on github.
  • I am epatr (https://keybase.io/epatr) on keybase.
  • I have a public key whose fingerprint is E518 A6D6 A78E 35B8 DB8D E103 374D DDA2 3D0E 5DEE

To claim this, I am signing this object:

<%@ Page Title="Calculator" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Calculator.aspx.vb" Inherits="Fishbowl.Contact" %>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
<h2><%: Title %>: Gallons of water to fill my aquarium.</h2>
<table class="nav-justified">
<tr>
<td style="width: 136px">Length (inches):</td>
<td style="width: 200px">
<asp:TextBox ID="txtLength" runat="server" Width="50px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<title>New message from AmeriPro Inspection Corporation</title>
<style>@media only screen{html{min-height:100%;background:#f3f3f3}}@media only screen and (max-width:656px){table.body img{width:auto;height:auto}table.body center{min-width:0!important}table.body .container{width:95%!important}table.body .columns{height:auto!important;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:16px!important;padding-right:16px!important}table.body .columns .columns{padding-left:0!important;padding-right:0!important}th.small-12{display:inline-block!important;width:100%!important}.columns th.small-12{display:block!important;width:100%!important}}<
<div class="clearfix" id="assessors-in-action">
<a href="http://www.jmrodkey.com/" target="_blank"><img class="img-fluid float-lg-right p-3-3" src="/wp-content/uploads/2018/06/JMR_Inspections-300x151.png" alt="" width="300" height="151" /></a>
<h2>Assessors in Action</h2>
<em>A quick glance at the Home Energy Score Home Inspectors who are makin’ it work! </em>
<h5><strong>Inspector:</strong></h5>
John Rodkey
<h5><strong>Company:</strong></h5>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width=device-width"><title>Drone Training Courses Available Now</title><style>@media only screen{html{min-height:100%;background:#8C8979}}@media only screen and (max-width:696px){table.body img{width:auto;height:auto}table.body center{min-width:0!important}table.body .container{width:95%!important}table.body .columns{height:auto!important;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:16px!important;padding-right:16px!important}table.body .collapse .columns{padding-left:0!important;padding-right:0!important}th.small-12{display:inline-block!important;width:100%!important}}</style></head><body style="-moz-box-sizing:border-box;-ms-text-size-adjust:100%;-webkit-box-sizing:border-bo