Skip to content

Instantly share code, notes, and snippets.

@zackslash
zackslash / wrap.js
Last active December 12, 2019 11:29
HTML-To-Text in browser
/*
* Description: Small wapper to expose HTML-To-Text (https://www.npmjs.com/package/html-to-text) functionality to browser
*
* package.json == {"dependencies": {"html-to-text": "*"}}
*
* $ browserify --standalone convertHTMLToString wrap.js -o clientHtmlToText.js
*
* convertHTMLToString('<h1>test</h1>',{wordwrap: 130});
*
* Note: Resulting file needs to be placed before 'requirejs' dependency if present.
@zackslash
zackslash / GIT_GPG.md
Last active February 13, 2025 18:11
Setup GIT for signed commits without requesting passphrase on each commit

The following should allow you to perform signed git actions without having to input your passphrase everytime (These steps are for OSX)

@zackslash
zackslash / stunnel.conf
Created January 20, 2016 09:18
Stunnel config for dev local SSL endpoint
#Generate certs through Open SSL
# $ openssl req -new -x509 -days 365 -nodes -out stunnel.pem -keyout stunnel.key
foreground = yes
[fortifi]
accept = development.<URL>.it:8090
connect = development.<URL>.it:8080
cert=stunnel.pem
key=stunnel.key
CAfile = stunnel.pem
@zackslash
zackslash / FrameworkBuildScript
Created July 16, 2014 15:24
Script to Build .framework bundle from .a library in Xcode
####
# Build a .framework bundle from an iOS library (.a) in Xcode
# Usage: Place this inside a run script in your project's "Build phases"
# Note: Script assumes that your .h, .a and .bundle are all in the same folder
####
####
# Your Vars Start
####