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
| function getWhereClauseForKeywordsTwo($keywords) | |
| { | |
| $keywords = explode(" ", $keywords); | |
| $select = $this->select(); | |
| foreach ($keywords as $word) | |
| { | |
| $subselect = $this->select(); | |
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
| ssh_username=REPLACE_WITH_USERNAME | |
| ssh_password=REPLACE_WITH_PASSWORD | |
| ssh_remote_host=groupofthings.com | |
| production_db_name=groupofthings | |
| production_db_user=groupofthings | |
| production_db_pass=REPLACE_WITH_PASSWORD | |
| local_db_name=groupofthings | |
| local_db_user=groupofthings | |
| local_db_pass=REPLACE_WITH_PASSWORD | |
| local_deploy=/home/jaybill/sites/groupofthings/htdocs |
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
| <div class="rivety-form-field ui-corner-all"> | |
| <label for="property_type">{t}Type{/t}</label> | |
| <div class="buttonset" id="property_type"><input type="radio" id="text" value="text" name="property_type" /><label for="{t}Text{/t}">{t}Text{/t}</label><input type="radio" id="date" value="date" name="property_type" /><label for="{t}Date{/t}">{t}Date{/t}</label><input type="radio" id="number" value="number" name="property_type" /><label for="{t}Number{/t}">{t}Number{/t}</label></div> | |
| </div> |
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( | |
| "net/http" | |
| "log" | |
| "fmt" | |
| ) | |
| func route(pattern string, fn func(*http.Request) string){ | |
| http.HandleFunc(pattern,makeHandler(fn)) |
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 ( | |
| "net/http" | |
| "code.google.com/p/gorilla/sessions" | |
| "log" | |
| ) | |
| var store = sessions.NewCookieStore([]byte("something-very-secret")) |
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 ( | |
| "encoding/gob" | |
| "net/http" | |
| "code.google.com/p/gorilla/sessions" | |
| "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
| package main | |
| import "fmt" | |
| import "os" | |
| import "io" | |
| import "io/ioutil" | |
| import "log" | |
| // Copies file source to destination dest. | |
| func CopyFile(source string, dest string) (err error) { |
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
| rsync -avz /path/to/local/sync/folder -e "ssh -i /path/to/ssh/key" ubuntu@ec2instance:/path/to/remote/sync/folder |
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
| $args = array( | |
| ... | |
| 'meta_query' => array( | |
| 'relation' => 'AND', | |
| array( | |
| 'key' => 'publish_date', // name of your custom field | |
| 'value' => time(), | |
| 'compare' => '<', | |
| ), |
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
| cat pdc-dev-6-6-13.sql | sed -e 's/pdc-2468.liquidagencydev.com/pdc.dev-vm/g' > pdc-dev-6-6-13_LOCAL.sql |
OlderNewer