Skip to content

Instantly share code, notes, and snippets.

@neofob
neofob / mv643xx_eth.c.patch
Last active October 7, 2015 11:28
A patch for 3.5 kernel to provide jumbo frame support for CuBox from Rabeeh Khoury's 2.6.32-9 fork Update to current git diff as of Nov 8, 2013 from https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git This is against v3.12 branch.
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c
index 2c210ec..528770b 100644
--- a/drivers/net/ethernet/marvell/mv643xx_eth.c
+++ b/drivers/net/ethernet/marvell/mv643xx_eth.c
@@ -2333,6 +2333,13 @@ static int mv643xx_eth_change_mtu(struct net_device *dev, int new_mtu)
dev->mtu = new_mtu;
mv643xx_eth_recalc_skb_size(mp);
tx_set_rate(mp, 1000000000, 16777216);
+ if (dev->mtu > 1600) {
+ dev->features &= ~NETIF_F_IP_CSUM;
@neofob
neofob / decompress.c.patch
Created July 23, 2012 01:51
Shawn Landden's patch for ARM xz compression build
diff --git a/arch/arm/boot/compressed/decompress.c b/arch/arm/boot/compressed/decompress.c
index f41b38c..cdc3cd4 100644
--- a/arch/arm/boot/compressed/decompress.c
+++ b/arch/arm/boot/compressed/decompress.c
@@ -47,6 +47,7 @@ extern void error(char *);
#ifdef CONFIG_KERNEL_XZ
#define memmove memmove
#define memcpy memcpy
+extern char * strstr(const char *, const char *);
#include "../../../../lib/decompress_unxz.c"
MARVELL MV643XX ETHERNET DRIVER
M: Lennert Buytenhek <buytenh@wantstofly.org>
L: netdev@vger.kernel.org
S: Maintained
F: drivers/net/mv643xx_eth.*
F: include/linux/mv643xx.h
@neofob
neofob / vagrant_convention
Created March 4, 2013 22:50
vagrant convention
URL: http://docs.vagrantup.com/v1/docs/base_boxes.html
Convention over Configuration
Choice is a good thing, so just about everything in Vagrant can be changed. However, it's easier for others to use Vagrant when you follow a set of conventions. Now, while these aren't enforced conventions, if you plan to distribute the box, it is recommended you follow the following where possible:
Hostname: vagrant-[os-name], e.g. vagrant-debian-lenny
Domain: vagrantup.com
Root Password: vagrant
Main account login: vagrant
@neofob
neofob / .fonts.conf
Last active December 14, 2015 13:08
Crunchbang 11, 20130119, version
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="autohint" >
@neofob
neofob / grub
Created March 6, 2013 07:39
/etc/default/grub update-grub
GRUB_CMDLINE_LINUX_DEFAULT=“console=tty0 console=ttyS0,115200n8 debug ignore_loglevel”
@neofob
neofob / vagrant_base.url
Last active December 14, 2015 14:59
Setting your own vagrant base box
References:
Creating a vagrant base box for ubuntu 12.04 32bit server
https://github.com/fespinoza/checklist_and_guides/wiki/Creating-a-vagrant-base-box-for-ubuntu-12.04-32bit-server
How I setup Ubuntu 11.04 Server using VirtualBox on a MacBook Air
http://www.idevelopsoftware.com/2011/07/how-i-setup-ubuntu-11-04-server-using-virtualbox-on-a-macbook-air/
Base Boxes from docs.vagrantup.com
http://docs.vagrantup.com/v1/docs/base_boxes.html
@neofob
neofob / Makefile
Last active December 14, 2015 15:58
issue with vagrant on Debian Wheezy
all: vagrant-note.html vagrant-base.html
vagrant-note.html: vagrant-note.md
maruku --html --output vagrant-note.html vagrant-note.md
vagrant-base.html: vagrant-base.md
maruku --html --output vagrant-base.html vagrant-base.md
@neofob
neofob / urls.txt
Created March 13, 2013 03:52
urls for 4Signs
http://wearesocial.net/blog/2012/10/social-digital-mobile-vietnam/
http://english.vov.vn/Society/Development/Vietnam-boasts-308-million-internet-users/244626.vov
http://www.thejakartaglobe.com/tech/singapore-has-the-highest-rate-of-internet-usage-in-southeast-asia/452152
http://www.itu.int/ITU-D/tech/broadband_networks/WirelessBDMasterPlans_ASP/WBB_MasterPlan_VietNam.pdf
http://moj.gov.vn/vbpq/en/Lists/Vn%20bn%20php%20lut/View_Detail.aspx?ItemID=10749
$ cat tonguetwister.txt | tr '[a-z]' '[A-Z]' | tr '[:punct:]' ' ' | tr '\t' ' ' | tr ' ' '\n' | sed '/^$/d' | sort -d | uniq -c | sort -nr
tr -sc '[A-Z][a-z]' '[\012*]' < corpora/xmasCarol.txt | sort | uniq -c > xmasCarol.hist

URLs:
Ref: http://tips.enderunix.org/view.php?id=1234&amp;lang=en