Skip to content

Instantly share code, notes, and snippets.

View henningjensen's full-sized avatar

Henning Jensen henningjensen

View GitHub Profile
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:mes="http://schemas.microsoft.com/exchange/services/2006/messages">
<soapenv:Header>
<typ:RequestServerVersion Version="Exchange2007_SP1"/>
</soapenv:Header>
<soapenv:Body>
<mes:CreateItem MessageDisposition="SaveOnly" SendMeetingInvitations="SendToAllAndSaveCopy">
<mes:Items>
<typ:CalendarItem>
<typ:Subject>Dentist Appointment</typ:Subject>
<typ:Body BodyType="Text">The appointment is with Dr. Smith.</typ:Body>
ls -l |grep 2009 |sed -re 's/.*(2009-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}) (.*)/\1 \2/' |awk '{print ($1) (" ") (substr($2,1,2)+2) (substr($2,3,4)) (" ")($3)}' |xargs -i echo "touch -m -t {}"
If you want to show the pic of a certain user e.g. for a static team gallery you can use:
{user_profile_pic:username}
with the changed code:
#set( $profile_pic = $userAccessor.getUserProfilePicture( $param0 ) )
#set( $pic_src = $profile_pic.getDownloadPath() )
@henningjensen
henningjensen / vimrc
Created March 9, 2010 10:00
My .vimrc file
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
syntax on
set background=dark
" Uncomment the following to have Vim jump to the last position when
" reopening a file
@henningjensen
henningjensen / gitconfig
Created May 26, 2010 09:14
my gitconfig
[user]
name = Henning Jensen
email = henning.jensen@gmail.com
[color]
branch = auto
status = auto
diff = auto
[alias]
ci = commit
co = checkout
@henningjensen
henningjensen / gist:1120088
Created August 2, 2011 12:28
jquerymobile - reset form issue
<!DOCTYPE html>
<html>
<head>
<title>reset form problem</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" media="all" href="http://code.jquery.com/mobile/latest/jquery.mobile.min.css" />
<script src="http://code.jquery.com/jquery-1.6.1.min.js"></script>
@henningjensen
henningjensen / gist:1145089
Created August 14, 2011 17:22
Join/merge PDF files with pdftoolkit
sudo apt-get install pdftk
pdftk file1.pdf file2.pdf cat output newFile.pdf
@henningjensen
henningjensen / devise.nb.yml
Created April 25, 2012 19:58 — forked from eiriklied/devise.nb.yml
Norwegian translations for Devise
# Additional translations at http://github.com/plataformatec/devise/wiki/I18n
nb:
errors:
messages:
expired: "har utløpt, vennligst få en ny en"
not_found: "ikke funnet"
already_confirmed: "har allerede blitt bekreftet. Prøv å logg inn."
not_locked: "var ikke låst"
not_saved:
@henningjensen
henningjensen / gist:3786258
Created September 26, 2012 05:21
git standup
git alias => standup = log --since yesterday --oneline --author henning.jensen