Skip to content

Instantly share code, notes, and snippets.

View mrchrisadams's full-sized avatar

Chris Adams mrchrisadams

View GitHub Profile
@wrightmartin
wrightmartin / gist:ca9ed23b32a05f98114d
Created June 10, 2015 14:50
How I test long names now
Daenerys Stormborn of the House Targaryen, the First of Her Name, the Unburnt, Queen of Meereen, Queen of the Andals and the Rhoynar and the First Men, Khaleesi of the Great Grass Sea, Breaker of Chains, and Mother of Dragons.
@simonw
simonw / wget.md
Created December 9, 2016 06:38
Recursive wget ignoring robots
$ wget -e robots=off -r -np 'http://example.com/folder/'
  • -e robots=off causes it to ignore robots.txt for that domain
  • -r makes it recursive
  • -np = no parents, so it doesn't follow links up to the parent folder
@zkat
zkat / index.js
Last active April 30, 2025 21:38
npx is cool
#!/usr/bin/env node
console.log('yay gist')
@rooreynolds
rooreynolds / CountEmail.gs
Last active June 2, 2022 20:09
Gmail email stats (Google Sheets script)
function CountEmail() {
var starredEmails = GmailApp.search('is:starred');
var newunreadEmails = GmailApp.search('is:unread label:inbox');
var urgentEmails = GmailApp.search('label:urgent');
var waitingEmails = GmailApp.search('label:waiting-for');
var chaseEmails = GmailApp.search('label:chase');
var draftEmails = GmailApp.search('in:draft');
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1");
{
"privacyStatement": "https://example.org/privacy.html",
"countriesDataHeld": ["IE", "LU"],
"portability": {
"description": "You can download your raw account data",
"url": "https://example.org/give-me-my-data.html"
},
"deletion": {
"description": "To delete your data, you must contact our support team",
"url": "mailto:[email protected]"
#!/bin/bash
# These functions expect CLOUD_PLATFORM to be bound to one of the values below.
# Read in if this is a specific cloud.
# cloud_platform options:
# AWS
# AZURE
# GCE
# ORACLE