Skip to content

Instantly share code, notes, and snippets.

$ as-put-scaling-policy TEST_SCALE_POLICY --auto-scaling-group TEST_SCALE_INSTANCE_GROUP --adjustment=2 --type ChangeInCapacity
ALTER TABLE hogehoge AUTO_INCREMENT = 10;
ALTER TABLE hogehoge ENGINE = MyISAM;
ALTER TABLE hogehoge AUTO_INCREMENT = 10;
ALTER TABLE hogehoge ENGINE = InnoDB;
ALTER TABLE hogehoge ALGORITHM = COPY, AUTO_INCREMENT= 10;
/usr/bin/php /path/to/cake/app/Console/Command/cake.php HogeHoge -app /path/to/cake/app &
nohup /bin/sh /path/to/cake/app/Console/Command/cake -app /path/to/cake/app HogeHoge &
nohup /bin/sh /path/to/cake/app/Console/Command/cake -app /path/to/cake/app HogeHoge >/dev/null 2>&1 &
<?php
$processUser = posix_getpwuid(posix_geteuid());
print $processUser['name'];
WebView webview;
String htmlString = "<script>"+
"httpObj = new XMLHttpRequest();"+
"httpObj.open('GET', 'http://test.ekos.biz/android_loadDataWithBase.txt', false);"+
"xmlHttp.send(null);"+
"document.write(xmlHttp.responseText);"+
"</script>";
webview = (WebView)findViewById(R.id.webView);//layoutのWebView参照
webview.getSettings().setJavaScriptEnabled(true);
webview.loadDataWithBaseURL( null, htmlString, "text/html", "UTF-8", null );
/*
省略
*/
//JavaScript内でアクセスしに行くドメインを定義
String domain = "http://test.ekos.biz/";
//第1引数のbaseUrlにドメインを指定
webview.loadDataWithBaseURL( domain , htmlString, "text/html", "UTF-8", null );