Skip to content

Instantly share code, notes, and snippets.

View ceccode's full-sized avatar
🏠
Working from home

Francesco Falanga ceccode

🏠
Working from home
View GitHub Profile
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Contracts\Routing\Middleware;
use Illuminate\Contracts\Foundation\Application;
class ReplaceTestVars implements Middleware
{
@ceccode
ceccode / performRequest.js
Last active July 26, 2016 15:26
Simple module that wrap nodejs http.request api.
"use strict";
const http = require('http');
const util = require('util');
const querystring = require('querystring');
function addQueryString(data) {
return (data !== "") ? querystring.stringify(data) : '';
}
@ceccode
ceccode / iterm2-solarized.md
Created August 17, 2016 12:25 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font (OS X / macOS)

Solarized

@ceccode
ceccode / deploy_awsS3.sh
Created January 24, 2017 15:43
Bash script for deploy dist folder in production branch and on AWS S3 (optional)
#!/usr/bin/env sh
# Use AWS cli
# Thanks to https://zellwk.com/blog/deploy-static-site/
DIST_FOLDER="dist"
AWS_CLI_PROFILE="your-profile-name"
AWS_BUCKET="your bucket name/"
PRODUCTION_BRANCH_NAME="your-production-branch"
@ceccode
ceccode / README-Template.md
Created July 18, 2017 14:45 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

exists=`git show-ref refs/heads/<branch-name>`
if [ -n "$exists" ]; then
echo 'branch exists!'
fi
@ceccode
ceccode / # opencv - 2017-11-07_14-50-59.txt
Created November 7, 2017 14:17
opencv on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for opencv on macOS 10.12.6
Build date: 2017-11-07 14:50:59
@ceccode
ceccode / web3-solc-contract-compile-deploy.js
Last active November 26, 2017 17:40 — forked from tomconte/web3-solc-contract-compile-deploy.js
Compiling and deploying an Ethereum Smart Contract, using solc and web3.
const fs = require('fs');
const solc = require('solc');
const Web3 = require('web3');
// Connect to local Ethereum node
const web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
// Compile the source code
const input = fs.readFileSync('Token.sol');
const output = solc.compile(input.toString(), 1);

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@ceccode
ceccode / HyperLedger Fabric cheat sheet.md
Last active April 21, 2019 16:43
HyperLedger Fabric cheat sheet

HyperLedger Fabric cheat sheet

Install

mkdir ~/fabric-dev-servers && cd ~/fabric-dev-servers
curl -O https://raw.githubusercontent.com/hyperledger/composer-tools/master/packages/fabric-dev-servers/fabric-dev-servers.tar.gz
tar -xvf fabric-dev-servers.tar.gz