Skip to content

Instantly share code, notes, and snippets.


Jesper Rønn-Jensen jesperronn

View GitHub Profile
jesperronn /
Last active May 4, 2021
Git generel opsætning/config som gør din hverdag lettere
# Fra Nine Speed Session Git Kommandolinje presentation 2021-05-04
# Flere af disse kan findes i mine dotfiles
# benyt git push -u for at oprette branches
git config --global push.default current
View Jenkinsfile
// example Jenkinsfile with the following features
// * parallel build
// * Slack notifications
// * Clickable links to relevant commits and healthcheck urls
// * Multisite deployments
def git_host = ""
def host = [
integration: [
jesperronn /
Created Dec 11, 2017 — forked from rxin/
ramdisk create/delete on Mac OS X.
# From
if [ $# -ne $ARGS ] # correct number of arguments to the script;
jesperronn /
Created Feb 19, 2017
reformat json: read filename and write it again in the same name
# reformat json: read filename and write it again in the same name
# read JSON file and save it again reformatted
# usage:
# `reformat my.json`
node -e "
var fs = require('fs')
sudo touch $FILE
sudo chown root:root $FILE
echo "
name=nginx repo
jesperronn / Gemfile
Created Apr 29, 2016
SuckerPunch for Rails (Rails 4.2). These are the only changes I needed to get started
View Gemfile
# add this line to your `Gemfile`:
gem 'sucker_punch'
jesperronn / Howto convert a PFX to a seperate .key & .crt file How to convert a .pfx SSL certificate to .crt/key (pem) formats. Useful for NGINX
View Howto convert a PFX to a seperate .key & .crt file
`openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]`
What this command does is extract the private key from the .pfx file. Once entered you need to type in the importpassword of the .pfx file. This is the password that you used to protect your keypair when you created your .pfx file. If you cannot remember it anymore you can just throw your .pfx file away, cause you won’t be able to import it again, anywhere!. Once you entered the import password OpenSSL requests you to type in another password, twice!. This new password will protect your .key file.
Now let’s extract the certificate:
`openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]`
View npm-shrinkwrap.json
"name": "angular2-webpack-starter",
"version": "3.0.0",
"dependencies": {
"abbrev": {
"version": "1.0.7",
"from": "abbrev@>=1.0.0 <1.1.0",
"resolved": ""
"accepts": {
jesperronn /
Last active Feb 3, 2016 — forked from cpuguy83/
Simple loading spinner for long requests with turbolinks and bootstrap modal. This fork: HTML for Bootstrap 3.3.x
@PageSpinner =
spin: (ms=500)->
@spinner = setTimeout( (=> @add_spinner()), ms)
$(document).on 'page:change', =>
spinner_html: '
<div class="modal hide fade" id="page-spinner" role="dialog">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
jesperronn / Capfile
Created Jan 26, 2016 — forked from troelskn/Capfile
Sample cap setup
View Capfile
# Load DSL and set up stages
require 'capistrano/setup'
# Include default deployment tasks
require 'capistrano/deploy'
# Include tasks from other gems included in your Gemfile
# For documentation on these, see for example: