These are my steps installing 'ejurgensen/forked-daapd' on my FreeBSD 10.1 amd64 using user root and editor joe. Feedback would be great!
export WORKDIR=/usr/local/src/forked-daapd
mkdir -p $WORKDIR
cd $WORKDIR
Usualy the pending time is displayed like this in the AgentTicketZoom view: | |
Pending till: | |
23 h | |
49 m | |
This gist describes how to change the display format to: | |
Pending till: | |
26.06.2014 19:30 |
# Explanation: | |
# | |
# find | |
# -name .git -prune -o = skip everything with .git in the name | |
# -type d -o = skip folders | |
# -name .DS_Store -prune -o = skip Mac OS X .DS_Store files | |
# -name "*.sopm" -prune -o = skip SOPM file itself | |
# | |
# sed |
function SubjectParse ( Subject, Hook ) { | |
var Data = {}; | |
var SubjectRegExp = new RegExp( '^'+ Hook + '(\\d+)\\s*(?:-|–)\\s*(.+)$',''); | |
var Match = SubjectRegExp.exec(Subject); | |
if ( Match && Match.length ) { | |
Data['Subject'] = Match[0]; | |
Data['TicketNumber'] = Match[1]; |
var page_content = document.documentElement.innerHTML; | |
var video_urls_encoded = /\"params\",\"[^\"]+(http.+\.mp4)/.exec(page_content); | |
var regex_unicode = /\\u([\d\w]{4})/gi; | |
var regex_unquote = /\\\//gi; | |
var match_counter = 1; | |
while ( match_counter < video_urls_encoded.length ) { | |
var current_url = video_urls_encoded[ match_counter ]; |
# This is a fairly basic / bare controller which does only the basic CRUD. | |
class BooksController < ApplicationController | |
before_action :set_book, only: [:show, :edit, :update, :destroy] | |
def index | |
respond_with @books = Book.all | |
end | |
def show | |
respond_with @book |
# mac version | |
unzip -l /Applications/Sublime\ Text.app/Contents/MacOS/Packages/Ruby.sublime-package | grep '.sublime-snippet' | awk '{print $4}' | xargs -L 1 -I {} touch ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/Ruby/{} |