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
# makefile | |
# | |
# Generate podcast XML feed from a folder and sync it to a remote host. | |
# | |
## Prerequisites | |
# | |
# Install dircaster | |
# | |
# 1. Clone dircaster https://github.com/miyagawa/dircaster | |
# 2. Inside dircaster folder: $ bundle install --path vendor/bundle |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.zoom.autojoin.plist</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/open</string> |
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
<?php | |
/* | |
* Magento 1 Valet Driver | |
* @author spinsch | |
* @path ~/.valet/Drivers/Magento1ValetDriver.php | |
*/ | |
class Magento1ValetDriver extends ValetDriver | |
{ | |
private $siteSubFolder = 'htdocs'; |
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
_complete_ssh_hosts () | |
{ | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ | |
cut -f 1 -d ' ' | \ | |
sed -e s/,.*//g | \ | |
grep -v ^# | \ | |
uniq | \ | |
grep -v "\[" ; |
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
// Clean all workspaces | |
def hi = hudson.model.Hudson.instance | |
hi.getItems(hudson.model.Project).each {project -> | |
println(project.name) | |
project.doDoWipeOutWorkspace() | |
} |
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
$attributeSetName = 'Editorial Product'; | |
// active_from | |
$entityTypeId = Mage::getModel('eav/entity') | |
->setType('catalog_product') | |
->getTypeId(); | |
$setId = $installer->getAttributeSet($entityTypeId, $attributeSetName, 'attribute_set_id'); | |
// Add attribute set if it does not exists | |
if($setId === null) { |