Skip to content

Instantly share code, notes, and snippets.

@alexciarlillo
alexciarlillo / Xorg.0.log
Created Oct 18, 2011
syslog, Xorg.0.log, Xorg.failsafe.log from last reboot 10-18
View Xorg.0.log
X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-27-server i686 Ubuntu
Current Operating System: Linux MUNIN 2.6.32-34-generic-pae #77-Ubuntu SMP Tue Sep 13 21:16:18 UTC 2011 i686
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-34-generic-pae root=UUID=849188e8-9198-4bf4-96e7-8890f589af82 ro quiet splash xbmc=autostart,nodiskmount loglevel=0
Build Date: 08 March 2011 08:22:50AM
xorg-server 2:1.7.6-2ubuntu7.6 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.16.4
View gist:1368272
113 io.sockets.on('connection', function(socket) {
114 var user = new User(socket);
115
116 socket.on('set-nick', function(nick, response) {
117 user.setNick(nick, response);
118 });
119
120 socket.on('join-platform', function(data, response) {
121 user.joinPlatform(platforms, data, response);
122
View 31xorg
Section "ServerFlags"
Option "AutoAddDevices" "False"
EndSection
Section "Device"
Identifier "Card0"
Driver "ati"
BusID "PCI:1:0:0"
Option "AGPMode" "4"
Option "AGPFastWrite" "on" #Faster than default (off)
@alexciarlillo
alexciarlillo / gist:1974686
Created Mar 4, 2012
arch depends problem
View gist:1974686
ciarlill@odin:~$ sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
archlinuxfr is up to date
:: Starting full system upgrade...
resolving dependencies...
warning: cannot resolve "gcc-multilib=4.6.2", a dependency of "libtool-multilib"
View rc.local
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
POWER_CHECK=/sys/class/power_supply/AC/online
# set screen brightness
echo 10 > /sys/class/backlight/acpi_video0/brightness
View envy-video
#!/bin/bash
LOG=/tmp/switch_log
TMP=/tmp/switch_tmp
SWITCH_FILE=/sys/kernel/debug/vgaswitcheroo/switch
DIS_CHECK=DIS:+
IGD_CHEClK=IGD:+
NOW=`date`
case $1 in
View PlantModalView
1 var app = app || {};
2
3 $(function() {
4 app.PlantModalView = Backbone.View.extend({
5 model: app.Plant,
6
7 el: "#modal",
8
9 template: _.template($('#plant-template-modal').html()),
10
View logind.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# See logind.conf(5) for details
[Login]
View Calendar Model
Spine = require('spine')
class Calendar extends Spine.Model
@configure 'Calendar', 'name', 'month'
@extend @Local
today: ->
return new Date
View gist:4947304
import System.IO
import System.Exit
import XMonad
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.SetWMName
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.UrgencyHook
import XMonad.Layout.Fullscreen