Skip to content

Instantly share code, notes, and snippets.

View heymarkreeves's full-sized avatar

Mark Reeves heymarkreeves

View GitHub Profile

Keybase proof

I hereby claim:

  • I am circa1977 on github.
  • I am markreeves (https://keybase.io/markreeves) on keybase.
  • I have a public key whose fingerprint is 4FEF 6F96 C669 CB63 D65E 5C84 E655 B432 145E 2722

To claim this, I am signing this object:

@heymarkreeves
heymarkreeves / gist:1fd9ba158694b6cc81d3
Last active August 29, 2015 14:07
Wanted: DevOps Guns for Hire

As a follow up to my tweet that started a discussion today (https://twitter.com/circa1977/status/520207883783663616), here's what I'm looking for:

  • A skilled DevOps team that's available to book for on-call slots. DevOps in my mind are different than SysAdmins. They don't balk at getting into PHP (or other) code as necessary. They know how the platforms we're using work.

  • High-availability: These folks are going to be getting alerts at 2:00am or on weekends. That's part of the job. A part of the job that I'm not up for. That's expensive, and making this affordable is a big part of the challenge.

  • High-reliability: The first time this team has to escalate an issue back to me while I'm somewhere with my family or sleeping, it's no longer worry-free and I'm not getting what I paid for. They have to be able to handle this stuff.

  • Non-competitive: I don't want to hire another dev shop that's also booking the same sorts of projects I do. They need to be focused on knowing the apps, understanding real world

@heymarkreeves
heymarkreeves / gist:005b2e9a4039bcc2cd44
Created October 23, 2014 19:13
Labeling a thief who stole your site's design
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?mydomain.com/.*$ [NC]
RewriteRule ^css/styles\.css$ /thief.css [L]
background: linear-gradient(270deg, #ff0000, #ff8800, #ffff00, #00ff00, #0000ff, #8888ff, #8800ff);
background-size: 1400% 1400%;
-webkit-animation: AnimationName 30s ease infinite;
-moz-animation: AnimationName 30s ease infinite;
-o-animation: AnimationName 30s ease infinite;
animation: AnimationName 30s ease infinite;
@-webkit-keyframes AnimationName {
0%{background-position:0% 50%}
50%{background-position:100% 50%}
100%{background-position:0% 50%}
<!DOCTYPE html>
<html lang="{{ craft.app.language }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="referrer" content="origin-when-cross-origin" />
<title>{% if entry is defined %}{{ entry.title }} &bull; {% endif %}{{ siteName }}</title>
@charset "UTF-8";
@import "fonts";
@import "mixins";
@import "vars";
/*
* g- prefix: Global elements
* m- prefix: Modular elements
* s- prefix: Sitewide rules/styles
<svg class="visually-hidden" width="100%" height="100%" viewBox="0 0 100 100" preserveAspectRatio="none">
<defs>
<clipPath id="clip-path-header-hero" width="100%" height="100%" clipPathUnits="objectBoundingBox">
<path d="M.9406,.4412C1.0264,.7808,.778,.9934,.5232,.9856,.2524,.977-.172,.6024,.172,.3844,.38,.25,.243,.0264,.4716,.0158,.6314,.0084,.8736,.1766,.9406,.4412Z" />
</clipPath>
</defs>
</svg>

Web Technology for Progressive Candidates

Securing Your Campaign and Personal Life Online

The more aware of privacy and security concerns you are, and the more active you are in protecting your privacy and security online, the better prepared you'll be to look out for your constituents' privacy and data rights.

Read What I Learned Trying To Secure Congressional Campaigns, by Maciej Cegłowski.

Take security seriously, whether it's your own personal data, your campaign's data, or data belonging to your team or constituents.

systemd @ Arcustech

User level systemd setup - for things like laravel queue workers.

systemd is mainly used to manage services on modern linux distributions, but it also allows non-root users to manage services running under their own account. This makes systemd a great alternative to services like supervisord as it is able to detect crashes and automatically restarts the service.

Configuring a user unit

(1) The directory structure that holds unit files is similar to the systemwide configuration, but is located in a user's home directory:

<?php
/**
* @link https://clearbold.com
*/
namespace temp\temp\fields;
use Craft;
use craft\base\ElementInterface;
use craft\base\Field;