Skip to content

Instantly share code, notes, and snippets.

View hugomd's full-sized avatar
:bowtie:

Hugo hugomd

:bowtie:
View GitHub Profile
# works on my machine... OS X 10.8.2, Python v2.7.3
import sys
import subprocess
wordlist = 'words.txt'
if len(sys.argv) > 1:
wordlist = sys.argv[1]
@hugomd
hugomd / google-comments.html
Created September 25, 2013 07:01
Use Google+ comments.
<script src="https://apis.google.com/js/plusone.js">
</script>
<div class="g-comments"
data-href="[URL]"
data-width="642"
data-first_party_property="BLOGGER"
data-view_type="FILTERED_POSTMOD">
</div>
{
"1":{
"name":"Bulbasaur",
"attack":49,
"defense":49,
"evolveLevel":16,
"evolveTo":"2",
"type":"grass",
"moves":[
"tackle",

Keybase proof

I hereby claim:

  • I am hugomd on github.
  • I am hugomd (https://keybase.io/hugomd) on keybase.
  • I have a public key whose fingerprint is 65C5 C64D BD7C B6F2 099B 523E 6A5F DA0B 0019 0B26

To claim this, I am signing this object:

@hugomd
hugomd / stylish.css
Created September 17, 2016 08:55 — forked from luke3butler/stylish.css
GitHub Fixed Header for better accessibility.
/**
1. Install the Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en) extension for Chrome.
2. Open up extension options and paste the whole CSS mentioned below.
3. Specify the domain name to be `github.com`.
4. Add a title and save.
*/
@media (min-height: 850px) {
.header {
padding-top: 10px;

From zero to microservice with 𝚫 now

The following guide will show you how to deploy a simple microservice written in JavaScript using 𝚫 now.

It uses Open Source tools that are widely available, tested and understood:

  • Node.JS
  • NPM
  • Express
@hugomd
hugomd / remove_brew-mongo_osx.sh
Created December 6, 2016 04:11 — forked from katychuang/remove_brew-mongo_osx.sh
remove mongodb that was installed via brew
#!/usr/bin/env sh
# checks to see if running
launchctl list | grep mongo
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
launchctl remove homebrew.mxcl.mongodb
pkill -f mongod
@hugomd
hugomd / keyrepeat.shell
Created February 13, 2017 03:42 — forked from rastasheep/keyrepeat.shell
Enable key repeat in Apple Lion for Atom in Vim mode
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
# that enables you to choose a character from a menu of options. If you are on Lion
# try it by pressing and holding down 'e' in any app that uses the default NSTextField
# for input.
#
# It's a nice feature and continues the blending of Mac OS X and iOS features. However,
# it's a nightmare to deal with in Atom if you're running vim mode,
# as it means you cannot press and hold h/j/k/l to move through your file. You have
# to repeatedly press the keys to navigate.
image: node
stages:
- review
variables:
REPO_NAME: now-review-app
start_review:
stage: review
FROM node:alpine
RUN npm install -g --silent --unsafe-perm now