Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| // 1. Go to page https://www.linkedin.com/settings/email-frequency | |
| // 2. You may need to login | |
| // 3. Open JS console | |
| // ([How to?](http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers)) | |
| // 4. Copy the following code in and execute | |
| // 5. No more emails | |
| // | |
| // Bookmarklet version: | |
| // http://chengyin.github.io/linkedin-unsubscribed/ |
Press minus + shift + s and return to chop/fold long lines!
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| #!/usr/bin/env perl | |
| use feature 'switch'; | |
| use strict; | |
| use warnings; | |
| use Data::Dumper; | |
| use File::Basename; | |
| use File::Copy; | |
| use File::Path qw/make_path/; |
docker.sh: a small interactive shell hack for docker
Usage: ./docker.sh [base-image-name]
| def namedlist(typename, field_names): | |
| """Returns a new subclass of list with named fields. | |
| >>> Point = namedlist('Point', ('x', 'y')) | |
| >>> Point.__doc__ # docstring for the new class | |
| 'Point(x, y)' | |
| >>> p = Point(11, y=22) # instantiate with positional args or keywords | |
| >>> p[0] + p[1] # indexable like a plain list | |
| 33 | |
| >>> x, y = p # unpack like a regular list |
Prerequisites:
Software components used:
| #!/bin/bash | |
| # Description: Using Docker (requires docker to be installed http://www.docker.io/gettingstarted/ ), spawn a postgresql instance and a dynamically configured treeio instance | |
| # Also requires postgresql client tools http://www.postgresql.org/download/linux/ubuntu/ | |
| # Run chmod +x to make this file executable then run it: ./docker_create_treeio.sh | |
| # Author: Adam Awan | |
| # Email: adam@tree.io | |
| # Set the port to forward for Tree.io | |
| TREEIO_PORT="80" |