p4 sync [filename]#revisionNumber
p4 edit [filename]
p4 resolve [filename]
(merge-revert changes)
go to http://getkickstrap.com/ and follow the installation instructions
$ kickstrap new customsite
-create a new layout by
p4 sync [filename - or directory] | |
p4 edit [filename] | |
p4 submit -d "Commit comment" [filename] | |
-- extra | |
p4 filelog [filename] # get log changes info. |
body { | |
font-family: Helvetica, Verdana | |
} | |
p { | |
padding: 7px 10px; | |
} | |
#demo { | |
border: 1px solid #999; | |
} |
#Update main content | |
UPDATE wp_posts SET post_content = REPLACE ( post_content, 'http://www.helmutgranda.com/', 'https://www.helmutgranda.com/'); | |
#Update Custom fields | |
UPDATE wp_postmeta SET meta_value = REPLACE ( meta_value, 'http://www.helmutgranda.com/', 'https://www.helmutgranda.com/'); |
$country_list = array( | |
"Afghanistan", | |
"Albania", | |
"Algeria", | |
"Andorra", | |
"Angola", | |
"Antigua and Barbuda", | |
"Argentina", | |
"Armenia", | |
"Australia", |
([ -f ~/.ssh/id_rsa.pub ] || ssh-keygen -t rsa ) && (ssh user@example.com "([ -d ~/.ssh ]||mkdir -m 700 ~/.ssh) && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys" < ~/.ssh/id_rsa.pub) |
curl \ | |
-d output_info=compiled_code \ | |
-d compilation_level=SIMPLE_OPTIMIZATIONS \ | |
-d code_url=https://github.com/path/to/javascript.js \ | |
http://closure-compiler.appspot.com/compile > file.js |
var formObj = casper.evaluate(function() { | |
return __utils__.getElementsByXPath('//*[@id="ff_form_main"]'); | |
}); |
$ /etc/init.d/apache2 restart |