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
--- a/arch/x86/boot/cpu.c 2012-07-31 21:34:00.000000000 +0930
+++ b/arch/x86/boot/cpu.c 2012-07-31 22:36:03.000000000 +0930
@@ -17,6 +17,7 @@
#include "boot.h"
#include "cpustr.h"
+#define SKIP_VALIDATE_CPU
static char *cpu_name(int level)
{
@micolous
micolous / output.txt
Created July 1, 2012 14:22
pointer arithmatic
a (value) = 42
a (addr) = 80484B0FFCEBB78
incrementing...
a (value) = -3228804
a (addr) = 80484B0FFCEBB7C
<?xml version="1.0"?>
<BeverageDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Beverages>
<Beverage Name="Mercury Draught" Volume="375" PercentAlcohol="5.2">
<Skus>
<Sku Barcode="9300679040910" Quantity="1" IsEnabled="true" />
</Skus>
</Beverage>
<Beverage Name="Strongbow Sweet" Volume="355" PercentAlcohol="5">
<Skus>
# 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:
@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:
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 / 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
# /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 / 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
@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.