Skip to content

Instantly share code, notes, and snippets.

@GochoMugo
GochoMugo / Makefile
Last active August 29, 2015 14:03
A Makefile to install the latest Addon SDK from Mozilla.org
.PHONY: download_cfx, find_cfx, install_cfx, clean
init:
make install_cfx
download_cfx:
@wget -q -O cfx.zip https://ftp.mozilla.org/pub/mozilla.org/labs/jetpack/jetpack-sdk-latest.zip
@mkdir temp cfx
@unzip -q cfx.zip -d temp
@cp -r temp/*/. cfx
@GochoMugo
GochoMugo / Sticky-Navbar.markdown
Created July 7, 2014 06:19
A Pen by GOCHO MUGO I..

Compiling v8 and Hello, World Example on Mac OSX Mavericks (10.9.4)

by Keith Rosenberg (netpoetica)

Note: do this in some sort of project/ directory that makes sense. depot_tools are going to need to be in your path, so you may want to install them somewhere you are comfortable with.

1) Get the v8 source

git clone https://github.com/v8/v8.git

2) Install depot tools

import smtplib, os
from email import Encoders
from email.Utils import COMMASPACE, formatdate
from email.MIMEText import MIMEText
from email.MIMEBase import MIMEBase
from email.MIMEMultipart import MIMEMultipart
import argparse
import sys
#INFO
@GochoMugo
GochoMugo / README.md
Created August 12, 2014 16:15
Installing Intel XDK on Debian Wheezy (64-bit)

XDK Installation on Debian Wheezy (64-bit)

After installing the XDK, you may realize that it will NOT start. This is due to libc issues with the Node-webkit version installed along with the XDK. To solve this issue, we need to install a compatible version (easy way) or build the lastest node-webkit on our machine.

I only know of the easy way :-). So here it is.

Easy Way

  1. Install the XDK, if you have NOT. Take note of where it is installed. Most probably it will be:
@GochoMugo
GochoMugo / Readme.md
Last active January 18, 2016 11:41
Mackup configuration file for Remindme

Once you have created a remindme.cfg with the contents as shown in the file, place it in ~/.mackup.

Now, trigger a backup:

$ mackup backup
$ msu install-many mods.txt # assuming the file 'mods.txt' list some modules
$ msu upgrade # this upgrades 'msu' to latest release
$ msu nuke # this removes msu from this machine
@GochoMugo
GochoMugo / keybase.md
Last active June 6, 2016 16:47
keybase.md

Keybase proof

I hereby claim:

  • I am GochoMugo on github.
  • I am mugo (https://keybase.io/mugo) on keybase.
  • I have a public key whose fingerprint is C11B 1DE3 B886 975F 3E1D 5524 7B6A 01CB 57AA 39E4

To claim this, I am signing this object:

@GochoMugo
GochoMugo / prism-markdown.js
Last active April 19, 2019 00:11
Prism-Markdown
/*
* This piece of code uses jQuery
*
* I'm also using Showdown to convert my markdown to html.
* You can get a copy from
* http://softwaremaniacs.org/playground/showdown-highlight/showdown.js
*
* I'm also using Prism.js from http://prismjs.com/
* to syntax-highlight my code.
*