Skip to content

Instantly share code, notes, and snippets.

View EliasJorgensen's full-sized avatar

Elias Jørgensen EliasJorgensen

View GitHub Profile
@EliasJorgensen
EliasJorgensen / slackInviteAll.js
Last active December 26, 2018 11:24
Slack invite all script
// source: https://webapps.stackexchange.com/a/104172
//////////////////////////////
// AFTER.JS Module
//////////////////////////////
var After = function () {
this._totalTime = 0;
};
@EliasJorgensen
EliasJorgensen / Send_data_from_docker_to_local_machine.md
Last active December 26, 2020 00:35
Send data from docker container to local machine

Send data from Docker container to local machine

In some cases you may need to send data from your Docker containers to your local machine. This could be for sending data to a local webserver or something else entirely, but as it isn’t something that Docker directly supports, we need a bit of a workaraound to achieve it. Luckily, this is why this gist exists. No need to scour the web for hours and contemplate your existance in search for a solution, i’ve already done that part for you!

So there are two ways of achieving this, depending on if you’re running Ubuntu or macOS, as Docker runs inside of a VM on macOS.

  • On Ubuntu:
  • Add the following alias to your .bashrc (or whatever shell you’re using):
@EliasJorgensen
EliasJorgensen / centerComponent.js
Last active January 30, 2017 19:22
React <Center> Component
import React from 'react'
// Bootstrap centering solution from https://stackoverflow.com/questions/18153234/center-a-column-using-twitter-bootstrap-3
const Center = (props) => ({
<div className='row'>
<div className='col-md-2 col-md-offset-5'>
{props.children}
</div>
</div>
})

Keybase proof

I hereby claim:

  • I am EliasJorgensen on github.
  • I am eliasjorgensen (https://keybase.io/eliasjorgensen) on keybase.
  • I have a public key whose fingerprint is 1CE8 CBB4 4C48 1701 B7FB 0526 CF57 BF93 EE14 401A

To claim this, I am signing this object: