Skip to content

Instantly share code, notes, and snippets.

@fat-tire
fat-tire / intelchecker.sh
Last active June 25, 2017 23:58
intelchecker.sh - A script to identify that hyperthreading bug in intel processors
#!/bin/bash
# Copyright 2017 Uwe Kleine-König
# Converted to bash for chromebooks (ie, read-only filesystem w/o perl) by fattire
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License version 2 as published by the
# Free Software Foundation.
#
# Note: You can also check your Skylake processors here: http://ark.intel.com/products/codename/37572/Skylake
# And Kaby Lake here: http://ark.intel.com/products/codename/82879/Kaby-Lake
@fat-tire
fat-tire / virtualbox5 in ubuntu 7.04 zesty.md
Last active April 28, 2017 22:57
How to install virtualbox 5.0 (such as 5.0.38) w/ubuntu 7.04

Hi! You're lucky enough to have stumbled onto this link.

Here's what you do:

  1. Uninstall previous virtualboxes

    sudo apt remove virtualbox-5.0

  2. Download one of the virtualbox 5.0s such as 5.0.38 from the virtualbox site. The xenial will do.

@fat-tire
fat-tire / price.md
Created December 1, 2016 07:04 — forked from justjanne/Price Breakdown.md
AWS Lightsail vs DigitalOcean, VULTR and Linode

Price breakdown vs DigitalOcean, Vultr, Linode, OVH, and Online.net / Scaleway:

$5/mo

Provider RAM Cores Storage Transfer
LightSail 512MB 1 20GB SSD 1TB
DO 512MB 1 20GB SSD 1TB
@fat-tire
fat-tire / puzzle.py
Last active September 30, 2018 07:35
Solution to puzzle at http://www.recruitahacker.net/Puzzle
#!/usr/bin/python3
# Vigenere Cipher solver thing
# by fattire / github.com/fat-tire
# for puzzle at http://www.recruitahacker.net/Puzzle
# For more, see: https://en.wikipedia.org/wiki/Vigen%C3%A8re_cipher
import string
key = "aaaaaaaaaaaaaaaaaa" # Gotta start somewhere
newkey = ""
@fat-tire
fat-tire / gist:2859735
Created June 2, 2012 19:48
patch to new led driver for encore
$ git diff
diff --git a/arch/arm/mach-omap2/board-encore-display.c b/arch/arm/mach-omap2/board-encore-display.c
index b055e71..22ecb2c 100644
--- a/arch/arm/mach-omap2/board-encore-display.c
+++ b/arch/arm/mach-omap2/board-encore-display.c
@@ -31,7 +31,7 @@
#define LCD_CABC1_GPIO 45
#define LCD_BACKLIGHT_EN_EVT2 47
-#define DEFAULT_BACKLIGHT_BRIGHTNESS 105
@fat-tire
fat-tire / gist:2859726
Created June 2, 2012 19:43
differences between leds-omap-pwm.c in 2.6.32 (encore) and 3.0
$ diff -u nook_kernel/drivers/leds/leds-omap-pwm.c ~/android/ics/kernel/bn/encore/drivers/leds/leds-omap-pwm.c
--- nook_kernel/drivers/leds/leds-omap-pwm.c 2012-03-29 18:51:45.956450126 -0700
+++ /home/fattire/android/ics/kernel/bn/encore/drivers/leds/leds-omap-pwm.c 2012-06-02 03:57:24.608694436 -0700
@@ -19,21 +19,29 @@
#include <linux/ctype.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
-#include <asm/delay.h>
+#include <linux/slab.h>
+#include <linux/delay.h>
************Issue list for 2.6.32 kernel port********************
Please update this doc with the results of your work or investigations.
Git for the 2.6.32 kernel: https://github.com/fat-tire/android_kernel_omap/
(Note it's forked so that [mbm] can push too)
Currently the two biggest issues are the MMC driver and the framebuffer driver.
It appears that once we get these two issues resolved we might at least have a bootable kernel.