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
# %PAYARA_HOME%/glassfish/bin/asadminにPATHが通っている場合 | |
# 起動したい | |
$ asadmin start-domain | |
# 停止したい | |
$ asadmin stop-domain | |
# 再起動したい | |
$ asadmin restart-domain |
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
# 単純にcloneする | |
$ git clone https://github.com/edihbrandon/RictyDiminished.git | |
Cloning into 'RictyDiminished'... | |
remote: Enumerating objects: 25, done. | |
remote: Total 25 (delta 0), reused 0 (delta 0), pack-reused 25 | |
Unpacking objects: 100% (25/25), done. | |
# RictyDiminished配下にフォントファイルを取得できる | |
$ find RictyDiminished/ -type f -maxdepth 1 | |
RictyDiminished/.uuid |
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
import json, requests | |
WEB_HOOK_URL = "https://hooks.slack.com/services/" | |
WEB_HOOK_URL += "WebhookURLの後半" | |
requests.post(WEB_HOOK_URL, data=json.dumps({ | |
# channelでメッセージを送るチャネルが指定できます。 | |
'channel': '#チャネル名', | |
'text': "<@メンション相手のメンバーID> メンションを送るには `<@メンバーID>` を指定する。", | |
'link_names': 1, | |
'username': 'usernameを指定すると投稿するユーザを変えられる。', |
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
# -n "${line}" で最終行が空行でない場合にも対応する | |
cat {ファイル名} | while read line || [ -n "${line}" ]; do | |
# 1行($line)ずつ処理する | |
done |
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
# Windows7 | |
タブの切り替え : Ctrl + Tab |
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
cannot Deploy アプリ名 | |
deploy is failing=Error occurred during deployment: Exception while loading the app : CDI deployment failure:WELD-000072: Bean declaring a passivating scope must be passivation capable. Bean: Managed Bean [class secondSubmittedValue.PasswordBean] with qualifiers [@Default @Any @Named]. Please see server.log for more details. |
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
[パッケージ・エクスプローラー]で対象ソースを選択 > コンテキストメニュー > [ソース] : Alt + Shift + S > [GetterおよびSetterの生成] | |
無理してショートカット : ソース上で[Shift + Alt + S] > [R] > ダイアログで設定 |
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
# 自動起動を設定する | |
$ chkconfig NetworkManager on | |
情報:'systemctl enable NetworkManager.service'へ転送しています。 | |
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files === | |
Authentication is required to manage system service or unit files. | |
Authenticating as: userName | |
Password: | |
==== AUTHENTICATION COMPLETE === | |
Created symlink from /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service to /usr/lib/systemd/system/NetworkManager.service. | |
Created symlink from /etc/systemd/system/multi-user.target.wants/NetworkManager.service to /usr/lib/systemd/system/NetworkManager.service. |
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
; ドメインのパスワード変更したら変更する | |
[http] | |
proxy = http://{アカウント}:{パスワード}@{プロキシ}:{ポート} | |
[https] | |
proxy = http://{アカウント}:{パスワード}@{プロキシ}:{ポート} |
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
<省略> | |
setSize: function () { | |
<省略> | |
} else if (this.options.size && this.options.size != 'auto' && menu.find('li' + notDisabled).length > this.options.size) { | |
var optIndex = this.$lis.not('.divider' + notDisabled).find(' > *').slice(0, this.options.size).last().parent().index(); | |
var divLength = this.$lis.slice(0, optIndex + 1).filter('.divider').length; | |
menuHeight = liHeight * this.options.size + divLength * divHeight + menuPadding; | |
if (that.options.dropupAuto) { | |
//noinspection JSUnusedAssignment | |
this.$newElement.toggleClass('dropup', (selectOffsetTop > selectOffsetBot) && (menuHeight < menu.height())); |
NewerOlder