Skip to content

Instantly share code, notes, and snippets.

View dm's full-sized avatar
🐍

ÐΛИIΞL MΔCΞDѲ dm

🐍
  • Marks and Spencers
View GitHub Profile
@dm
dm / config.yml
Created February 15, 2023 22:08
dm/mac-dev-playbook config file
---
downloads: ~/.ansible-downloads/
configure_dock: true
configure_dotfiles: true
configure_fonts: true
configure_iterm: true
configure_osx: true
configure_ssh: true
configure_sudoers: true
@dm
dm / keybase.md
Created September 12, 2020 20:43
Keybase Proof

Keybase proof

I hereby claim:

  • I am dm on github.
  • I am dmacedo (https://keybase.io/dmacedo) on keybase.
  • I have a public key ASAl1wlwhIrW-dRzkpfTBxnsTjZdE0CSqTH80lwrnvutcwo

To claim this, I am signing this object:

@dm
dm / docker-compose.yml
Created May 26, 2020 00:23
Firefly-iii docker-compose
---
version: '3'
networks:
traefik_network:
external:
name: homelabos_traefik
services:
app:
@dm
dm / S3-Static-Sites.md
Created October 2, 2018 11:29 — forked from bradwestfall/S3-Static-Sites.md
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation

Resources

@dm
dm / facebook-contact-info-summary.rb
Created March 23, 2018 22:54 — forked from dylanmckay/facebook-contact-info-summary.rb
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
# in whatever the working directory of the program is when executed.
#
@dm
dm / .block
Created March 12, 2018 14:01 — forked from mbostock/.block
Box Plots
license: gpl-3.0
@dm
dm / fetch_and_combine.py
Created February 6, 2018 16:37 — forked from larsyencken/fetch_and_combine.py
Aggregating CloudFront logs
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# fetch_and_combine.py
#
"""
Scans CloudFront logs in an S3 bucket for any that are new. Combines log files
into a single local file per hour. If logs for multiple CloudFront
distributions are present, combines them all.
@dm
dm / reset.sh
Created January 22, 2018 12:17 — forked from reedobrien/reset.sh
fix "Waiting for other installations to complete." on OSX 10.6 10.7
## fix "Waiting for other installations to complete." on OSX 10.6 10.7
## sometimes a failed installation leaves us unable to
## perform an installation. The following fixes it for me
sudo rm /private/var/db/mds/system/mds.install.lock
sudo reboot
@dm
dm / config.py
Created January 7, 2018 15:11 — forked from bonzanini/config.py
Twitter Stream Downloader
consumer_key = 'your-consumer-key'
consumer_secret = 'your-consumer-secret'
access_token = 'your-access-token'
access_secret = 'your-access-secret'