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
[self.view makeToast:@"メッセージ" duration:3.0 position:@"bottom"]; |
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
// ノーマル | |
UIImage *imageNormal = [[UIImage imageNamed:@"normal"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 6)]; | |
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:imageNormal forState:UIControlStateNormal barMetrics:UIBarMetricsDefault]; | |
// ハイライト | |
UIImage *imageHighlight = [[UIImage imageNamed:@"highlight"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 6)]; | |
[[UIBarButtonItem appearance] setBackButtonBackgroundImage:imageHighlight forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault]; |
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 jp.i_dig.community.util; | |
import com.google.gson.Gson; | |
import com.google.gson.JsonSyntaxException; | |
import com.android.volley.AuthFailureError; | |
import com.android.volley.NetworkResponse; | |
import com.android.volley.ParseError; | |
import com.android.volley.Request; | |
import com.android.volley.Response; |
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
import java.util.HashMap; | |
import android.app.ProgressDialog; | |
import com.android.volley.Request.Method; | |
import com.android.volley.RequestQueue; | |
import com.android.volley.VolleyError; | |
/** | |
* The Class VolleyGsonRequest. |
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
- hosts: [web-server] | |
vars: | |
src_dir: '/usr/local/src' | |
pcre_version: "8.33" | |
pcre_name: "pcre-$pcre_version" | |
pcre_dl_url: "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/$pcre_name.tar.gz" | |
httpd_version: "2.4.6" | |
httpd_name: "httpd-$httpd_version" |
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
/etc/init.d/mysql start |
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
- hosts: [web-server] | |
vars: | |
src_dir: "/usr/local/src" | |
php_src_dir: "$src_dir/php" | |
php_version: "5.5.4" | |
php_src_url: "http://jp1.php.net/distributions/php-$php_version.tar.gz" | |
tasks: | |
- name: "remove installed package" | |
yum: name=php state=absent |
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
- hosts: [web-server] | |
vars: | |
src_dir: '/usr/local/src' | |
libevent_src_dir: "$src_dir/libevent" | |
libevent_version: "2.0.21" | |
libevent_src_url: "https://github.com/downloads/libevent/libevent/libevent-$libevent_version-stable.tar.gz" | |
libevent_dir: "libevent-$libevent_version-stable" | |
memcached_src_dir: "$src_dir/memcached" |
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
#!/bin/bash | |
PROGPATH=`echo $0 | /bin/sed -e 's,[\\/][^\\/][^\\/]*$,,'` | |
#. $PROGPATH/utils.sh | |
# Default values (days): | |
critical=30 | |
warning=60 | |
whois="/usr/bin/whois" |
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
FROM centos | |
MAINTAINER myaaaaa | |
#Install Packages | |
RUN yum update -y | |
RUN yum install -y passwd openssh openssh-server openssh-clients sudo | |
# Root password | |
RUN echo "root:rootroot" | chpasswd |