I hereby claim:
- I am phillijw on github.
- I am phillijw (https://keybase.io/phillijw) on keybase.
- I have a public key ASBElBox4fA5TZOcjmXddhopv9KWO9JDWxTqiHw2jkTXIwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<PropertyGroup> | |
<EnvConfig>$(EnvConfig)</EnvConfig> | |
<EnvConfig Condition=" '$(EnvConfig)' == '' ">Local</EnvConfig> | |
</PropertyGroup> | |
... | |
<Content Include="Web.Production.config"> | |
<DependentUpon>Web.config</DependentUpon> | |
</Content> | |
<Content Include="Web.Test.config"> | |
<DependentUpon>Web.config</DependentUpon> |
@echo off | |
"C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe" ../MEDIC.Web.csproj /t:rebuild;package /p:Configuration=Release /p:EnvConfig="Production" | |
if errorlevel 1 goto errorDone | |
echo Build successful | |
robocopy ../bin/ ../obj/Release/Package/PackageTmp/ Web.config | |
echo Copied transformed Web.config |
Console.WriteLine(DateTime.Now); | |
//This block takes 1 second to run because all 5 tasks are running simultaneously | |
{ | |
var a = Task.Delay(1000); | |
var b = Task.Delay(1000); | |
var c = Task.Delay(1000); | |
var d = Task.Delay(1000); | |
var e = Task.Delay(1000); |
IDatabase db = redis.GetDatabase(); | |
IBatch batch = db.CreateBatch(); | |
foreach (var filename in filenames) | |
{ | |
tasks.Add(batch.SortedSetAddAsync("files", filename, 0)); | |
} | |
batch.Execute(); |
docker run \ | |
-d \ | |
--name="home-assistant" \ | |
-v /home/phillijw/docker/home-assistant/config:/config \ | |
-v /etc/localtime:/etc/localtime:ro \ | |
--net=host \ | |
--restart always \ | |
homeassistant/home-assistant |
{ | |
var utcEpoch = DateTime.Parse("1970-01-01", CultureInfo.InvariantCulture, | |
DateTimeStyles.AssumeUniversal | DateTimeStyles.AdjustToUniversal); | |
Console.WriteLine(utcEpoch.Kind); | |
Console.WriteLine(utcEpoch.ToString("o")); | |
Console.WriteLine(utcEpoch.ToString("zzz")); | |
} | |
Console.WriteLine("-----------"); | |
{ | |
var utcEpoch = DateTime.Parse("1970-01-01", CultureInfo.InvariantCulture, |
Goal: Set up Plex for my LAN inside a docker container. I am not using or relying on the plex.tv website at all. This | |
is all local to my network. Plex updates happen through the web interface. I'm not sure how I'm going to handle | |
the docker image updates yet or if I will even worry about it. | |
First, set up a ramdisk (type=tmpfs; I used 4GB but smaller is fine probably) to use for transcoding. This allows plex to | |
transcode files without reading and writing constantly from your SSD or other disk drive. This lets it do it all in | |
memory instead. I mounted this at /mnt/ramdisk and then set it up in my fstab so it persists through reboots. | |
Second, make sure you have docker installed ya big dummy. |
docker run \ | |
--name=piwigo \ | |
-v /etc/localtime:/etc/localtime:ro \ | |
-v /var/lib/docker/volumes/piwigo/config:/config \ | |
-v /media/kingkong/backups/pictures:/photos \ | |
-e TZ=America/Chicago \ | |
-p 8980:80 \ | |
-d \ | |
--restart unless-stopped \ | |
linuxserver/piwigo |
docker run \ | |
-d \ | |
-e TZ=America/Chicago \ | |
--shm-size=4096m \ | |
-p 80:80 \ | |
--name=zoneminder \ | |
--restart unless-stopped \ | |
quantumobject/docker-zoneminder |