echo "clear 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
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 |
openssl req -new -x509 -keyout cert.pem -out cert.pem -days 365 -nodes -subj '/C=GB/ST=London/L=London/O=Global Security/OU=IT Department/CN=example.com'
openssl req -new -x509 -keyout private.pem -out cert.pem -days 365 -nodes -subj '/C=GB/ST=London/L=London/O=Global Security/OU=IT Department/CN=example.com'
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) => { |
https://filme.imyfone.com/video-edit-tutorials/ffmpeg-flip-video/
Step#1: To Flip Video Vertically
Use the command line to vertically flip the video.
ffmpeg -i INPUT.mp4 -vf vflip -c:a copy OUTPUT.mp4 Step#2: To Flip Video Horizontally
Input following command line to ffmpeg flip video horizontally.
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/ |
NewerOlder