c720p Xmodmap

~/.xinitrc :

xmodmap .Xmodmap

~/.Xmodmap :

keycode  67 = Prior
keycode  68 = Next
keycode  69 = F5
keycode  70 = F11
keycode  72 = XF86MonBrightnessDown
keycode  73 = XF86MonBrightnessUp
keycode  74 = XF86AudioMute
keycode  75 = XF86AudioLowerVolume
keycode  76 = XF86AudioRaiseVolume
c720p Xmodmap

resource instantiation

Instantiation :

Spring :
http://docs.spring.io/spring/docs/3.2.x/spring-framework-reference/htmlsingle/

The singleton scope is the default scope in Spring

Jersey :
https://jersey.java.net/documentation/latest/jaxrs-resources.html

By default the life-cycle of root resource classes is per-request

org.glassfish.jersey.ext:jersey-spring3 :
https://github.com/jersey/jersey/blob/2.2/examples/helloworld-spring-webapp/src/main/resources/applicationContext.xml

<bean class="org.glassfish.jersey.examples.helloworld.spring.SpringSingletonResource"/> 
<bean class="org.glassfish.jersey.examples.helloworld.spring.SpringRequestResource" scope="request"/>
resource instantiation

mount airport disk

#!/bin/bash

isMounted=$(mount -l -t cifs | grep millemilliards | wc -l)
if [[ ${isMounted} > 0 ]]
then
    echo "already mounted"
else
    echo "needs mounting"
    PASSWD=$(zenity --password --title "ggdAirportExtremeStation password") mount.cifs -o users,rw,uid=ggd,gid=ggd,sec=ntlm //ggdAirportExtremeStation/millemilliards /mnt/millemilliards
fi
mount airport disk