Skip to content

Instantly share code, notes, and snippets.

View dehowell's full-sized avatar

David Howell dehowell

View GitHub Profile
@dehowell
dehowell / langoliers.rb
Created April 26, 2021 00:12 — forked from robinsloan/langoliers.rb
The Langoliers, a tweet deletion script
require "rubygems"
require "twitter"
require "json"
# things you must configure
TWITTER_USER = "your_username"
MAX_AGE_IN_DAYS = 1 # anything older than this is deleted
# get these from dev.twitter.com
CONSUMER_KEY = "your_consumer_key"
@dehowell
dehowell / fix_rpt_files.py
Last active July 23, 2020 21:32
Script for correcting Jamie's data files
#!/usr/local/bin/python3
import csv
import itertools
import os
import os.path
import statistics
import sys
import traceback
@dehowell
dehowell / jamf.md
Created May 29, 2020 23:43 — forked from a7ul/jamf.md
removing all restrictions on jamf managed macos device - Provided you have root access.

REMOVE JAMF RESTRICTIONS ON MAC

REMOVE ONLY RESTRICTIONS

sudo jamf removeMDMProfile removes all restrictions

sudo jamf manage brings back all restrictions and profiles

REMOVE ALL RESTRICTIONS AND DISABLE JAMF BINARIES WHILE KEEPING YOUR ACCESS TO VPN AND OTHER SERVICES

sudo jamf removeMDMProfile removes all restrictions

@dehowell
dehowell / mappleton.css
Created March 30, 2020 12:04
Custom Roam Styles
/* Make sure you have the fonts Lato and Open Sans installed locally on your machine.
They're free to download from Google:
https://fonts.google.com/specimen/Lato
https://fonts.google.com/specimen/Open+Sans
Swiped from Maggie Appleton
*/
h1,
@dehowell
dehowell / example.enex
Last active March 15, 2024 22:38
Example ENEX file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export3.dtd">
<en-export export-date="20180618T160801Z" application="Evernote" version="Evernote Mac 7.1.1 (456642)">
<note><title>Example Note</title><content><![CDATA[<!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"><en-note><div>Hi Tiago!</div></en-note>]]></content><created>20180618T160708Z</created><updated>20180618T160751Z</updated><note-attributes><author>David Howell</author><source>desktop.mac</source><reminder-order>0</reminder-order></note-attributes></note>
</en-export>
@dehowell
dehowell / Evernote+Link+Network.ipynb
Created May 2, 2018 11:22
Evernote Link Network
@dehowell
dehowell / config.js
Created March 26, 2018 00:18
Getting Serverless variables from terraform state
const exec = require('child_process').exec;
function terraformOutput(name, tfModule) {
let mod = tfModule != undefined ? `-module ${tfModule}` : '';
let cmd = `terraform output -json ${mod}`;
let outputs = new Promise((resolve, reject) => {
exec(cmd, {'cwd': 'infrastructure'},
(error, stdout, stderr) => {
if (error) reject(error);
@dehowell
dehowell / Analyzer.java
Created March 29, 2017 23:15
Visit Classes Used
import org.apache.bcel.Repository;
import org.apache.bcel.classfile.Constant;
import org.apache.bcel.classfile.ConstantClass;
import org.apache.bcel.classfile.ConstantPool;
import org.apache.bcel.classfile.JavaClass;
/**
* Prototype code to walk the graph of referenced classes, for use hunting down dead code.
*/
public class Analyzer {
@dehowell
dehowell / fix_cbcl_data.py
Created February 4, 2017 01:25
Script to correct to manipulate CBCL data file
#!/usr/bin/env python
'''
usage: %s input_file output_file
'''
import collections
import csv
import sys
@dehowell
dehowell / .gitignore
Last active July 13, 2016 09:33
One-Dimensional Cellular Automaton in Elixir
*.beam