Skip to content

Instantly share code, notes, and snippets.

View nerdfiles's full-sized avatar
⚕️
bringing about the end-times of the philosophy

aha hah nerdfiles

⚕️
bringing about the end-times of the philosophy
View GitHub Profile
@nerdfiles
nerdfiles / apache
Created February 22, 2012 02:14
http 2.4.1 / os x 10.6.8
With configure:
$ sudo ./configure --prefix=/usr/local/apache2 --enable-access --enable-actions --enable-alias --enable-asis --enable-auth --enable-auth_dbm --enable-auth_digest --enable-autoindex --enable-cache --enable-cgi --enable-dav --enable-dav_fs --enable-deflate --enable-dir --enable-disk_cache --enable-dumpio --enable-env --enable-expires --enable-fastcgi --enable-file_cache --enable-headers --enable-imap --enable-include --enable-info --enable-log_config --enable-log_forensic --enable-logio --enable-mem_cache --enable-mime --enable-mime_magic --enable-negotiation --enable-perl --enable-rewrite --enable-setenvif --enable-speling --enable-ssl --enable-status --enable-suexec --enable-unique_id --enable-userdir --enable-usertrack --enable-version --enable-vhost_alias --enable-so --enable-module=all --enable-shared=max
---
$ sudo make
Making all in srclib
Making all in os
@nerdfiles
nerdfiles / joke-set.sh
Last active December 11, 2015 20:09
Started from me reflecting on "e.Name" aliases. Works on OS X most likely. Don't know about Ubuntu or whatever else. Scrape artifacts like this from the Web, do stuff. Probably in Python. Pyboxes (Pypiboxes?), to replace "internet jukeboxes" stationed in small "romantic"-style restaurants. Give a UI for Web agents connected locally at restaurant…
#Instructions:
#
#Open Terminal.
say "Try pick up lines. Like, \"Hey, is this YOUR toaster?\" Then wink at the stove. #standdown #anticomedy
Expand
26 Jan ✖ ✖ ‏@filesofnerds
How many catastrophes does it take before there are no lightbulbs? #standdown #anticomedy
Expand
@nerdfiles
nerdfiles / no-early-morning-commits
Created February 6, 2013 23:25
Add as git pre-commit hook. $ ln -s ../../pre-commit.sh .git/hooks/pre-commit
#!/bin/bash
# no early morning pushes, go get some coffee
if [[ `date +%H`<5 ]]; then
if [[ `date +%H`>2 ]]; then
echo "!"
exit 1
fi
fi
@nerdfiles
nerdfiles / theme.scss
Created February 8, 2013 21:42
Standardizing a Style Guide. Essentially the names drafted for this framework are issued to the Style Guide, instead of a primer on CSS. So a dependency is on metaprogramming CSS with preprocessors; then the use of frameworks or package managers (!) for deploying CSS fragments/modules along with the Hypermedia API.
// @import "theme-front";
/* UI System
*
* #note hoisting
*/
.#{$ui} {
background: transparent;
@nerdfiles
nerdfiles / youtube-iframe-api
Created February 10, 2013 08:45
Hooking it up.
<!DOCTYPE html>
<html>
<body onLoad="createVideo(1, 640, 360, 'DVX9dAj8e8w', 'small', 'light', 1);">
<div id="div_theVideo1" style="width:640px; height:360px; background-color: #CCC;"></div>
<INPUT TYPE="button" VALUE="Play" onClick="document.getElementById('div_theVideo1').childNode.playVideo();">
<INPUT TYPE="button" VALUE="Pause" onClick="document.getElementById('div_theVideo1').childNode.pauseVideo();">
@nerdfiles
nerdfiles / gist:5526063
Created May 6, 2013 16:00
#dreamfund | Mon May 6 09:00:14 PDT 2013
Mon May 06 15:52:58 +0000 2013 | @gemwinterburnxx []
331436433309057024 ==> Deffinatly want to live abroard one day, sun all the time #dream
Mon May 06 15:53:00 +0000 2013 | @StanBrossard []
331436443648020481 ==> #JOYEUXANNIVERSAIREMAITREGIMS!!!!! Bon anniversaire a toi mon gars @maitrgims et on écoute "BELLA" en boucleeee !! #SubliminalLe20Mai #dream
Mon May 06 15:53:26 +0000 2013 | @KaitlynScott93 []
@nerdfiles
nerdfiles / error-modal-micro-view.coffee
Last active December 17, 2015 05:19
Error Modal microview via Foundation Reveal Specification
class APP_NAME.App.MicroViews.ErrorView extends Backbone.View
el: $('.app--page')
close: () ->
@undelegateEvents()
last_modal = $('.error-modal').detach()
@nerdfiles
nerdfiles / gist:5596325
Last active December 17, 2015 10:39
Unhandled DOMException: SYNTAX_ERR in jquerrypp's getAnimation
// get the last sheet and insert this rule into it
sheet.insertRule("@" + getBrowser().prefix + "keyframes " + name + ' ' + style, (sheet.cssRules && sheet.cssRules.length) || 0); // Error: [Unhandled DOMException: SYNTAX_ERR]
@nerdfiles
nerdfiles / colorrrs.py
Last active December 17, 2015 17:59
Synesthor Thinks (get a color from colorrrs.com): alias synesthor_thinks="py /Users/nerdfiles/Tools/colorrrs/colorrrs.py | pbcopy"
#!/usr/bin/python
from pyquery import PyQuery as pq
from lxml import etree
import urllib
d = pq(url="http://colorrrs.com/")
def grab_color():
synesthor_thinks = d('h1').text()
@nerdfiles
nerdfiles / sanitize-facebook.css
Last active December 18, 2015 05:19
Hi. Use Stylish for Chrome or Firefox to remove most of the clutter (ads, unmentionables, excess, etc.) from yr Facebook: https://addons.mozilla.org/en-US/firefox/addon/stylish/, https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en Thanks. Screen: http://imgur.com/SsAa5vC
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("facebook.com") {
#rightCol { display: none !important; }
#u_jsonp_4_d_right { display: none !important; }
#jewelContainer,
.jewelContainer a {