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
/// <summary> | |
/// Provides a convenience method for constructing an EnumerableStream<T>. | |
/// </summary> | |
public static class EnumerableStream | |
{ | |
public static EnumerableStream<T> Create<T>(IEnumerable<T> source, Func<T, List<byte>> serializer) | |
{ | |
return new EnumerableStream<T>(source, serializer); | |
} | |
} |
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 clearDockerContainerLog() { | |
_dirname=$(sudo ls /var/lib/docker/containers/ | grep $1) | |
sudo sh -c "cat /dev/null > /var/lib/docker/containers/$_dirname/$_dirname-json.log" | |
_dirname="" | |
} | |
alias clean-docker-log="clearDockerContainerLog" |
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
[mergetool] | |
prompt = false | |
keepBackup = false | |
keepTemporaries = false | |
[merge] | |
tool = winmerge | |
[mergetool "winmerge"] | |
name = WinMerge |
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/bash | |
set -x | |
shell='user@ssh-host-on-ipmi-network' | |
ipmihost='192.168.1.16' | |
ifalias='127.0.0.2' | |
ports="80 443 623 5900 5901 5120 5123 8889" | |
for p in $ports; do | |
fwportspec=" ${fwportspec} -L $ifalias:$p:$ipmihost:$p " |