Skip to content

Instantly share code, notes, and snippets.

Jonathan Prass Martins jonathanpmartins

Block or report user

Report or block jonathanpmartins

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
jonathanpmartins / encrypt-chrome-notification-payload.js
Created Apr 26, 2016
Simple Node server to encrypt Chrome 50 Payloads
View encrypt-chrome-notification-payload.js
var http = require('http');
var encrypt = require('./encrypt');
function processPost(request, response, callback) {
var queryData = "";
if(typeof callback !== 'function') return null;
if(request.method == 'POST') {
request.on('data', function(data) {
queryData += data;
jonathanpmartins /
Last active Jul 28, 2019
Install Libsodium on Ubuntu 14.04.3 LTS Trusty
sudo add-apt-repository ppa:chris-lea/libsodium;
sudo echo "deb trusty main" >> /etc/apt/sources.list;
sudo echo "deb-src trusty main" >> /etc/apt/sources.list;
sudo apt-get update && sudo apt-get install libsodium-dev;
jonathanpmartins /
Last active Sep 14, 2017 — forked from sarciszewski/
Install libsodium-1.0.2 and PECL libsodium on Ubuntu 14.04
#!/usr/bin/env bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
View supervidor-sample-config.conf
; Sample supervisor config file.
; For more information on the config file, please see:
; Notes:
; - Shell expansion ("~" or "$HOME") is not supported. Environment
; variables can be expanded using this syntax: "%(ENV_HOME)s".
; - Comments must have a leading space: "a=b ;comment" not "a=b;comment".
View ClearBeanstalkdQueueCommand.php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
class ClearBeanstalkdQueueCommand extends Command {
You can’t perform that action at this time.