Skip to content

Instantly share code, notes, and snippets.

never stop.

Matheus Pratta MatheusMK3

never stop.
Block or report user

Report or block MatheusMK3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ianstormtaylor / .bashrc
Created Aug 28, 2019
Aliases for nicer branching output from Git.
View .bashrc
alias gb="git branch --sort=-committerdate --verbose --format='%(HEAD) %(color:red)%(objectname:short)%(color:reset) - %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) - %(color:green)(%(committerdate:relative))%(color:reset) %(color:blue)<%(authorname)>%(color:reset)'"
alias gba="gb -a"
View color-log.js
function logColor(color, args) {
console.log(`%c ${args.join(' ')}`, `color: ${color}`);
const log = {
aliceblue: (...args) => { logColor('aliceblue', args)},
antiquewhite: (...args) => { logColor('antiquewhite', args)},
aqua: (...args) => { logColor('aqua', args)},
aquamarine: (...args) => { logColor('aquamarine', args)},
azure: (...args) => { logColor('azure', args)},
rob-smallshire /
Last active Jan 10, 2020
Notes on getting macOS Sierra running in Virtualbox on a Windows 10 host

On Mac

Download, but don't run, the Sierra installer from the Mac App Store. This places the installer at /Applications/Install\ macOS\

Now run the following commands to build a suitable VM image from the installer:

git clone
cd osx-vm-templates/packer
sudo ../prepare_iso/ -D DISABLE_REMOTE_MANAGEMENT -o macOS_10.12.vdi /Applications/Install\ macOS\ .
mikoim /
Last active Jan 16, 2020
YouTube recommended encoding settings on ffmpeg (+ libx264)
ffmpeg -i input -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low output
novaugust / Adding Disqus to a ghost blog on casper ~ 1.0
Last active Jan 6, 2019
Adding Disqus to a Ghost Blog running a Casper-based theme without editing any files
View Adding Disqus to a ghost blog on casper ~ 1.0
I noticed that there weren't any writeups for using code injection to add Disqus comments to a ghost blog. Everything assumes you're comfortable with editing your theme (and thus being responsible for maintaining a fork, urk).
So, I used the steps below to add to Disqus comments to my blog running a [Casper fork]( If your theme varies wildly from Casper, you'll be able to get by just by updating the css selectors in the javascript. If all that is a bit much for you, leave a comment and a link to your site and I'll give you what your versino of the code would be.
## Code Injection to the rescue
So! Here's the scoop
1. **Set up your disqus**. You're a grownup, you'll figure it out.
2. Go to your blog admin's **`Code Injection`** section (
Lewiscowles1986 /
Last active Dec 12, 2019
Raspberry Pi 3 access-point-setup
# This version uses September 2017 august stretch image, please use this image
if [ "$EUID" -ne 0 ]
then echo "Must be root"
deathlyfrantic / dom-insert-after.php
Last active Nov 1, 2018
why doesn't the DOM spec include an insertAfter method, srsly guys
View dom-insert-after.php
/** Inserts a new node after a given reference node. Basically it is the complement to the DOM specification's
* insertBefore() function.
* @param \DOMNode $newNode The node to be inserted.
* @param \DOMNode $referenceNode The reference node after which the new node should be inserted.
* @return \DOMNode The node that was inserted.
function insertAfter(\DOMNode $newNode, \DOMNode $referenceNode)
if($referenceNode->nextSibling === null) {
View colour_themes.conf
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocksConfig version="1">
<![CDATA[modnokai night shift v2]]>
diegoprates / gist:5047663
Last active Nov 28, 2019
Tradução do jQuery validation plugin para pt-BR.
View gist:5047663
* Translated default messages for the jQuery validation plugin.
* Locale: PT_BR
jQuery.extend(jQuery.validator.messages, {
required: "Este campo &eacute; requerido.",
remote: "Por favor, corrija este campo.",
email: "Por favor, forne&ccedil;a um endere&ccedil;o eletr&ocirc;nico v&aacute;lido.",
url: "Por favor, forne&ccedil;a uma URL v&aacute;lida.",
date: "Por favor, forne&ccedil;a uma data v&aacute;lida.",
You can’t perform that action at this time.