Skip to content

Instantly share code, notes, and snippets.

View rileyrg's full-sized avatar
💭
Emacs can replace PHPStorm

RichieHH rileyrg

💭
Emacs can replace PHPStorm
  • Hamburg, Germany
View GitHub Profile
@rileyrg
rileyrg / upd.sh
Created September 27, 2014 16:01
#!/bin/bash
sudo apt-get update --yes && sudo apt-get upgrade --yes && sudo apt-get dist-upgrade --yes && sudo apt-get autoremove --yes
Current directory is /home/rgr/development/learning/c/emacside/
Error: you did not specify -i=mi on GDB's command line!
GNU gdb (Debian 7.7.1+dfsg-3) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www.barwebs.com
DocumentRoot /var/www/barwebs/barwebs.com/
ServerAlias barwebs.com
</VirtualHost>
@rileyrg
rileyrg / gist:288980c813fbcdb5465a
Created October 15, 2014 11:51
added list:fdeletewhenexpired setting defaulted to 1 - if 0 then an event doesnt get deleted upon expiry
diff --git a/lib/php/eventstorage.php b/lib/php/eventstorage.php
index 982fcc9..e8da6b9 100755
--- a/lib/php/eventstorage.php
+++ b/lib/php/eventstorage.php
@@ -49,6 +49,7 @@ function populateEventObject(&$row,$category=null){
$row["eventlink"]=getSetting("ev:eventlink",$category,null);
$row["fbcomments"]=getSetting("ev:fbcomments",$category);
$row["fenabled"]=getSetting("ev:fenabled",$category,"1");
+ $row["fdeletewhenexpired"]=getSetting("list:fdeletewhenexpired",$category,"1");
$row["fenableshare"]=getSetting("ev:fenableshare",$category,false); /* to do */
myStartUpHook = do
setWMName "LG3D" -- Java progs need this a jdk 1.6+
spawnOnce "xcompmgr"
spawnOnce "xscreensaver -no-splash"
spawnOnce "stalonetray"
spawnOnce "feh --bg-fill ${WALLPAPER}"
spawnOnce "sleep 2 && xfce4-power-manager"
spawnOnce "sleep 2 && SpiderOak"
spawnOnce "sleep 2 && dropbox start -i"
,layoutHook = myLayout
,startupHook = myStartUpHook
,workspaces= myWorkSpaces
,modMask = mod4Mask
,focusFollowsMouse = False
,terminal = myTerminal
}
main :: IO ()
main = do
{-# LANGUAGE ScopedTypeVariables #-}
-- XMonad setup for debian
-- Richard Riley
-- [email protected]
import XMonad
import Data.List
import System.IO
myConfig p = def {
manageHook = myManageHook <+> namedScratchpadManageHook scratchpads <+> manageDocks
,logHook = fadeWindowsLogHook myFadeHook <+> dynamicLogWithPP xmobarPP {
ppOutput = hPutStrLn p
} <+> ewmhDesktopsLogHook
,handleEventHook = fadeWindowsEventHook
,layoutHook = myLayout
,startupHook = myStartUpHook
,workspaces= myWorkSpaces
,modMask = mod4Mask
myConfig p = def {
manageHook = myManageHook <+> namedScratchpadManageHook scratchpads <+> manageDocks
,logHook = fadeWindowsLogHook myFadeHook <+> dynamicLogWithPP xmobarPP {
ppOutput = hPutStrLn p
} <+> ewmhDesktopsLogHook
,handleEventHook = fadeWindowsEventHook
,layoutHook = myLayout
,startupHook = myStartUpHook
,workspaces= myWorkSpaces
,modMask = mod4Mask
myStartupSpawns = [
"xcompmgr"
,"xscreensaver -no-splash"
,"stalonetray"
,"feh --bg-fill ${WALLPAPER}"
,"sleep 2 && xfce4-power-manager"
,"sleep 2 && SpiderOak"
,"sleep 2 && dropbox start -i"
,do {
b :: Bool