Skip to content

Instantly share code, notes, and snippets.

View micolous's full-sized avatar
💭
I may be slow to respond.

micolous micolous

💭
I may be slow to respond.
View GitHub Profile
@micolous
micolous / bootstrap_form.html
Created September 14, 2011 06:16
Form template for Django for use with twitter-bootstrap
{# Include the hidden fields #}
{% for hidden in form.hidden_fields %}
{{ hidden }}
{% endfor %}
{# Include the visible fields #}
{% for field in form.visible_fields %}
<div class="clearfix{% if field.errors %} error{% endif %}">
{{ field.label_tag }}
<div class="input">
@micolous
micolous / bitcarts.txt
Created September 22, 2011 06:42
proposal for minecraft server mod: bitcarts
New means for long-distance data transfer inside minecraft: Bitcarts.
A bitcart would share a similar model to normal minecarts. Except, in addition to taking cargo, they store 256 bits of data in a stack.
You manipulate a bitcart with sensors / heads, that input / output redstone signals.
INPUT:
- push: Pushes a bit onto the bitcart stack (0 / 1)
- empty: Empties all bits from the bitcart stack if 1. This could be achieved with repeated pop calls... but this is simpler.
- queue_switch: If 1, then it will transform the bitcart from a stack into a queue. If 0, then it will transform a queue into a stack. This won't effect the data stored inside, but it will effect pop/peek.
@micolous
micolous / github-delete-all-notifications.user.js
Created September 26, 2011 05:10
GitHub: delete all notifications button
// ==UserScript==
// @name GitHub delete all notifications button
// @namespace http://www.github.com/micolous/delete-all-notifications
// @description Adds a button to allow you to delete all notifications on a page.
// @include http://github.com/inbox/notifications*
// @include https://github.com/inbox/notifications*
// ==/UserScript==
/*
@micolous
micolous / check_windows_updates.wsf
Created October 20, 2011 03:55
Fixed version of check_windows_updates that truncates responses.
<job>
<runtime>
<description>
Name:
check_windows_updates (nrpe_nt-plugin) 1.6 based on check_msupdates (nrpe_nt-plugin) 1.0
License:
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
@micolous
micolous / mrtg.cfg
Created October 23, 2011 01:16
mrtg adsl sync billion
Title[adsl-sync]: ADSL Line Sync
PageTop[adsl-sync]: <h1>ADSL Sync Speed</h1>
# wifi models
#Target[adsl-sync]: transmission.94.1.1.4.1.2.4&transmission.94.1.1.5.1.2.4:[email protected]
# ethernet models
Target[adsl-sync]: transmission.94.1.1.4.1.2.3&transmission.94.1.1.5.1.2.3:[email protected]
MaxBytes[adsl-sync]: 25000000
Options[adsl-sync]: nopercent,growright,gauge
#Factor[adsl-sync]: 0.125
kilo[adsl-sync]: 1000
# /etc/zsh/zshrc: system-wide .zshrc file for zsh(1).
#
# This file is sourced only for interactive shells. It
# should contain commands to set up aliases, functions,
# options, key bindings, etc.
#
# Global Order: zshenv, zprofile, zshrc, zlogin
HISTFILE=~/.bash_history
HISTSIZE=1000
@micolous
micolous / download_content.sh
Created November 28, 2011 02:04
downloads minecraft
#!/bin/sh
mkdir -p MinecraftDownload
cd MinecraftDownload
echo "Downloading content..."
cat << EOF | wget -U Mozilla/5.0 -c -N -i -
http://s3.amazonaws.com/MinecraftDownload/minecraft.jar
http://s3.amazonaws.com/MinecraftDownload/lwjgl.jar
http://s3.amazonaws.com/MinecraftDownload/jinput.jar
http://s3.amazonaws.com/MinecraftDownload/lwjgl_util.jar
POST /loc/json HTTP/1.1
Accept-Encoding: identity
Content-Length: 148
Host: www.google.com
Content-Type: application/x-www-form-urlencoded
Connection: close
User-Agent: Python-urllib/2.6
{"request_address": true, "version": "1.1.0", "wifi_towers": [{"signal_strength": 1, "mac_address": "00-88-88-88-00-2B"}], "address_language": "en"}
@micolous
micolous / wwf.txt
Created February 10, 2012 14:29
words with friends bug
So say you have a board like this:
CAM
C O
L L
CUES
E
Now I made an invalid move here:
# cat RELEASE_NOTES.txt
1.26.0.2085
iAd, Admob, Adsense, Flurry, Millennial will test successfully in the simulator. All networks are fully supported on devices.
Weak link MediaPlayer.framework, UIKit.framework, EventKit.framework, CoreMotion.framework, CoreTelephony.framework, libSystem.B.dylib and iAd.framework, otherwise follow setup instruction on docs.burstly.com
Important: Set Base SDK to iOS 4.3 and Deployment target to whatever your lower support os version is(3.1.3+ recommended).
Changes: