Skip to content

Instantly share code, notes, and snippets.

@simonw
simonw / redis-docker-for-mac.md
Last active August 26, 2024 17:27
How to run a redis server using Docker-for-Mac

How to run a redis server using Docker-for-Mac

This will work with other flavours of Docker as well.

Run the following command:

docker run --name my-redis -p 6379:6379 --restart always --detach redis

This will download and run redis, set to auto-restart when your machine starts and bound to port 6379 on your machine.

@adilsoncarvalho
adilsoncarvalho / docker-compose.yml
Created March 4, 2017 22:42
This will resolve the filesystem issue between Docker and macOS for MSSQL Server
version: "2"
services:
mssql:
image: microsoft/mssql-server-linux
volumes:
- mssql-volume:/var/opt/mssql
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=Test@123
@cflove
cflove / ColdFusion_MongoDB.cfm
Last active January 9, 2020 23:12
Experiment talking to MongoDB java driver directly in ColdFusion
<cfset Mongo = CreateObject("java","com.mongodb.MongoClient")>
<cffunction name="m" returntype="any">
<cfargument name="value" type="any">
<cfif IsJSON(arguments.value)>
<cfset local.retrun = CreateObject("java","com.mongodb.util.JSON").parse(arguments.value)>
<cfelse>
<cfset local.retrun = CreateObject("java","com.mongodb.util.JSON").parse( SerializeJSON(arguments.value) )>
</cfif>
<cfreturn local.retrun>
@oneblackcrayon
oneblackcrayon / MailChimp-VCard-CSS-Styles.css
Last active December 13, 2015 20:58
MailChimp VCard CSS Styles. Jump start your MailChimp VCard stylings
/* starts the vcard injected tags */
div.vcard {}
span.org {display: inline;}
/* by adding a margin right of 4 pixels, we fake a space in between inline items that are all in a line */
span.fn {display: inline;margin-right:4px;}
/* hide the br tag that gets injected */
div.vcard br {}