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
drush php-eval "module_load_install('MYMODULE'); MYMODULE_update_NUMBER();" | |
# or | |
drush php:cli | |
require 'core/modules/taxonomy/taxonomy.post_update.php'; | |
taxonomy_post_update_add_unpublished_nodes_to_taxonomy_index($sandbox); |
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
# Guide | |
# Configure the essential configurations below and do the following: | |
# | |
# Repository Creation: | |
# cap deploy:repository:create | |
# git add . | |
# git commit -am "initial commit" | |
# git push origin master | |
# | |
# Initial Deployment: |
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
# stolen from: http://snipt.net/nsmith/restart-audio-os-x/ | |
sudo kill -9 `ps ax | grep 'coreaudio[a-z]' | awk '{print $1}'` |
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
package main | |
import ( | |
"fmt" | |
) | |
/* Get an initial hash value by passing in the length of the array. */ | |
func Init(length int) (hash byte) { return byte(length % 256) } | |
/* Given the hash of a string S0..SN and the character SN+1, |
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
# For Rails 3.1 asset packaging / sprockets support | |
# 1. Create a /config/evergreen.rb file and put these contents in it | |
# 2. Adjust the paths below (the provided ones are generic) | |
require ::File.expand_path('../application', __FILE__) | |
module Evergreen | |
class << self | |
def application_with_additions(suite) | |
app = application_without_additions(suite) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css" media="screen"> | |
* { | |
overflow: hidden; | |
font-family: "Helvetica Neue"; | |
cursor: pointer; | |
text-selection: none; | |
} |