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 | |
SRC_DIR="/source/directory/path" | |
DEST_DIR="/destination/directory/path" | |
LOG_FILE="/path/to/clamscan.log" | |
find "$SRC_DIR" -type f | xargs -I {} -P $(nproc) sh -c " | |
if clamscan -i --no-summary '{}' | |
then | |
rsync -avz --progress '{}' '$DEST_DIR' |
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> | |
/// Used to create logging scopes that will live for the lifetime of the service providers scope. | |
/// </summary> | |
public interface ILoggerScopeFactory | |
{ | |
void BeginScope<TState>(TState state); | |
void BeginScope(String messageFormat, params Object[] args); | |
} | |
public class DisposingLoggerScopeFactory : ILoggerScopeFactory, IDisposable |
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 System.Collections.Generic; | |
namespace System.Threading.Tasks | |
{ | |
public static class AsyncUtilities | |
{ | |
/// <summary> | |
/// Execute's an async Task{T} method which has a void return value synchronously | |
/// </summary> | |
/// <param name="task">Task{T} method to execute</param> |
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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace System.Data.SqlClient | |
{ | |
public class ColumnEntity | |
{ |