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 | |
import tarfile | |
import docker | |
from docker.models.containers import Container | |
c = docker.APIClient(base_url='tcp://192.168.186.128:5555', timeout=5) | |
print(c.containers()) | |
#cl = docker.client.APIClient(base_url='tcp://192.168.186.128:5555', timeout=5) | |
print(c.version()) |
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
ツァ2--- Showing help page 1 of 14 (/help <page>) --- | |
/? [command: CommandName] | |
/? <page: int> | |
/alwaysday [true|false] | |
/changesetting allow-cheats <true|false> | |
/changesetting difficulty <value: Difficulty> | |
/changesetting difficulty <value: int> | |
/clear [player: target] [itemName: Item] [data: int] [maxCount: int] | |
ツァ2Tip: Use the <tab> key while typing a command to auto-complete the command or its arguments | |
help 2 |
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 | |
GROUPNAME=ubuntu-vg | |
TARGETVOLUME=root | |
SAVEDIR=/osbp | |
SPEED=30000 | |
TARGETFILE=/mnt2/vmsrvs/mainsrv.vmdk | |
SAVENAME=mainsrvbp`date "+%Y%m%d_%H%M%S"`.vmdk | |
#4日前に作られたものを削除 | |
find $SAVEDIR -mtime 4| xargs rm -f |
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
sed -e 's/"online-mode" => true/"online-mode" => false/g' src/pocketmine/Server.php > src/pocketmine/a | |
rm src/pocketmine/Server.php | |
mv src/pocketmine/a src/pocketmine/Server.php | |
cat src/pocketmine/Server.php | |
grep -rl "onRun(int" ./src/pocketmine | xargs perl -i -pe "s/onRun\(int/onRun\(/g" | |
cat src/pocketmine/scheduler/Task.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
Microsoft Windows [Version 10.0.16299.248] | |
(c) 2017 Microsoft Corporation. All rights reserved. | |
C:\Users\hani>cd z: | |
Z:\ | |
C:\Users\hani>z | |
'z' は、内部コマンドまたは外部コマンド、 | |
操作可能なプログラムまたはバッチ ファイルとして認識されていません。 |
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
<?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
//debug時はtrueとしておこう | |
final boolean debug =true; | |
//verify lvl | |
new PiracyChecker(this).enableGooglePlayLicensing(ライセンスとアプリ内課金のbase64のライセンスキー).callback( | |
new PiracyCheckerCallback() { | |
@Override | |
public void allow() { | |
toastMake("うまくいった時に何か実行!"); | |
} |
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
sed -e 's/"online-mode" => true/"online-mode" => false/g' src/pocketmine/Server.php > src/pocketmine/a | |
rm src/pocketmine/Server.php | |
mv src/pocketmine/a src/pocketmine/Server.php | |
cat src/pocketmine/Server.php | |
sed -e 's/onRun(int/onRun(/g' src/pocketmine/scheduler/Task.php > src/pocketmine/b | |
rm src/pocketmine/scheduler/Task.php | |
mv src/pocketmine/b src/pocketmine/scheduler/Task.php | |
cat src/pocketmine/scheduler/Task.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
<?php | |
/* | |
* | |
* ____ _ _ __ __ _ __ __ ____ | |
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \ | |
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) | | |
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/ | |
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_| | |
* | |
* This program is free software: you can redistribute it and/or modify |
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
rm -rf plugins | |
rm -rf bin | |
rm -rf CI-Test | |
rm -rf artifacts | |
wget https://gist.githubusercontent.com/haniokasai/33bb215ea7d7010b4667ee6c636d8686/raw/0f2cad37f6c01f93c614c77a131da5fe4988872a/ci.php | |
git submodule update --init | |
mkdir plugins | |
mkdir artifacts | |
wget -O PHP7.tar.gz https://dl.bintray.com/pocketmine/PocketMine/PHP_7.0.6_x86-64_Linux.tar.gz --no-check-certificate | |
tar -xf PHP7.tar.gz |
NewerOlder