Skip to content

Instantly share code, notes, and snippets.

@javdl
javdl / designer.html
Last active August 29, 2015 14:19
designer
<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">
@javdl
javdl / nginx.conf
Last active August 29, 2015 14:20 — forked from plentz/nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
#!/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
# 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
@javdl
javdl / README.md
Created October 2, 2015 09:23 — forked from oodavid/README.md
Deploy your site with git

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/
@javdl
javdl / Zsh & theme
Created June 23, 2016 07:39 — forked from leemour/Zsh & theme
Zsh installation and Agnoster theme settings
# 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
@javdl
javdl / Origin to Upstream
Last active December 6, 2017 20:56 — forked from javigomez/Origin to Upstream
Git command to rename the origin to upstream when you just forked a project
git remote rename origin upstream
git remote add origin git@github.com:user/fork.git
git push origin master

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:

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