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
@j-chimienti
j-chimienti / fast.sh
Created Sep 21, 2019 — forked from nvk/fast.sh
OSX For Hackers
View fast.sh
#!/usr/bin/env bash
##
# Install:
# curl -sL https://raw.github.com/gist/2108403/fast.sh | sh
#
# Share your feedbacks on:
# https://gist.github.com/2108403
#
# Author: @DAddYE (Twitter/Github)
View whiteboardCleaner.md

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2

Results

View generate-ln-invoices.js
// htlc.me
const $btn = document.querySelector("body > div.container.mb-4 > div > div.col-md-8.main-column > div.card.mb-4.payment-actions.show-on-start > div.card-body > form.action-details.preparing-receive.text-success > div:nth-child(2) > button")
const $amt = document.querySelector("body > div.container.mb-4 > div > div.col-md-8.main-column > div.card.mb-4.payment-actions.show-on-start > div.card-body > form.action-details.preparing-receive.text-success > div:nth-child(1) > div > input")
async function sleep(sec = 1) {
return new Promise(resolve => {
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
You can’t perform that action at this time.