This file contains hidden or 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
cd /usr/local | |
sudo chown -R `whoami`:admin ./ | |
git reset --hard | |
git clean -fd | |
cd ~ | |
find /usr/local/Library/Formula -type l -delete | |
brew doctor | |
brew update | |
brew prune | |
brew cleanup |
This file contains hidden or 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
####################### | |
# Setup | |
####################### | |
mkdir annex-test | |
cd annex-test | |
git init | |
git annex init master | |
####################### | |
# Fab setup task |
This file contains hidden or 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
# Part of get-flash-videos. See get_flash_videos for copyright. | |
package FlashVideo::Site::T3licensing; | |
use strict; | |
use FlashVideo::Utils; | |
sub find_video { | |
my ($self, $browser, $embed_url) = @_; | |
my $metadata = { }; | |
my @url = ($browser->uri->as_string =~ /^((http[s]?|ftp):\/)?\/?([^:\/\s]+)((\/\w+)*\/)([\w\-\.]+[^#?\s]+)(.*)?(#[\w\-]+)?$/); |
This file contains hidden or 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
# Linux | |
stat -c "%a %n" ~/ | |
# OSX | |
stat -f %Mp%Lp ~/ |
This file contains hidden or 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
[ENTER] ~ . |
This file contains hidden or 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
<?php | |
public function multilineImageFTText($canvas, $fontSize, $font, $color, $copy, $start_x, $start_y, $width, $alignment) | |
{ | |
// Holds lines | |
$strings = array(); | |
// Placeholder for first element | |
$strings[] = ''; | |
// Split copy into array using space |
This file contains hidden or 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
find ./ -type d -exec chmod 755 {} \; | |
find ./ -type f -exec chmod 644 {} \; |
This file contains hidden or 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
truncate -s 0 /path/to/log.log |
This file contains hidden or 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
<?php | |
$this->getServiceLocator()->get('ApplicationConfig'); |
This file contains hidden or 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
1. Download http://handbrake.fr/rotation.php?file=HandBrake-0.9.9-MacOSX.6_CLI_x86_64.dmg | |
2. Mount HandBrake-0.9.9-MacOSX.6_CLI_x86_64.dmg | |
3. Copy HandBrakeCLI to /Applications/HandBrakeCLI |