Skip to content

Instantly share code, notes, and snippets.

Code of Conduct

All attendees, speakers, sponsors and volunteers at our meetup/conference are required to agree with the following code of conduct. Organisers will enforce this code throughout the event. We expect cooperation from all participants to help ensure a safe environment for everybody.

TL;DR: Be excellent with each other (a.k.a. "Don’t be a Jerk")

The Quick Version

Our meetup/conference is dedicated to providing a harassment-free experience for everyone, regardless of gender, gender identity and expression, age, sexual orientation, disability, physical appearance, body size, race, ethnicity, religion (or lack thereof), or technology choices.

I wanted to play a bit with Reason but I ran into some issues while installing the reason-cli on my MacOs as described in the global installation page.

My setup: MacOs 10.13.2, npm 5.6 and node 9.2.0.

The error

The error I got running npm install -g https://github.com/reasonml/reason-cli/archive/3.0.4-bin-darwin.tar.gz was:

Keybase proof

I hereby claim:

  • I am cirpo on github.
  • I am cirpo (https://keybase.io/cirpo) on keybase.
  • I have a public key whose fingerprint is 050E 32C0 8F17 D452 14B6 4D28 452A 9A9D 555D A87E

To claim this, I am signing this object:

# Bash Scripting - Quoting
Chiunque abbia usato seriamente la Bash si è scontrato almeno una volta (e probabilmente più di una) con problemi legati al quoting.
Uno dei problemi più comuni è la difficoltà nello script che non riescono a gestire casi in teoria semplici come i file con uno spazio nel nome. Quasi come se fosse impossibile gestire dei file con nomi di quel tipo.
In realtà, anche se quasi nessuno sa come, con la Shell è possibile gestire file con nomi contenenti praticamente qualsiasi cosa. Per come è fatta Bash è possibile lavorare con qualsiasi nome di file che il kernel sia in grado di gestire. Quindi, ammesso di conoscere bene le regole del quoting, si può lavorare con problemi sia con i file con nomi contenenti spazi, sia pure con file con nomi contententi le più strane sequenze unicode (dagli emoji della birra a pure alle sequenze unicode non ancora definite nello standard).
Il quoting della shell, se usato correttamente, permette di gestire qualsiasi nome di file. Molti trovano difficolt
@cirpo
cirpo / david
Created February 9, 2016 12:55
- troppi pali
-
@cirpo
cirpo / docker.md
Last active August 29, 2015 14:23 — forked from davidino/docker.md

In that way you can expose the docker service outside from the Virtual machine.

# /lib/systemd/system/docker.service
ExecStart=/usr/bin/docker -d -H tcp://0.0.0.0:2375 -H fd://

then

systemctl daemon-reload && sudo service docker restart
#!/bin/bash
# Setup and start BrowserStack Tunnel for your TravisCI build
#
# This script was adopted from Santiago Suarez Ordoñez's Sauce Connect
# setup script: https://gist.github.com/santiycr/5139565/
#
# This script requires your .travis.yml to include the following private
# env variable:
#
<?php
$app = new Silex\Application();
$app = (new Stack\Builder())
->push('Dflydev\Stack\BasicAuthentication', [
'firewall' => [
['path' => '/', 'anonymous' => true],
['path' => '/login'],
],
@cirpo
cirpo / javascript_resources.md
Created January 19, 2014 20:07 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage