This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Tridion.ContentManager.ContentManagement; | |
using Tridion.ContentManager.Extensibility; | |
using Tridion.ContentManager.Extensibility.Events; | |
using Tridion.ContentManager.CommunicationManagement; | |
using System; | |
using Tridion.ContentManager; | |
using System.IO; | |
using System.Web; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name rightmove.co.uk full screen width | |
// @description Shows rightmove.co.uk search results at full screen width | |
// @updateURL https://gist.github.com/mtrl/7861280/raw/tampermonkey-rightmove-full-screen.js | |
// @version 1.0.1 | |
// @match http://www.rightmove.co.uk/property-for-sale/property* | |
// @match http://www.rightmove.co.uk/property-to-rent/property/* | |
// @copyright 2013, Mark Williams | |
// ==/UserScript== | |
function addGlobalStyle(css) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove HobbyKing auto play daily video | |
// @namespace http://mtrl.co.uk/ | |
// @updateURL https://gist.github.com/mtrl/7369221/raw/hobbyking-userscript-hide-daily-video.js | |
// @version 1.0.3 | |
// @description Removes the annoying autoplay daily video from the home page of HobbyKing.com | |
// @match http://hobbyking.com/hobbyking/store/index.asp | |
// @match http://www.hobbyking.com/hobbyking/store/index.asp | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From http://codeonaboat.wordpress.com/2012/02/16/sql-server-2008-creating-a-database-from-a-bak-file/ | |
If that’s where you are stuck, the following will help you. | |
1. In SSMS, open a query window in the master database of the database server. That’s where you will run the following queries. | |
2. See what the “LogicalName” of the database that has been backed up in the .bak file is | |
RESTORE FILELISTONLY | |
FROM DISK = 'c:\tmp\tridioncm.bak' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set background=dark | |
set hlsearch | |
" Use incremental searching | |
set incsearch | |
" Set standard setting for PEAR coding standards | |
set tabstop=4 | |
set shiftwidth=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rsync -P [local files] -e ssh [user]@[remote]:[remote location] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
On client open a terminal and “ssh -L 5902:localhost:[remote-port(usually 5900) [user]@[server]” | |
Open VNC client and connect to display 2 on localhost, specify password if needed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in *.flac; do ffmpeg -i "$i" -acodec alac "`basename "$i" .flac`.m4a"; done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ diskutil list | |
and it returns something like | |
/dev/disk0 | |
#: TYPE NAME SIZE IDENTIFIER | |
0: GUID_partition_scheme *1.0 TB disk0 | |
1: EFI 209.7 MB disk0s1 | |
2: Apple_HFS Macintosh HD 999.9 GB disk0s2 | |
/dev/disk1 |