Skip to content

Instantly share code, notes, and snippets.

View earth2marsh's full-sized avatar

Marsh Gardiner earth2marsh

View GitHub Profile
@scripting
scripting / slogans.js
Last active June 18, 2024 05:12
This function is included in every bit of software I write. Never know when you might need a random snarky slogan.
function getRandomSnarkySlogan (flReturnArray) { //8/15/14 by DW
const snarkySlogans = [
"Good for the environment.",
"All baking done on premises.",
"Still diggin!",
"It's even worse than it appears.",
"You should never argue with a crazy man.",
"Welcome back my friends to the show that never ends.",
"Greetings, citizen of Planet Earth. We are your overlords. :-)",
"We don't need no stinkin rock stars.",
@thesamesam
thesamesam / xz-backdoor.md
Last active June 27, 2024 15:18
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@Blackshome
Blackshome / bathroom-humidity-exhaust-fan.yaml
Last active July 1, 2024 06:51
bathroom-humidity-exhaust-fan.yaml
blueprint:
name: Bathroom Humidity Exhaust Fan
description: >
# 🚿 Bathroom Humidity Exhaust Fan
**Version: 2.5**
Step into the future of freshness - customize it your way and experience the convenience of automated humidity control! 🌿🚿
@ossobuffo
ossobuffo / SmartDocs2OpenAPI.php
Last active June 25, 2019 15:25
Script to convert SmartDocs export JSON to OpenAPI JSON
<?php
/**
* SmartDocs2OpenAPI
*
* @author danielejohnson@google.com
*
* IMPORTANT: Apigee and Google do not offer support for this script. It is
* only provided to customers as a courtesy.
*
* This script takes the output of a SmartDocs model export, and attempts to
@ramalho
ramalho / RethinkDB-why-we-failed.md
Created January 19, 2017 14:46
RethinkDB: why we failed
layout title
post
RethinkDB: why we failed

Posted on Github by Slava Akhmechet

When we [announced][shutdown-announcement] that RethinkDB is shutting down, I promised to write a post-mortem. I took some time to process the experience, and I can now write about it clearly.

// generateUuid.js
// ------------------------------------------------------------------
//
// created: Wed Dec 14 13:44:38 2016
// last saved: <2016-December-14 13:44:44>
function generateUUID(){
var d = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = (d + Math.random()*16)%16 | 0;
@kevinswiber
kevinswiber / siren.apib
Last active May 11, 2017 00:44
Siren described in MSON for API Blueprint
# Data Structures
## Entity (object)
An Entity is a URI-addressable resource that has properties and actions
associated with it. It may contain sub-entities and navigational links.
### Properties
- class (array[string], optional)
Describes the nature of an entity's content based on the current
representation. Possible values are implementation-dependent and
@Cosmeen
Cosmeen / hide-twitter-bloat.css
Last active May 14, 2016 05:09
hide-twitter-bloat.css for Stylish extension
/*
from @rem
https://twitter.com/rem/status/729628084115247104
*/
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("twitter.com") {
div[data-component-term="user-recommendations"],
div[data-component-term="trends"],
.promoted-tweet,
@kevinswiber
kevinswiber / rpc_vs_rest.md
Last active April 11, 2021 16:50
A brief moment of RPC vs. REST.

Screencapture and animated gifs

I say "animated gif" but in reality I think it's irresponsible to be serving "real" GIF files to people now. You should be serving gfy's, gifv's, webm, mp4s, whatever. They're a fraction of the filesize making it easier for you to deliver high fidelity, full color animation very quickly, especially on bad mobile connections. (But I suppose if you're just doing this for small audiences (like bug reporting), then LICEcap is a good solution).

Capturing (Easy)

  1. Launch quicktime player
  2. do Screen recording

screen shot 2014-10-22 at 11 16 23 am