Skip to content

Instantly share code, notes, and snippets.

file { "/etc/httpd/conf.d/vhost.conf":
owner => "root",
group => "root",
mode => 644,
replace => true,
ensure => present,
content => "/vagrant/conf/vhost.conf",
require => Package["httpd"],
notify => Service["httpd"]
}
[vagrant@vagrant-c5-x86_64 ~]$ sudo /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 08:00:27:92:BA:6E
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe92:ba6e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2407 errors:0 dropped:0 overruns:0 frame:0
TX packets:2332 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:159341 (155.6 KiB) TX bytes:145198 (141.7 KiB)
" setup pathogen
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim
call vundle#rc()
Bundle 'gmarik/vundle'
// change this
$row = pg_fetch_row($results);
$num = pg_num_rows($results);
$i=0;
while ($i < $num) {
echo "<pre>";
print_r (pg_fetch_assoc($results,$i));
echo "</pre>";
$i++;
Error detected while loading xmonad configuration file: /home/ciarlill/.xmonad/xmonad.hs
xmonad.hs:102:14:
No instance for (Read a0) arising from a use of `layoutN'
The type variable `a0' is ambiguous
Possible cause: the monomorphism restriction applied to the following:
myChatGrid :: LayoutN Grid (LayoutN Grid Full) a0
(bound at xmonad.hs:102:1)
Probable fix: give these definition(s) an explicit type signature
or use -XNoMonomorphismRestriction
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