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
To hide statusbar, add the following code in the file MainViewController.m under the function -(void)viewDidUnload | |
- (BOOL)prefersStatusBarHidden | |
{ | |
return YES; | |
} |
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
git rm -r --cached .;git add .;git commit -m ".gitignore is now working" |
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
--[[ | |
KAP UAV Exposure Control Script v1.5 | |
-- Released under GPL by waterwingz and wayback/peabody | |
http://chdk.wikia.com/wiki/KAP_%26_UAV_Exposure_Control_Script | |
@title KAP UAV 1.5 | |
@param i Shot Interval (sec) | |
@default i 15 | |
@range i 2 120 | |
@param s Total Shots (0=infinite) |
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
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; |