Skip to content

Instantly share code, notes, and snippets.

@juniorz
juniorz / Dockerfile
Last active December 30, 2015 18:18
Ruby IRB 2.0
# -------------------------------------------------------------------
# $ docker build -t garage-env/irb20 git://gist.github.com/7866196.git
# -------------------------------------------------------------------
# $ docker run -i -v `pwd`:/garage -t garage-env/irb20
# -------------------------------------------------------------------
FROM garage-env/ruby20-base
MAINTAINER Reinaldo Junior <[email protected]>
@juniorz
juniorz / Dockerfile
Last active December 30, 2015 19:09
Erlang
FROM garage/base
MAINTAINER Reinaldo Junior <[email protected]>
RUN apt-get update && apt-get upgrade -y
## Installs Erlang from Erlang Solutions
RUN /var/garage/install curl &&\
curl -q http://packages.erlang-solutions.com/debian/erlang_solutions.asc | apt-key add - &&\
echo "deb http://packages.erlang-solutions.com/debian $(/var/garage/base-release) contrib" > /etc/apt/sources.list.d/erlang-solutions.list &&\
@juniorz
juniorz / README.md
Last active September 23, 2023 12:54
sysdig sample capture file

Test file generated for sysdig homebrew formula

This is how it was generated

$ mkdir -p /tmp/sysdig && cd /tmp/sysdig
$ sudo sysdig -w sample.scap evt.type=open and fd.name contains /tmp/sysdig

The test performed should be

$ sudo sysdig -r sample.scap evt.type=open fd.name contains /tmp/sysdig/sample.scap

@juniorz
juniorz / results.txt
Last active August 29, 2015 14:00
Stringify hash keys
% ruby -v
ruby 1.8.6 (2010-09-02 patchlevel 420) [i686-darwin13.1.0]
% ruby ./stringify_keys.rb
Rehearsal ------------------------------------------------
slow random: 1.750000 0.000000 1.750000 ( 1.763713)
slow worst: 2.730000 0.040000 2.770000 ( 2.768919)
fast random: 1.350000 0.000000 1.350000 ( 1.355698)
fast worst: 2.520000 0.010000 2.530000 ( 2.525618)
--------------------------------------- total: 8.400000sec

Keybase proof

I hereby claim:

  • I am juniorz on github.
  • I am kingnaldo (https://keybase.io/kingnaldo) on keybase.
  • I have a public key whose fingerprint is 9A86 612D A8F1 B09F CA17 3B07 0854 23D8 A9D5 A4A8

To claim this, I am signing this object:

@juniorz
juniorz / bash-fu.md
Last active August 29, 2015 14:14
Some Bash-Fu

How to

  1. comment out lines from a file

    sed -Ei 's/^(bind-address|log)/#&/' /etc/mysql/my.cnf

  2. next trick

# *** Documentation Links
Documentation list: https://communities.intel.com/community/makers/edison/documentation/content
Edison Guide: https://communities.intel.com/docs/DOC-23158
Mini Breakout Guide: https://communities.intel.com/docs/DOC-23252
Mini Breakout Schematic: https://communities.intel.com/docs/DOC-23323
Mini Breakout BoM: https://communities.intel.com/docs/DOC-23322
Arduino Breakout Guide: https://communities.intel.com/docs/DOC-23161
Arduino Breakout Schematic: https://communities.intel.com/docs/DOC-23309
Arduino Breakout BoM: https://communities.intel.com/docs/DOC-23308
BSP Guide (yocto build environment): https://communities.intel.com/docs/DOC-23159
@juniorz
juniorz / notes.md
Last active August 29, 2015 14:18
Notes on learning golang