Skip to content

Instantly share code, notes, and snippets.

View wkrea's full-sized avatar

William Javier Trigos Guevara wkrea

View GitHub Profile
@wkrea
wkrea / helpful-docker-commands.sh
Created July 24, 2019 01:56 — forked from garystafford/helpful-docker-commands.sh
My list of helpful docker commands
###############################################################################
# Helpful Docker commands and code snippets
###############################################################################
### CONTAINERS ###
docker stop $(docker ps -a -q) #stop ALL containers
docker rm -f $(docker ps -a -q) # remove ALL containers
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter
# exec into container
@wkrea
wkrea / .git-commit-template
Created September 20, 2019 00:51 — forked from zakkak/.git-commit-template
This commit message template that helps you write great commit messages and enforce it across your team.
# [<tag>] (If applied, this commit will...) <subject> (Max 72 char)
# |<---- Preferably using up to 50 chars --->|<------------------->|
# Example:
# [feat] Implement automated commit messages
# (Optional) Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# (Optional) Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@wkrea
wkrea / docker_wordpress.md
Created September 25, 2019 22:22 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@wkrea
wkrea / create-topology.sh
Created October 3, 2019 18:52 — forked from krishnakummar/create-topology.sh
create graphviz block diagram from docker-compose.yml
docker run --rm -it --name dcv -v /home/user/blog:/input pmsipilot/docker-compose-viz render -m image --force docker-compose.yml --output-file=topology.png --no-volumes --no-ports --no-networks
@wkrea
wkrea / create-topology.sh
Created October 3, 2019 18:52 — forked from krishnakummar/create-topology.sh
create graphviz block diagram from docker-compose.yml
docker run --rm -it --name dcv -v /home/user/blog:/input pmsipilot/docker-compose-viz render -m image --force docker-compose.yml --output-file=topology.png --no-volumes --no-ports --no-networks
@wkrea
wkrea / GitCommitEmoji.md
Created December 9, 2019 15:48 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@wkrea
wkrea / gps_demo.py
Created December 31, 2019 19:17 — forked from wolfg1969/README.md
python-gps sample codes
import gps, os, time
session = gps.gps()
while 1:
os.system('clear')
session.query('admosy')
# a = altitude, d = date/time, m=mode,
# o=postion/fix, s=status, y=satellites
@wkrea
wkrea / Precision.cs
Created January 11, 2020 05:12 — forked from mombrea/Precision.cs
.NET Data Annotation to define precision on decimal data types in EF6
using System;
using System.Data.Entity;
using System.Linq;
namespace My.Data.Annotations
{
/// <summary>
/// The Precision class allows us to decorate our Entity Models with a Precision attribute
/// to specify decimal precision values for the database column
/// </summary>
@wkrea
wkrea / mongodb_cheat_sheet.md
Created February 27, 2020 18:14 — forked from bradtraversy/mongodb_cheat_sheet.md
MongoDB Cheat Sheet

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

Intermediate Python for Finance Training

This is the Gist for the Intermediate Python for Finance Training in London, 28.-29. November 2017.

Notebooks & Code Files

Additional files (eg Jupyter Notebooks) are found under: