Skip to content

Instantly share code, notes, and snippets.

@romainguinot
romainguinot / amd15.05.kernel4.04.patch
Created June 3, 2015 20:45
Patch the 15.05 amd x64 linux driver to install on Fedora 21 with 4.0.4 kernel (4.0.4-202.fc21.x86_64). obtained by modifying instructions here : https://bluehatrecord.wordpress.com/2015/05/30/installing-the-proprietary-amd-catalyst-14-12-fglrx-driver-on-fedora-21-with-linux-kernel-4-04/
diff -Naur common/lib/modules/fglrx/build_mod/firegl_public.c common/lib/modules/fglrx/build_mod/firegl_public.c
--- common/lib/modules/fglrx/build_mod/firegl_public.c 2015-06-02 18:47:29.000000000 +0200
+++ common/lib/modules/fglrx/build_mod/firegl_public.c 2015-06-03 22:21:37.622414689 +0200
@@ -4468,8 +4468,13 @@
if (cpu_has_pge)
{
- cr4 = read_cr4();
- write_cr4(cr4 & ~X86_CR4_PGE);
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0)
@romainguinot
romainguinot / checkgmail-2factor-support-with-csrf.patch
Last active August 29, 2015 13:59
checkgmail (http://checkgmail.sourceforge.net/) patch for two factor authentication (a.k.a two step) support (config, UI, integration), login refactoring (requests, UI), refactored kwallet integration, + additional refactoring/bugfixing. Applies against latest available revision (r47). Update : Apr 16th,2014 : updated with CSRF support for initi…
--- checkgmail 2014-04-16 14:12:36.249680892 +0200
+++ checkgmail 2014-04-16 13:14:16.562893000 +0200
@@ -33,13 +33,18 @@
# global variables (can't be set global in the BEGIN block)
my ($version, $silent, $nocrypt, $update, $notsexy, $profile, $disable_monitors_check,
- $private, $cookies, $popup_size, $hosted_tmp, $show_popup_delay,
- $popup_persistence, $usekwallet, $libsexy, $nologin, $mailno, $debug);
+ $private, $cookies, $two_factor_auth_switch, $popup_size, $hosted_tmp, $show_popup_delay,
+ $popup_persistence, $use_kwallet, $libsexy, $nologin, $mailno, $debug);
@romainguinot
romainguinot / checkgmail.patched.2nd_factor_support_with_csrf.pl
Last active August 29, 2015 13:59
modified checkgmail version (http://checkgmail.sourceforge.net/) with with two factor authentication (a.k.a two step) support, login refactoring (requests, UI), refactored kwallet integration, + additional refactoring/bugfixing. This is the full, pre-patched file (renamed to .pl for syntax highlighting). Update : Apr 16th,2014 : updated with CSR…
#!/usr/bin/perl -w
# CheckGmail
# Uses Atom feeds to check Gmail for new mail and displays status in
# system tray; optionally saves password in encrypted form using
# machine-unique passphrase
# version 1.14pre2-svn (4/11/2010)
# Copyright © 2005-10 Owen Marshall
@romainguinot
romainguinot / checkgmail-2factor-support.patch
Last active December 14, 2015 09:50
checkgmail (http://checkgmail.sourceforge.net/) patch for two factor authentication (a.k.a two step) support (config, UI, integration), login refactoring (requests, UI), refactored kwallet integration, + additional refactoring/bugfixing. Applies against latest available revision (r47). Note : old version. Updated version with CSRF support here : h…
--- checkgmail 2013-02-28 14:24:44.614055113 +0100
+++ checkgmail.current 2013-03-01 22:22:30.211693526 +0100
@@ -33,13 +33,18 @@
# global variables (can't be set global in the BEGIN block)
my ($version, $silent, $nocrypt, $update, $notsexy, $profile, $disable_monitors_check,
- $private, $cookies, $popup_size, $hosted_tmp, $show_popup_delay,
- $popup_persistence, $usekwallet, $libsexy, $nologin, $mailno, $debug);
+ $private, $cookies, $two_factor_auth_switch, $popup_size, $hosted_tmp, $show_popup_delay,
+ $popup_persistence, $use_kwallet, $libsexy, $nologin, $mailno, $debug);
@romainguinot
romainguinot / checkgmail.patched.2factor_support.pl
Last active December 14, 2015 09:50
modified checkgmail version (http://checkgmail.sourceforge.net/) with with two factor authentication (a.k.a two step) support, login refactoring (requests, UI), refactored kwallet integration, + additional refactoring/bugfixing. This is the full, pre-patched file (renamed to .pl for syntax highlighting). Note : old version. Updated version with …
#!/usr/bin/perl -w
# CheckGmail
# Uses Atom feeds to check Gmail for new mail and displays status in
# system tray; optionally saves password in encrypted form using
# machine-unique passphrase
# version 1.14pre2-svn (4/11/2010)
# Copyright © 2005-10 Owen Marshall
@romainguinot
romainguinot / kwalletcli.GNUmakefile.f18.patch
Created March 1, 2013 16:57
KWalletCli makefile patch, at least for fedora 18. I also needed to respectively symlink libkdecore.so.5 and libkdeui.so.5 to libkdecore.so and libkdeui.so, in /usr/lib64.
--- GNUmakefile 2011-04-09 23:45:20.000000000 +0200
+++ GNUmakefile 2013-02-28 19:33:22.689990288 +0100
@@ -19,8 +19,8 @@
# of said person’s immediate fault when using the work as intended.
SCRIPTS= kwalletaskpass kwalletcli_getpin pinentry-kwallet
-BINDIR?= /usr/bin
-MANDIR?= /usr/share/man/man
+BINDIR?= /usr/local/bin
+MANDIR?= /usr/local/share/man/man
@romainguinot
romainguinot / checkgmail.patched.2factor_support.description.txt
Last active December 14, 2015 09:38
this is the supporting description for the associated gists. Apparently you currently can't format a gist description with wiki syntax, or even newlines.
This referenced files below pertain to a modified checkgmail version, that includes the following features.
Original project is at : http://checkgmail.sourceforge.net/.
It is based on the latest available sourceforge revision (r47).
- two factor support (config, UI, integration).
(see http://support.google.com/accounts/bin/answer.py?hl=en&answer=180744).
* If two factor auth is used, one needs to initially provide (and optionally store) :
- an application-specific password to authenticate against the atom feed,
see http://support.google.com/accounts/bin/answer.py?hl=en&answer=185833.