Skip to content

Instantly share code, notes, and snippets.

View nuxlli's full-sized avatar
🎯
Focusing

Everton Ribeiro nuxlli

🎯
Focusing
View GitHub Profile
@kracekumar
kracekumar / lua_httpbin.lua
Created July 19, 2013 07:08
luasocket.http demostration
local http = require("socket.http")
local ltn12 = require("ltn12")
local base_url = "https://httpbin.org/"
function deep_print(tbl)
for i, v in pairs(tbl) do
if type(v) == "table" then
deep_print(v)
else
@rogerleite
rogerleite / _install.md
Last active May 19, 2023 16:57
Some scripts to install things

Introduction

Some install scripts. Target to work with Ubuntu 12 or greater.

Table of Scripts

@cromwellryan
cromwellryan / Guardfile
Last active December 19, 2015 08:19
Guardfile for elixirc
guard 'shell', :elixirc_bin => "/usr/local/elixirc" do
watch(/(.+\.ex$)/) { |m| `elixirc #{m[0]}` }
end
guard 'shell', :elixir_bin => "/usr/local/elixir" do
watch(/(.+\.exs$)/) { |m| `elixir #{m[0]}` }
end
@jpetazzo
jpetazzo / README.md
Last active August 21, 2019 17:55
Give network superpowers to docker

Unionize: network superpowers for your docker containers

Unionize lets you connect together docker containers in arbitrarily complex scenarios.

Note: I recommend to use https://github.com/jpetazzo/pipework instead.

  • pipework is a better name than unionize
  • it's hosted on a "real" github repo instead of a small gist :-)

Now if you want Unionize, it's still here. Just check those examples.

@gnarf
gnarf / ..git-pr.md
Last active May 7, 2026 13:08
git pr - Global .gitconfig aliases for Pull Request Managment

Install

Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh

Usage

Easily checkout local copies of pull requests from remotes:

  • git pr 4 - creates local branch pr/4 from the github upstream(if it exists) or origin remote and checks it out
  • git pr 4 someremote - creates local branch pr/4 from someremote remote and checks it out
@Filirom1
Filirom1 / gitmouth.go
Last active December 15, 2015 14:19
Try to write gitmouth in GO
Go to https://github.com/Filirom1/gogit
@mv
mv / aws-x509.md
Created November 30, 2012 19:25
AWS x509 SelfSigned User Certificate

X.509 self-signed key

1. Generate Private key

# create private key
openssl genrsa -des3 -out pk.encrypted.key 2048

Remove passphrase from encrypted key

@nuxlli
nuxlli / q_stoppable.js
Created November 22, 2012 17:01
Promise Q: Little trick for stop and return a value in a sequence
var Q = require('q');
var S = new (function() {
var STOPPED = function(value) {
this.value = value
};
this.return = function(value) {
throw new STOPPED(value)
}
@nuxlli
nuxlli / azure_upload_async.js
Last active August 13, 2019 10:52
Example uploaded file to azure with Q and without Q
var blob = require('azure').createBlobService()
, fs = require('fs')
, Q = require('q');
var options = { publicAccessLevel: 'blob' };
// With Q
var fsLstat = Q.nbind(fs.lstat, fs);
var getContainer = Q.nbind(blob.createContainerIfNotExists, blob);
var streamFile = Q.nbind(blob.createBlockBlobFromStream, blob);
@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: