Skip to content

Instantly share code, notes, and snippets.

Joe j-chimienti

Block or report user

Report or block j-chimienti

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View session-test.js
// Start a session.
session = db.getMongo().startSession( { readPreference: { mode: "primary" } } );
// session = db.getMongo().startSession()
employeesCollection = session.getDatabase("hr").employees;
eventsCollection = session.getDatabase("reporting").events;
// Start a transaction
session.startTransaction( { readConcern: { level: "snapshot" }, writeConcern: { w: "majority" } } );
View payments.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View actors_become.scala
package sample.become
import akka.actor._
import scala.concurrent.duration._
// Akka adaptation of
// http://www.dalnefre.com/wp/2010/08/dining-philosophers-in-humus/
/*
* First we define our messages, they basically speak for themselves
@j-chimienti
j-chimienti / nginx-docker-compose.yml
Created Mar 19, 2019
docker compose file to get nginx proxy and lets encrypt
View nginx-docker-compose.yml
version: '2'
services:
nginx:
restart: always
image: jwilder/nginx-proxy
container_name: nginx
ports:
- 80:80
- 443:443
View docker-compose.yml
version: '3.1'
services:
mongo1:
hostname: mongo1
container_name: localmongo1
image: mongo
expose:
- 27017
restart: always
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
View mongo-cluster.yml
version: '3.1'
services:
mongo1:
hostname: mongo1
container_name: localmongo1
image: mongo:4.0-xenial
expose:
- 27017
restart: always
entrypoint: [ "/usr/bin/mongod", "--bind_ip_all", "--replSet", "rs0" ]
View program.md

AJAC SkinnyFat

Program Info

l i
Program 4 days weekly
Workout Duration 30-60 minutes
Program Duration 8-12 Weeks
Rest Periods About one minute between sets
View quotes.json
[
[
"We may make contact with ambitious species on other planets or stars; soon thereafter there will be interplanetary war. Then, and only then, we will of this earth be one",
"Will Durant"
],
[
"We are punished by our sins, not for them",
"Elbert Hubbard"
],
[
View script.js
var quotes = [
{ quote: 'The lessons we remember are the lessons we learn the hard way',
author: 'Seth Godin'
},
{
quote: 'Anything worth doing is worth doing slowly',
author: 'Mae West'
}, {
quote: 'The things you own end up owning you. It is only after you lose everything that you are free to do anything.',
author: 'Chuck Palahniuk '
You can’t perform that action at this time.