Skip to content

Instantly share code, notes, and snippets.

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
Spine = require('spine')
class Calendar extends Spine.Model
@configure 'Calendar', 'name', 'month'
@extend @Local
today: ->
return new Date
# 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]
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
#!/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
#!/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
@alexciarlillo
alexciarlillo / gist:1974686
Created March 4, 2012 20:36
arch depends problem
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"
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)
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
@alexciarlillo
alexciarlillo / Xorg.0.log
Created October 18, 2011 13:11
syslog, Xorg.0.log, Xorg.failsafe.log from last reboot 10-18
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