Skip to content

Instantly share code, notes, and snippets.

@joshbartley
joshbartley / sentinel.conf
Created December 18, 2023 16:17
Redis Sentinel TLS Setup
##Config changes that need to be made to enforce a TLS only redis cluster with sentinel
protected-mode no
# port <sentinel-port>
# The port that this sentinel instance will run on
#port 26379
port 0
#Redis docs show that it should inherit settings from the redis.conf but it doesn't add them here
tls-port 26379
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joshbartley
joshbartley / GIFEncoder.class.php
Created February 13, 2020 20:42 — forked from SeanJA/GIFEncoder.class.php
dynamic animated gif clock
<?php
/*
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Formerly known as:::
:: GIFEncoder Version 2.0 by László Zsidi, http://gifs.hu
::
:: This class is a rewritten 'GifMerge.class.php' version.
::
:: Modification:
@joshbartley
joshbartley / EFEntityClass.cs
Last active August 29, 2015 14:07
Entity Framework Sequence Key Support
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Entity.Core.EntityClient;
using System.Data.Entity.Core.Metadata.Edm;
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Core.Objects.DataClasses;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
@joshbartley
joshbartley / Job with Job Data
Created September 19, 2014 13:16
Quartz.Net ADONetJobStore
using Quartz;
[PersistJobDataAfterExecution]
public class Main : IJob
{
private IJobExecutionContext _jobExecutionContext;
public void Execute(IJobExecutionContext context)
{
_jobExecutionContext = context;