/
index.html
137 lines (109 loc) · 8.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Only failure makes us experts</title>
<meta name="author" content="mjc">
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="/css/syntax.min.css" rel="stylesheet">
<!-- Le fav and touch icons -->
<!-- Update these with your own images
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">
-->
</head>
<body>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<div class="row">
<div class="span10 offset2">
<ul class="nav nav-tabs">
<li><a href="/">Home</a></li>
<li><a href="https://bitbucket.org/mc">Bitbucket</a></li>
<li><a href="https://github.com/mjc-">Github</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="jumbotron">
<h1><b>mjc's bitz and stuff</b></h1>
<small><p>you take your bitz, and you make stuff</p></small>
</div>
<div class="content">
<div class='row'>
<div class='span8'>
<h2>Recent Posts</h2>
</div>
<div class='span4'>
<h2>Sidebar</h2>
</div>
</div><div class='row'>
<div class='span4'>
<div class='posts'>
<h4><a href='/2012/11/20/making-freenx-server-work-without-nc--z.html'>Making freenx server work without nc -z</a></h4>
<p><span class='datetime'><small>20 Nov 2012</small></span></p>
<p>It seems RedHat folks are still improving software by way of breaking it. This particular hack I put in was to work around the replacement of the OpenBSD netcat with the new and improved one from nmap. Just one problem, it doesn’t support one of the handiest features from the OpenBSD version, simple port checking from shell scripts. The place of breakage I came across was in freenx-server. Ugly diff that may or may not...</p>
<p><a class='more' href='/2012/11/20/making-freenx-server-work-without-nc--z.html'>continue reading »</a></p>
<br />
<h4><a href='/2012/11/13/puppet-linting-in-emacs.html'>emacs goodness for your puppet linting needs</a></h4>
<p><span class='datetime'><small>13 Nov 2012</small></span></p>
<p>One of the emacs features that first impressed me was the ability to navigate source files based on gcc compilation errors. After doing some puppet dev for a while, I decided to investigate how hard it would be to do this with puppet source and puppet-lint. Turns out, not that hard. My resulting init-puppet-mode.el: (require 'compile) (add-hook 'puppet-mode-hook (lambda () (set (make-local-variable 'compile-command) ;; puppet-lint current file (let ((file (file-name-nondirectory buffer-file-name))) (format "%s %s" "puppet-lint...</p>
<p><a class='more' href='/2012/11/13/puppet-linting-in-emacs.html'>continue reading »</a></p>
<br />
<h4><a href='/2012/09/19/death-to-sna.html'>death to sna</a></h4>
<p><span class='datetime'><small>19 Sep 2012</small></span></p>
<p>After much failure in getting this virtual crtc patch running on gentoo, I finally decided to start throwing debug printfs straight into the Xorg intel driver. This is Xorg driver-speak for printf… xf86DrvMsg(scrn->scrnIndex, X_INFO, "my debug string"); This yielded the finding that the init functions that turn on the virtual crtc aren’t called. Reason being, sna support is on by default and the patches currently don’t account for that. For now, a USE=”-sna” is enough...</p>
<p><a class='more' href='/2012/09/19/death-to-sna.html'>continue reading »</a></p>
<br />
</div>
</div>
<div class='span4'>
<div class='posts'>
<h4><a href='/2012/09/17/htmlfontify-0pt-font-size.html'>fixing htmlfontify in scpaste</a></h4>
<p><span class='datetime'><small>17 Sep 2012</small></span></p>
<p>While trying out scpaste I encountered some delightful broken by default behaviour with htmlfontify. Htmlfontify decides to try and set html font size by looking at font information from your current emacs session. Evidently this code doesn’t work so well in a terminal :/ Luckily I found a pastebin entry somewhere (oh the irony) with this following gem. (add-hook 'hfy-post-html-hooks (lambda () ;; Replace font-size: 0pt with nothing on htmlfontify-buffer ;; which is called from...</p>
<p><a class='more' href='/2012/09/17/htmlfontify-0pt-font-size.html'>continue reading »</a></p>
<br />
<h4><a href='/2012/09/06/emacs-ido-sql.html'>emacs goodness for your sql needs</a></h4>
<p><span class='datetime'><small>06 Sep 2012</small></span></p>
<p>In my quest to take less trips outside the loving embrace of emacs, I decided to investigate SQL integration. Fortune smiled upon me, and I found a post documenting how to configure some presets. The one change I really wanted to make was to avoid having to repeat myself by defining functions for each connection. The result: (defun hey-everybody-its-sql-time (db-of-choice) "make with the sql action" (interactive (list (completing-read "DB: " sql-connection-alist))) (sql-connect-preset (intern db-of-choice))) This...</p>
<p><a class='more' href='/2012/09/06/emacs-ido-sql.html'>continue reading »</a></p>
<br />
<h4><a href='/2012/09/05/rtorrent-rcd-arch.html'>daemonizing rtorrent under ArchLinux</a></h4>
<p><span class='datetime'><small>05 Sep 2012</small></span></p>
<p>Being a collector of digital media. I find myself running numerous instances of rtorrent to help keep different trackers separated. At some point early on, having to log in and restart them after rebooting got old, so I hacked together a template that I just search replace as new trackers come online. #!/bin/bash . /etc/rc.conf . /etc/rc.d/functions case "$1" in start) stat_busy "Starting rtorrent (why.cd)" install -m 3777 -o root -g http -d /run/rtorrent su...</p>
<p><a class='more' href='/2012/09/05/rtorrent-rcd-arch.html'>continue reading »</a></p>
<br />
</div>
</div>
<div class='span4'>
<div id='tag-cloud'>
<a class='set-1' href='/tag/archlinux.html'>archlinux</a> <a class='set-1' href='/tag/crtc.html'>crtc</a> <a class='set-5' href='/tag/emacs.html'>emacs</a> <a class='set-1' href='/tag/fedora.html'>fedora</a> <a class='set-1' href='/tag/freenx.html'>freenx</a> <a class='set-1' href='/tag/gentoo.html'>gentoo</a> <a class='set-1' href='/tag/htmlfontify.html'>htmlfontify</a> <a class='set-1' href='/tag/ido-mode.html'>ido-mode</a> <a class='set-1' href='/tag/netcat.html'>netcat</a> <a class='set-1' href='/tag/puppet.html'>puppet</a> <a class='set-1' href='/tag/puppet-lint.html'>puppet-lint</a> <a class='set-1' href='/tag/redhat.html'>redhat</a> <a class='set-1' href='/tag/rtorrent.html'>rtorrent</a> <a class='set-1' href='/tag/sql.html'>sql</a> <a class='set-1' href='/tag/tmux.html'>tmux</a> <a class='set-1' href='/tag/virtual.html'>virtual</a>
</div>
</div>
</div><div class='row'>
<div class='span12'>
<blockquote>
<p>I have discovered that there are two types of command interfaces in the world of computing: good interfaces and user interfaces.</p>
<small>djb in <cite title='Qmail Security Guarantee'>Qmail Security Guarantee</cite></small>
</blockquote>
</div>
</div>
</div>
<footer>
<p>© mjc 2012</p>
</footer>
</div> <!-- /container -->
</body>
</html>