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
# -*- coding: utf-8 -*- | |
""" | |
ZetCode PyQt4 tutorial | |
This example shows a QtGui.QCalendarWidget widget. | |
author: Jan Bodnar | |
website: zetcode.com | |
last edited: September 2011 |
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
curl -O http://svn.automattic.com/wordpress-i18n/ja/tags/3.8/messages/admin-ja.mo | |
curl -O http://svn.automattic.com/wordpress-i18n/ja/tags/3.8/messages/admin-ja.po | |
curl -O http://svn.automattic.com/wordpress-i18n/ja/tags/3.8/messages/admin-network-ja.mo | |
curl -O http://svn.automattic.com/wordpress-i18n/ja/tags/3.8/messages/admin-network-ja.po | |
curl -O http://svn.automattic.com/wordpress-i18n/ja/tags/3.8/messages/continents-cities-ja.mo | |
curl -O http://svn.automattic.com/wordpress-i18n/ja/tags/3.8/messages/continents-cities-ja.po | |
curl -O http://svn.automattic.com/wordpress-i18n/ja/tags/3.8/messages/ja.mo | |
curl -O http://svn.automattic.com/wordpress-i18n/ja/tags/3.8/messages/ja.po |
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
#!/bin/bash | |
clear | |
stty erase '^?' | |
echo -n "Database Name: " | |
read DBNAME | |
echo -n "Database User: " |
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
Post-install message from paperclip: | |
################################################## | |
# NOTE FOR UPGRADING FROM PRE-3.0 VERSION # | |
################################################## | |
Paperclip 3.0 introduces a non-backward compatible change in your attachment | |
path. This will help to prevent attachment name clashes when you have | |
multiple attachments with the same name. If you didn't alter your | |
attachment's path and are using Paperclip's default, you'll have to add | |
`:path` and `:url` to your `has_attached_file` definition. For example: |
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
#!/bin/sh | |
dbname=wpsample | |
dbuser=root | |
dbhost=127.0.0.1 | |
dbpass=password | |
wphost=localhost | |
wptitle="wp-cli sample site." | |
wpadmin_name="dontadmin" | |
wpadmin_email="[email protected]" |
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
function buildUrl(url, parameters) { | |
var qs = ""; | |
for(var key in parameters) { | |
var value = parameters[key]; | |
qs += encodeURIComponent(key) + "=" + encodeURIComponent(value) + "&"; | |
} | |
if (qs.length > 0){ | |
qs = qs.substring(0, qs.length-1); //chop off last "&" | |
url = url + "?" + qs; | |
} |
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
#!/bin/sh | |
curl $1 | awk -F"[<>]" '/loc/ { print $3 }' |
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
#!/bin/sh | |
grep -rIn STRING . | |
# 拡張子絞りたい場合 | |
grep -rIn STRING ./**/*.php |
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
Send a Growl notification to a local or remote host | |
growlnotify [/t:title] [/id:id] [/s:sticky] [/p:priority] [/i:icon] | |
[/a:application] [/ai:icon] [/r:type] [/n:type] | |
[/cu:callbackurl] | |
[/host:host] [/port:port] | |
[/pass:password] [/enc:algorithm] [/hash:algorithm] | |
[/silent:nooutput] | |
messagetext |
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
#!/bin/sh | |
chmod -R 777 {data/{cache,Smarty,logs,download{,s},class,upload,config},html/{install/temp,user_data,upload}} | |
chmod 777 html |
NewerOlder