Skip to content

Instantly share code, notes, and snippets.

Avatar

J Joostvanderlaan

View GitHub Profile
View designer.html
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
View iron-router-cheatsheet.coffee
# A little Meteor CheatSheet about Iron-Router. (updated on a weekly basis)
# Check our Studio: https://gentlenode.com/
meteor add iron:router
meteor update iron:router
# Iron Router > Configuration
@Joostvanderlaan
Joostvanderlaan / README.md
Created Oct 2, 2015 — forked from oodavid/README.md
Deploy your site with git
View README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
    • apache's home directory is /var/www/
View atom-on-ubuntu.sh
#!/bin/bash
# Atom on Ubuntu
# Tested on Ubuntu 14.04 LTS
# Add repository for Atom
sudo add-apt-repository ppa:webupd8team/atom -y
# Install Atom and Git
sudo apt-get update
View NGINX-with-Pagespeed-and-nginx-proxy-cache.md
@Joostvanderlaan
Joostvanderlaan / Zsh & theme
Created Jun 23, 2016 — forked from leemour/Zsh & theme
Zsh installation and Agnoster theme settings
View Zsh & theme
# Railscast
http://railscasts.com/episodes/308-oh-my-zsh
# Install Zsh
sudo apt-get update && sudo apt-get install zsh
# Install Oh-my-zsh
wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh
# Make ZSH default shell
@Joostvanderlaan
Joostvanderlaan / Origin to Upstream
Last active Dec 6, 2017 — forked from javigomez/Origin to Upstream
Git command to rename the origin to upstream when you just forked a project
View Origin to Upstream
git remote rename origin upstream
git remote add origin git@github.com:user/fork.git
git push origin master
View Cleanup Docker Resources.md

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

Purging All Unused or Dangling Images, Containers, Volumes, and Networks

Docker provides a single command that will clean up any resources — images, containers, volumes, and networks — that are dangling (not associated with a container):

docker system prune

To additionally remove any stopped containers and all unused images (not just dangling images), add the -a flag to the command:

@Joostvanderlaan
Joostvanderlaan / grid.js
Created Jan 22, 2018 — forked from wschenk/grid.js
create-react-app grid.js rmwc example
View grid.js
import React, {Component} from 'react'
import {
GridList,
GridTile,
GridTilePrimary,
GridTilePrimaryContent,
GridTileSecondary,
GridTileTitle } from 'rmwc'
class Grid extends Component {