Skip to content

Instantly share code, notes, and snippets.

View fernandopetry's full-sized avatar

Fernando Petry fernandopetry

View GitHub Profile
@fernandopetry
fernandopetry / install-docker-mint.sh
Last active October 17, 2017 22:50 — forked from mmcc/install-docker-mint.sh
Install Docker on Linux Mint 17
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
# Install docker
sudo apt-get update
sudo apt-get purge lxc-docker
sudo apt-get install linux-image-extra-$(uname -r)
sudo apt-get install docker-engine
sudo service docker start
@fernandopetry
fernandopetry / 0_reuse_code.js
Created October 28, 2016 12:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@fernandopetry
fernandopetry / register Post type.php
Last active August 29, 2015 14:28 — forked from xafarali/register Post type.php
Register Post Type
///////////////////////////////////
// Custom Post Type , Video
///////////////////////////////////
// Custom Post - Project
function create_banner() {
// label for post type project.
@fernandopetry
fernandopetry / addWidget.php
Last active August 29, 2015 14:28 — forked from tiffyzsmile/addWidget.php
WORDPRESS
How to add a widget area to your theme.
<div id="sidebar">
<ul>
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?>
<li><!-- stuff shown here in case no widgets active --></li>
<?php endif; ?>
</ul>
</div>