サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
掃除・片付け
qiita.com/asahina_dev
#!/bin/sh if [ $# -lt 2 ]; then echo "usage: $0 <fqdn> <passphrase> [<city>] [<pref>]" echo "pref : default => KANAGAWA" echo "city : default => YOKOHAMA" exit 1; fi echo "-------------------------------------------------------" CN=$1 PP=$2 CITY=$3 PREF=$4 # default CITY=${CITY:=YOKOHAMA} PREF=${PREF:=KANAGAWA} echo CN=$CN echo PP=$PP echo CITY=$CITY echo PREF=$PREF echo "-------------------------
# Makefile.PL $makepl_arg o conf makepl_arg PREFIX=/path/to/dir # make arg o conf make <make-command> o conf make_arg <make-command-arg> # make install arg o conf make_install_build_command <make-command> o conf make_install_arg <make-command-arg> # wget o conf wget <wget-command> # pager o conf pager <less-command> # unzip o conf unzip <unzip-command> # tar o conf tar <tar-command> o conf tar-ver
<project name="projectname" default="gen-ddl" basedir="."> <property name="rootpackagename" value="rootpackage" /> <property name="entityfilepattern" value="rootpackage*/entity/**/*.java" /> <property name="env" value="ut" /> <property name="jdbcmanagername" value="jdbcManager" /> <property name="projectName" value="util" /> <property name="classpathdir" value="target/classes" /> <property name="e
シンボリックリンクの作り方によりTomcatが起動できないことがある。 誤った例 permission type size mon day hh:mm files
Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing up
public function dropDown($name, $links = array()) { return $this -> Html -> tag("div", join("", array( "", $this -> Form -> button("SELECT<span class='caret'></span>", array( "", "class" => "btn btn-default dropdown-toggle", "id" => $name, "data-toggle" => "dropdown" )), $this -> Html -> nestedList($links, array( "class" => "dropdown-menu", "role" => "menu", "aria-labelledby" => $name ), array("ro
posted articles:Java:30%CentOS:17%PHP:12%MySQL:11%Apache:10%
<profiles> <profile> <activation> <jdk>1.7</jdk> </activation> </profile> </profiles> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.1</version> <configuration> <source>1.7</source> <target>1.7</target> </configuration> </plugin> </plugins> </build> Register as a new user and use Qiita more conveniently You get artic
$project名 プロパティ Javaのビルドパス ソース の src/test/java, src/test/resource の除外の設定を */ を追加する。 それ以外 デプロイメント・アセンブリーから削除 $project名 プロパティ デプロイメント・アセンブリー 赤枠の部分を除去する。 Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing up
情報 現状以下のようなサービスから郵便番号検索に使えるデータが配布されている。 日本郵便株式会社 CSV いわずと知れた原本 住所.jp CSV TSV Access 2000 (現在MSはsupportしてません) MySQL SQLite 重複した郵便番号でもユニークになる住所コードがある zipcloud CSV 日本郵便株式会社のデータを簡易加工したデータ さいごに 他にも知ってる人がいたら情報プリーズ Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing
import org.apache.commons.lang3.RandomStringUtils; public class Main { public static void main(String[] args) { // 10文字のランダムな文字列生成 System.out.println(RandomStringUtils.random(10)); // アスキー文字で 10文字のランダムな文字列生成 System.out.println(RandomStringUtils.randomAscii(10)); // 英字で 10文字のランダムな文字列生成 System.out.println(RandomStringUtils.randomAlphabetic(10)); // 英数字で 10文字のランダムな文字列生成 System.out.println(RandomStrin
ファイル ftp://ftp.riken.jp/Linux/centos/7/extras/x86_64/Packages/epel-release-7-5.noarch.rpm ディレクトリー ftp://ftp.riken.jp/Linux/centos/7/extras/x86_64/Packages/ ファイル ( epel-release-*.noarch.rpm ) Packages/epel-release-7-5.noarch.rpm コマンド一発・q・ Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark them
sed -i.back "/^\(#.*\|[ ]*\)$/d" httpd.conf Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing up
<?xml version="1.0"?> <?mso-application progid="Excel.Sheet"?> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:x="urn:schemas-microsoft-com:office:excel"> <Worksheet ss:Name="Sheet1"> <Table ss:DefaultColumnWidth="10" ss:Default
class Model extends AppModel { $validate = array( /* チェック:後述 */ ); } class ModelController extends AppController { public function create () { $data = $this->request->data; // チェックのみを行う。 $this->Model->set($data); if (!$this->Model->validates()) { echo "NG \n"; } // 登録と同時にチェックを行う。 $this->Model->create(); if (!$this->Model->save ($data)) { echo "NG \n"; } // 規定外のテンプレートを呼ぶ ( ctp は不要 ) $this->render (
@echo off rem C:\Users\username\Documents\winscp-teraterm.cmd -x !@ !U !P PATH=C:\Program Files\teraterm;%PATH% IF "%1"=="-x" GOTO :EOF1 IF "%2"=="-x" GOTO :EOF2 IF "%3"=="-x" GOTO :EOF3 :EOF1 start /b ttermpro.exe %2 /ssh /2/ /auth=password /user=%3 /passwd=%4 GOTO :EOF :EOF2 start /b ttermpro.exe %3 /ssh /2/ /auth=password /user=%4 /passwd=%5 GOTO :EOF :EOF3 start /b ttermpro.exe %4 /ssh /2/ /au
public class Main { public static void main (String[] args) { System.out.println("Hello World"); } }
# Android (全体) RewriteCond %{HTTP_USER_AGENT} ".*Android.*" [NC] # Android (スマートフォン) RewriteCond %{HTTP_USER_AGENT} ".*Android.*Mobile.*" [NC] # iPhone RewriteCond %{HTTP_USER_AGENT} ".*iPhone.*" [NC] # iPad RewriteCond %{HTTP_USER_AGENT} ".*iPad.*" [NC]
SELECT w.* FROM (SELECT @row_id := @row_id +1 as row_id, w.* FROM works w ) w RIGHT JOIN ( SELECT 1 row_id UNION ALL SELECT 2 row_id UNION ALL SELECT 3 row_id UNION ALL SELECT 4 row_id UNION ALL SELECT 5 row_id ) x ON w.row_id = x.row_id; Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark the
<style> .flex { width: 1000px; min-height: 400px; margin: 0px; padding: 0px; display: -webkit-flex; display: flex; -webkit-flex-flow: row; flex-flow: row; } .flex .flex_chilled { -webkit-flex: 1; flex: 1; } </style> <div class="flex"> <div class="flex_chilled"></div> <div class="flex_chilled"></div> <div class="flex_chilled"></div> </div> Register as a new user and use Qiita more conveniently You
DROP PROCEDURE IF EXISTS exec1; DELIMITER ;; CREATE PROCEDURE exec1( IN SQL_VARCHAR TEXT, IN LOOP_COUNT_MAX INT, IN VAL TEXT ) BEGIN DECLARE LOOP_COUNT INT DEFAULT 1; SET @STMT = SQL_VARCHAR; PREPARE STMT FROM @STMT; WHILE LOOP_COUNT < LOOP_COUNT_MAX DO SET @P1 = SUBSTRING_INDEX(SUBSTRING_INDEX(VAL, ':', LOOP_COUNT), ':', -1); EXECUTE STMT USING @P1; SET LOOP_COUNT = LOOP_COUNT + 1; END WHILE; END
setlocale(LC_ALL, 'ja_JP.UTF-8'); // read by sjis $countent = file_get_contents($file -> path) // converter $countent = mb_convert_encoding($countent, "UTF-8", "SJIS"); // save to utf8 $temp = fopen (tempnam($file->path, date("Y-m-d_H_i_s")), "r+"); fwrite($temp, $countent); rewind($temp); // read $line = fgetcsv($temp); Register as a new user and use Qiita more conveniently You get articles that
cd C:\Program Files\Apache Software Foundation\httpd 2.4.9 bin\httpd.exe -k install -n "apache 2.4.9" Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing up
httpd.conf の設定を変更する ServerRoot $HTTPD_HOME DocumentRoot $HTTPD_HOME/htdocs Directory $HTTPD_HOME\htdocs Directory $HTTPD_HOME\cgi-bin ScriptAlias /cgi-bin $HTTPD_HOME\cgi-bin httpd.conf の設定を追加する (別ファイルで Include する ) LoadModule php5_module $PHP_HOME\php5apache2_4.dll PHPIniDir $PHP_HOME AddType application/x-httpd-php .php php.ini の編集
mysqldump -u root -ppassword -A # ファイル出力(圧縮コミ) # | gzip -c > mysql.all.dump.$(date -I).gz # | bzip2 -c > mysql.all.dump.$(date -I).bz2
# Usage: /etc/init.d/denyhosts start # 起動 # Usage: /etc/init.d/denyhosts stop # 停止 # Usage: /etc/init.d/denyhosts status # 状態確認 # Usage: /etc/init.d/denyhosts restart # 再起動 # Usage: /etc/init.d/denyhosts reload # 再読み込み # Usage: /etc/init.d/denyhosts force-reload # 再起動(強制) # Usage: /etc/init.d/denyhosts condrestart # 再起動(起動している場合のみ) /etc/init.d/denyhosts restart Register as a new user and use Qiita
REM YYYY/MM/DD SET _DATE_=%DATE% REM YYYY-MM-DD SET _DATE_=%DATE:/=-% REM YYYYMMDD SET _DATE_=%DATE:/=% REM YYYY/MM SET _DATE_=%DATE:~1,7% REM YYYY SET _DATE_=%DATE:~0,4% REM YYYYMM SET _DATE_=%DATE:~0,7% REM MM/DD SET _DATE_=%DATE:~5,5% REM HH:MI:SS.MIS SET _TIME_=%TIME% REM HHMISS SET _TIME_=%TIME::=% SET _TIME_=%_TIME_:~0,6% REM HH:MI:SS SET _TIME_=%TIME:~0,8% REM HH:MI SET _TIME_=%TIME:~0,5% R
次のページ
このページを最初にブックマークしてみませんか?
『@asahina_devのマイページ - Qiita』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く