Skip to content

Instantly share code, notes, and snippets.

Avatar

Isaac Castillo icemancast

View GitHub Profile
View howto-install-react-native-maps.md

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 Sep 15, 2017 — forked from knynkwl/letsencrypt.md
Installing Let's Encrypt with Cerbot on DigitalOcean & ServerPilot
View letsencrypt.md

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 Jun 20, 2017 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks
View docker-cleanup-resources.md

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 Jun 8, 2020 — forked from woogist/gist:1128a0803928edc4bd0f
WooCommerce: change "add to cart" button text by product type
View gist:d94c2fcfe5ccf073330aab4a7d55765b
<?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 Mar 4, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// 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 Oct 24, 2016 — forked from sapessi/access-policy.json
Policy for serverless bbq lab
View access-policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1476979875000",
"Effect": "Allow",
"Action": [
"dynamodb:GetItem",
"dynamodb:Query",
"dynamodb:Scan",
@icemancast
icemancast / joins.md
Created May 11, 2016 — forked from zgulde/joins.md
extra join exercises
View joins.md

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 — forked from inooid/.bash-profile
[Terminal] Docker-machine env shortcut
View .bash-profile
# 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"
}
View games.html
<!DOCTYPE html>
<html>
<head>
<title>Javascript</title>
</head>
<body>
<script>
// (function() {
View exercise.html
<!DOCTYPE html>
<html>
<head>
<title>Javascript</title>
</head>
<body>
<script>
(function() {
You can’t perform that action at this time.