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 / 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 / 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 / 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 / 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 / gist:1144688
Created August 14, 2011 07:58
wii email (en)
Delivered-To: [email protected]
Received: by 10.147.124.3 with SMTP id b3cs18103yan; Sun, 14 Aug 2011
00:21:34 -0700 (PDT)
Received: from mr.google.com ([10.236.125.138]) by 10.236.125.138 with SMTP
id z10mr11816672yhh.147.1313306494927 (num_hops = 1); Sun, 14 Aug 2011
00:21:34 -0700 (PDT)
Received: by 10.236.125.138 with SMTP id z10mr8935341yhh.147.1313306494468;
Sun, 14 Aug 2011 00:21:34 -0700 (PDT)
Return-Path: <[email protected]>
Received: from bsaa42097.tk.mesh.ad.jp (bsaa42097.wc24.wii.com
@micolous
micolous / partytxt.asm
Created August 9, 2011 13:47
Implementation of partyhard mode in x86_16 asm.
; A text-mode (well, 640x480 16 colours VGA graphics mode hosting 80x25 text)
; party hard mode in 16-bit x86 asm. Requires a vga graphics adapter that isn't
; fussy, as we make a mess of various things and ignore other things because we
; don't care and want to save space.
;
; WARNING: IF YOU SUFFER FROM EPILEPSY OR OTHER PHOTOSENSITIVITY DISORDER, DO
; NOT RUN THIS PROGRAM OR VIEW IT'S OUTPUT, AS IT WILL BE HARMFUL TO YOUR
; HEALTH.
;
; Compile with nasm -fbin partytxt.asm -o partytxt.com
@micolous
micolous / gist:1062596
Created July 3, 2011 20:56
nvidia debian-testing /etc/apt/preferences.d/nvidia
We couldn’t find that file to show.
<II> Logger: Opened log
<II> Core: ODE not found, this not an error.
<II> Core: ALUT not found, this is not an error.
<DD> CoreSDL: w: 800 h: 600
<WW> Picture: Failed to load terrain.png: file not found
<WW> Picture: Failed to load res/terrain.png: file not found
<WW> Picture: Failed to load /home/michael/.config/charge/terrain.png: file not found
<DD> DeferredTarget: Created new deferred render target (64x48)
<DD> DepthTargetArray: Created new depth target array (1024x1024)x2
<II> DeferredRenderer: Is capable of running deferred renderer!
$ cat ~/.config/charge/log.txt
<II> Logger: Opened log
<II> Core: ODE not found, this not an error.
<II> Core: ALUT not found, this is not an error.
<DD> CoreSDL: w: 800 h: 600
<WW> Picture: Failed to load terrain.png: file not found
<WW> Picture: Failed to load res/terrain.png: file not found
<WW> Picture: Failed to load /home/michael/.config/charge/terrain.png: file not found
<DD> DeferredTarget: Created new deferred render target (64x48)
<DD> DepthTargetArray: Created new depth target array (1024x1024)x2
@micolous
micolous / gist:972284
Created May 14, 2011 14:49
lspci/lsusb on MacBookPro6,2
$ lspci -knn
00:00.0 Host bridge [0600]: Intel Corporation Core Processor DRAM Controller [8086:0044] (rev 18)
00:01.0 PCI bridge [0604]: Intel Corporation Core Processor PCI Express x16 Root Port [8086:0045] (rev 18)
Kernel driver in use: pcieport
00:1a.0 USB Controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller [8086:3b3b] (rev 06)
Subsystem: Intel Corporation Device [8086:7270]
00:1a.7 USB Controller [0c03]: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller [8086:3b3c] (rev 06)
Subsystem: Intel Corporation Device [8086:7270]
Kernel driver in use: ehci_hcd
00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 06)