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
docker run \ | |
-d \ | |
-e TZ=America/Chicago \ | |
--shm-size=4096m \ | |
-p 80:80 \ | |
--name=zoneminder \ | |
--restart unless-stopped \ | |
quantumobject/docker-zoneminder |
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
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 |
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
docker run \ | |
-p 139:139 \ | |
-p 445:445 \ | |
-e TZ=CST6CDT \ | |
-v /media/kingkong:/mount/kingkong \ | |
-d \ | |
--name samba \ | |
--restart unless-stopped \ | |
dperson/samba \ | |
-s "kingkong;/mount/kingkong" |
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
docker run \ | |
-d \ | |
--name=unifi \ | |
-v /var/lib/docker/volumes/unifi/config:/config \ | |
-e PUID=1000 \ | |
-e PGID=1000 \ | |
-p 3478:3478/udp \ | |
-p 10001:10001/udp \ | |
-p 8080:8080 \ | |
-p 8081:8081 \ |
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
{ | |
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, |
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
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 |
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
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. |
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
IDatabase db = redis.GetDatabase(); | |
IBatch batch = db.CreateBatch(); | |
foreach (var filename in filenames) | |
{ | |
tasks.Add(batch.SortedSetAddAsync("files", filename, 0)); | |
} | |
batch.Execute(); |
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
Zoneminder setup for webcams: | |
Wansview K2 ================= | |
Source Type: Ffmpeg | |
Source Path: rtsp://user:password@ipaddress:554/live/ch0 | |
Remote Method: TCP | |
Shengzen X Series ================= |
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
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); |