echo "clear container log : $(date)"
df -h
name=$(docker ps --format '{{.Names}}')
log_file=$(docker inspect --format='{{.LogPath}}' $name)
du -h "${log_file}" | cut -f 1
echo "" > $(docker inspect --format='{{.LogPath}}' $name )
du -h "${log_file}" | cut -f 1
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
https://stackoverflow.com/questions/60957159/environment-variable-in-unity-to-differ-between-development-and-production | |
https://gist.github.com/jonathanpeppers/a64a840d2131939e8752 | |
/opt/Unity/Editor/Unity -projectPath /usr/src/app/ci/base/unity-assetbundle -batchmode -nographics -logFile /dev/stdout -accept-apiupdate -stackTraceLogType Full -executeMethod AssetBundles.AssetBundleBuilder.Build -danjiIds 38017 | |
https://forum.unity.com/threads/caught-fatal-signal-signo-11-code-1-errno-0-addr-0x120-on-linux.1017250/ | |
https://forum.unity.com/threads/released-ucmd-supercharge-unitys-command-line-runner.562246/ |
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
function parseIniString(data) { | |
var regex = { | |
section: /^\s*\[\s*([^\]]*)\s*\]\s*$/, | |
param: /^\s*([^=]+?)\s*=\s*(.*?)\s*$/, | |
comment: /^\s*;.*$/ | |
}; | |
var value = {}; | |
var lines = data.split(/[\r\n]+/); | |
var section = null; | |
lines.forEach(function (line) { |
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
du -h . --max-depth=1 | sort -r -h | |
docker system df | |
du -shc /var/lib/docker/* | |
docker ps --size | |
du -shc /var/lib/docker/overlay2/*/diff |
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
using NUnit.Framework; | |
using System; | |
[TestFixture] | |
public class Tests | |
{ | |
[Test] | |
public static void Test1() | |
{ | |
Assert.AreEqual("emocleW", Kata.SpinWords("Welcome")); |
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
function Helper() { | |
function getCells(data, type) { | |
return data.map(cell => `<${type} style="border: 1px solid #000;" >${cell}</${type}>`).join(''); | |
} | |
function createBody(data) { | |
return data.map(row => `<tr style="border: 1px solid #000;" >${getCells(row, 'td')}</tr>`).join(''); | |
} | |
this.generateTable = (data) => { |
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
https://addons.opera.com/en/extensions/details/vertical-tabs/ |
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
#launch agent | |
bash /log-agent.sh > /dev/null 2>&1 & | |
#launch java app | |
java -jar .... |
NewerOlder