Skip to content

Instantly share code, notes, and snippets.

View icemancast's full-sized avatar

Isaac Castillo icemancast

View GitHub Profile

Howto install react-native-maps

This document is to help all the react native developers out there actually get the AirBnb Google Maps up and running with the latest react (at time of this writing 0.55).

Please also use this as a "non-cocoapod" option to installing the Google Maps framework.

  1. Install the latest package from the repo
yarn react-native-maps
@icemancast
icemancast / letsencrypt.md
Created September 15, 2017 02:00
Installing Let's Encrypt with Cerbot on DigitalOcean & ServerPilot

Let's Encrypt

SSH as root into the server

ssh root@SERVER_IP_ADDRESS

Install Certbot

wget https://dl.eff.org/certbot-auto
@icemancast
icemancast / docker-cleanup-resources.md
Created June 20, 2017 15:40 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

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

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@icemancast
icemancast / gist:d94c2fcfe5ccf073330aab4a7d55765b
Last active June 8, 2020 23:32 — forked from woogist/gist:1128a0803928edc4bd0f
WooCommerce: change "add to cart" button text by product type
<?php
add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' );
/**
* custom_woocommerce_template_loop_add_to_cart
*/
function custom_woocommerce_product_add_to_cart_text() {
global $product;
$product_type = $product->get_type();
@icemancast
icemancast / 0_reuse_code.js
Created March 4, 2017 20:27
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
@icemancast
icemancast / access-policy.json
Created October 24, 2016 17:34 — forked from sapessi/access-policy.json
Policy for serverless bbq lab
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1476979875000",
"Effect": "Allow",
"Action": [
"dynamodb:GetItem",
"dynamodb:Query",
"dynamodb:Scan",
@icemancast
icemancast / joins.md
Created May 11, 2016 15:34 — forked from zgulde/joins.md
extra join exercises

Employees Database

  1. Using the example in the Associative Table Joins section as a guide, write a query that shows each department along with the name of the current manager for that department.

       Department Name    | Department Manager
      --------------------+--------------------
       Customer Service   | Yuchang Weedman
       Development        | Leon DasSarma
       Finance            | Isamu Legleitner
    

Human Resources | Karsten Sigstam

@icemancast
icemancast / .bash-profile
Created May 6, 2016 21:45 — forked from inooid/.bash-profile
[Terminal] Docker-machine env shortcut
# 1. Add this to your .bash-profile or .zshrc and restart your terminal
function dm-env () {
if [ -z "$1" ] ; then
echo "\e[0;31mERROR:\e[0m no argument supplied"
return;
fi
eval "$(docker-machine env $1)"
echo -e "\033[33;32mSUCCESS:\e[0m docker-machine environment set to: $1"
}
<!DOCTYPE html>
<html>
<head>
<title>Javascript</title>
</head>
<body>
<script>
// (function() {
<!DOCTYPE html>
<html>
<head>
<title>Javascript</title>
</head>
<body>
<script>
(function() {