Skip to content

Instantly share code, notes, and snippets.

View clawfire's full-sized avatar
🐻
Being cool

Thibault Milan clawfire

🐻
Being cool
View GitHub Profile
@clawfire
clawfire / gist:1292420
Created October 17, 2011 11:20
Download needed tool for ATI Driver Compilation - 64 bits specific. See http://thibaultmilan.com/blog/2011/10/17/gnome-shell-ub…ric-driver-ati/
sudo apt-get install ia32-libs
@clawfire
clawfire / gist:1292424
Created October 17, 2011 11:21
Download 32bits & 64 bits ATI latest drivers
cd ~/; mkdir catalyst11.9; cd catalyst11.9/
wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-9-x86.x86_64.run
@clawfire
clawfire / gist:1292426
Created October 17, 2011 11:22
Package and install .deb ATI driver
sh ./ati-driver-installer-11-9-x86.x86_64.run --buildpkg Ubuntu/oneiric
sudo dpkg -i fglrx*.deb
@clawfire
clawfire / xorg.conf
Created October 17, 2011 11:24
X11 dual screen exemple config file
Section "ServerLayout"
Identifier "amdcccle Layout"
Screen 0 "aticonfig-Screen[0]-0" 0 0
EndSection
Section "Monitor"
Identifier "0-DFP2"
Option "VendorName" "ATI Proprietary Driver"
Option "ModelName" "Generic Autodetecting Monitor"
Option "DPMS" "true"
@clawfire
clawfire / gist:1292471
Created October 17, 2011 12:00
Initiate a standard x11 config file
sudo aticonfig --initial -f
@clawfire
clawfire / gist:1295243
Created October 18, 2011 11:48
Fixing incorrect update for ubuntu 11.10
mkdir /run /run/lock
@clawfire
clawfire / gist:1295248
Created October 18, 2011 11:51
Fixing incorrect update for ubuntu 11.10
mv /var/run /run
mv /var/lock /run/lock
@clawfire
clawfire / gist:1295260
Created October 18, 2011 11:53
Fixing incorrect update for ubuntu 11.10
rmdir /var/run /var/lock
ln -s /run /var/run
ln -s /run/lock /var/lock
@clawfire
clawfire / browserinfo.js
Created October 27, 2011 12:40
browser info function
var userAgent = navigator.userAgent.toLowerCase();
jQuery.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase());
// Is this a version of Chrome ?
if(jQuery.browser.chrome){
userAgent = userAgent.substring(userAgent.indexOf('chrome/') +7);
userAgent = userAgent.substring(0,userAgent.indexOf('.'));
jQuery.browser.version = userAgent;
// If it's chrome then jQuery think it's safari so we have to tell it it isn't
jQuery.browser.safari = false;
@clawfire
clawfire / index.html
Created October 27, 2011 15:24
scrollTo() without plugin
<div id="top">Hello, I'm the top-gun!</div>
<div id="bottom">Hello, I'm the bottom end :(</div>