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
# Card model | |
App.Models.Card = Backbone.Model.extend( | |
urlRoot: "/cards" | |
defaults: -> | |
revisions: 0 | |
initialize: -> | |
@kanji = @get("kanji") |
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
#!/usr/bin/env drush | |
<?php | |
// Check site is bootstrapped | |
$self_record = drush_sitealias_get_record('@self'); | |
if (!empty($self_record)) { | |
$count = 0; | |
$regex = '|^sites/(.*)/files|'; | |
$files_dir = file_directory_path(); |
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 | |
/** | |
* Drush script to remove table aliases from a Drupal 6 site. | |
* Usage: | |
* drush php-script remove-prefix.php [pretend] | |
*/ | |
$arg = drush_shift(); | |
$pretend = $arg == 'pretend' ? TRUE : FALSE; |
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
# Install bind. | |
sudo apt-get install bind9 | |
# Add DNS servers to forward unknown queries to. | |
# These could be your router, ISP or other public DNS servers. | |
# /etc/bind/named.conf.options | |
forwarders { | |
8.8.8.8; |