Skip to content

Instantly share code, notes, and snippets.

View ozmartian's full-sized avatar

ozmartian ozmartian

View GitHub Profile
@ozmartian
ozmartian / launchpad-download-count.user.js
Last active October 17, 2017 18:14 — forked from stefansundin/launchpad-download-count.user.js
Userscript that shows you the download count for Launchpad packages. Be sure to go to the "View all builds" view. (Read the source code for notes!). Click the [Raw] button to install!
// ==UserScript==
// @name Launchpad Download Count
// @namespace https://gist.github.com/ozmartian/
// @homepage https://gist.github.com/ozmartian/46ec0c127f7f2f61c5d05b58bf824982
// @downloadURL https://gist.github.com/ozmartian/46ec0c127f7f2f61c5d05b58bf824982/raw/launchpad-download-count.user.js
// @version 0.3
// @author Stefan Sundin
// @updates Pete Alexandrou
// @description Gets the download count of your Launchpad packages.
// @icon https://launchpad.net/favicon.ico
@ozmartian
ozmartian / edl.cpp
Last active January 22, 2017 13:35
taken from the official Kodi repo 01/2017
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This Program is distributed in the hope that it will be useful,
--- r8168-8.042.00/src/r8168_n.c.orig 2016-08-01 21:20:42.000000000 +0200
+++ r8168-8.042.00/src/r8168_n.c 2016-08-01 21:32:49.488072441 +0200
@@ -22800,7 +22800,9 @@
dev->hw_features &= ~NETIF_F_IPV6_CSUM;
netif_set_gso_max_size(dev, LSO_32K);
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,18,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,7,0)
dev->gso_min_segs = NIC_MIN_PHYS_BUF_COUNT;
+#endif
dev->gso_max_segs = NIC_MAX_PHYS_BUF_COUNT_LSO_64K;