Skip to content

Instantly share code, notes, and snippets.

@jschroed91
jschroed91 / README.md
Last active October 6, 2023 13:57
Installing pdo-dblib + freeTDS with MAMP 5 and php 7.1 on macOS

macOS pdo-dblib and freetds with MAMP 5

Note that this was written Jan 9th, 2019, and I personally have not tested this since then. It's possible it will still work for your machine, but I can't guarantee it.

Based on some comments, it looks like someone may have had success with it Dec 22, 2020 too.

Prerequisites

  • This was tested with MAMP 5, but probably works with other versions
  • This was tested with php 7.1.20 that was installed via MAMP interface
@jschroed91
jschroed91 / README.md
Last active January 9, 2020 15:55
Caxy Github Labels

This is a labels.json file to be used with the github-labels tool (node). The github-labels tool creates labels on a github repository by using a json file defining the label names and colors.

This is Caxy's default labels that faciliate the Caxy code review process.

Usage

Install github-labels globally if you don't have it

$ yarn global add github-labels
@jschroed91
jschroed91 / diffOutput.txt
Last active January 26, 2016 15:29
ICC-2853 / cdpACCESS-11300
<table class="diffmod"><tbody><tr><td><ins class="diffins">For SI: 1 inch = 25.4 mm, 1 pound per square foot = 4.88 kg/m</ins><sup class="diffmod"><ins class="diffins">2</ins></sup><ins class="diffins">, 1 pound per cubic foot = 16 kg/m</ins><sup class="diffmod"><ins class="diffins">3</ins></sup><ins class="diffins">.</ins></td><ins class="diffins">
</ins></tr></tbody></table><table><tbody><tr><td><ins class="diffins">ci = Continuous insulation, NR = No requirement, LS = Liner system.</ins></td><ins class="diffins">
</ins></tr></tbody></table><table><tbody><tr><td><ins class="diffins">a. Assembly descriptions can be found in ASHRAE 90.1 Appendix A. Framed wall assemblies in Table 402.1.3 correspond to assemblies in ASHRAE 90.1, Appendix A with 3-1/2 studs spaced 16 inches apart measured center to center. Where using the R-value compliance method for building design, wall assemblies having other stud spacings and depths and having equivalent U-factors in ASHRAE 90.1, Appendix A shall be an alternative.. C
@jschroed91
jschroed91 / diffOutput.txt
Created January 25, 2016 23:27
ICC-5136 / cdpACCESS-12412
<p class="diffmod">Compliance with this section requires that the provisions identified in Sections R401 through R404 labeled as "mandatory" and Section R403.5.3 <ins class="diffins">shall </ins>be met. <ins class="diffins">Fenestration U-factor and SHGC shall not exceed the maximum values for the climate zone set forth in Table R402.1.2. </ins>The<ins class="diffins"> remaining components of the</ins> building thermal envelope shall <del class="diffmod">be greater than</del><ins class="diffmod">comply with either the minimum R-values</ins> or <del class="diffmod">equal to levels of efficiency and Solar Heat Gain Coefficient</del><ins class="diffmod">maximum U-factors for the climate zones specified</ins> in Table <del class="diffmod">402.1.1 or 402.1.3 of the 2009 </del><em class="diffmod"><del class="diffmod">International Energy Conservation Code</del></em><del class="diffmod">.</del><ul class="diffmod exception"><li><strong><del class="diffmod">Exception:</del></strong><del class="diffmod"> Supply and ret
@jschroed91
jschroed91 / diffOutput
Last active January 26, 2016 15:49
ICC-5135 / cdpACCESS 5584
<p class="diffmod">The exterior wall envelope shall be designed and constructed in a manner that prevents the accumulation of water within the wall assembly by providing a water-resistant barrier behind the exterior veneer as required by Section R703.2 and a means of draining to the exterior water that enters the assembly. <ins class="diffins">For climate zones 1 to 4 where Table N1101.7 (R301 designates the city as A - Moist, the means for preventing the accumliation of water within the wall assembly shall be provided by:</ins></p><ins class="diffins">
</ins><ol class="diffmod"><li style="padding-left:30px;"><ins class="diffins">A drained and ventilated air space not less than 3/8 inch deep behind the exterior veneer, over the full height and width of the wall,</ins></li><ins class="diffins">
</ins><li style="padding-left:30px;" class="diffmod"><ins class="diffins">An open drainage material complying with ASTM E2925, is installed behind the exterior veneer, over the full height and width of the wall,</ins></
@tott
tott / harvest-bugger.php
Created February 3, 2014 11:04
For all those people who forget to run their harvest timer. Here's a little script that will bug you when you do. Runs on OSX.
<?php
/**
* Helper script that can be run in cron to bug you when you forgot to run a harvest timer.
* install terminal-notifier via:
* sudo gem install terminal-notifier
* Make sure to adjust your credentials.
* Schedule via crontab -e to run weekdays 9-5
* <star>/10 09-17 * * 1-5 php <path-to-script>
* replace <star> with *
*/