Skip to content

Instantly share code, notes, and snippets.

@maxfenton
maxfenton / a-new-mac-setup.md
Last active April 17, 2024 10:55
System setup stuff for a new OLD mac (a/o 2020)

New computer setup

a/o 2020-05-29

--

Format the drive

  1. Restart with Cmd-R or Cmd-D
  2. Erase drive / 3x if second-hand
  3. Reinstall MacOS
@maxfenton
maxfenton / gist:82a9843ceac7fa0a7493
Created November 5, 2013 21:35
Unofficial twitter API
<footer class='article-footer'>
{% if current.meta.footer %}{{ current.meta.footer | md }}{% endif %}
{% capture tweet_text %}I thoroughly enjoyed this post > "{{ current.title }}":{% endcapture %}
<a class='tweet-button' href='https://twitter.com/intent/tweet?original_referer={{ current.permalink | escape }}&text={{ tweet_text | escape }}&tw_p=tweetbutton&url={{ current.permalink | escape }}&via={{ site.meta.twitter }}' target='_blank'><span class='ss-icon ss-social-regular'>twitter</span><span id='twitter-count' class='count'></span></a>
<script>
function count_callback(data) { document.getElementById('twitter-count').innerHTML = data.count; }
var script = document.createElement('script');
script.setAttribute("src", 'http://urls.api.twitter.com/1/urls/count.json?callback=count_callback&url={{ current.permalink | escape }}');
document.getElementsByTagName("head")[0].appendChild(script);
</script>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Jacob Rus</string>
<key>comment</key>
<string>Created by Jacob Rus. Based on ‘Slate’ by Wilson Miner</string>
<key>name</key>
<string>Cowboy - Presentation</string>
@maxfenton
maxfenton / workofart.html
Created May 23, 2013 19:46
A WORK OF ART
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=WINDOWS-1252">
<meta name="generator" content="ABBYY FineReader 8.0">
<meta name="author" content="">
<meta name="description" content="">
<meta name="keywords" content="">
@maxfenton
maxfenton / villanelle.html
Last active December 12, 2015 08:49
Troubleshooting
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Embroidery Trouble Shooting Page </TITLE>
<BASE HREF="http://sewingandembroiderywarehouse.com">
<META http-equiv="content-type" content="text/html; charset=iso-8859-1">
<META name="generator" content="Microsoft FrontPage 5.0">
<META name="author" content="Darcy Robert">
<META name="keywords" content="Embroidery Machine Trouble Shooting, improper thread, burrs, dry hook, needle size,improper timing, wrong needle, thread to tight, damaged hook, dull needle, Embroidery Machine Trouble Shooting, improper thread, burrs, dry hook, needle size,improper timing, wrong needle, thread to tight, damaged hook, dull needle, Embroidery Machine Trouble Shooting, improper thread, burrs, dry hook, needle size,improper timing, wrong needle, thread to tight, damaged hook, dull needle ">
<META name="description" content="Embroidery Trouble Shooting Answers to all your questions about Embroidery problems">
@maxfenton
maxfenton / findandreplace
Created January 21, 2013 01:12
Find and replace on Believer magazine IDML files before exporting to RTF.
```
(\n|~>|~-|~~)
```
@maxfenton
maxfenton / gist:4559685
Created January 17, 2013 20:57
What is git (to me?)
Trying to find a way to explain Git to a writer
==============================================
Git is a system of distributed version control.
At its simplest, it keeps track of all the versions and modifications to a file and lets you roll back in time through them. At its best, it lets multiple authors contribute to a body of work without overwriting each other.
Git begain as a way of maintaining source code, and Github is a commercial site for securely storing and accessing your projects. Github is almost like a giant social network of open and closed source projects. Everyone stores their code there.
For example, I have all of believermag.com stored there. I make changes on my local machine, push them up to GitHub (which keeps a history of changes on every single file) and then upload them to the Believer site. If anything happens to the Believer, I can get the whole code back. In addition, if I started working with a co-editor, they would pull their code from GitHub, make changes, push them back.
@maxfenton
maxfenton / facebook-override.css
Created January 2, 2013 02:26
Shared styles for Facebook.
a.item.clearfix {
border-style: none;
}
a.item.clearfix.sortableItem {
border-color: #eee;
}
body {
background-color: #e7ebf2;
@maxfenton
maxfenton / jekyllsetup.md
Created November 30, 2012 20:50
Setting up jekyll

Trying to install Jekyll.

So I hit a little wall where the howtos weren't specific about what needed to be sudo'd and what didn't. The goal is to have a site in Dropbox that compiles with Jekyll for a book-length amount of text in blobby chunks. I'm on MacOS 10.8 on two computers, which is why Dropbox is the base for this project.