Skip to content

Instantly share code, notes, and snippets.

View pentikos's full-sized avatar

Don Pinkster pentikos

  • Sqills
  • Netherlands
View GitHub Profile
@pentikos
pentikos / main.go
Last active November 1, 2019 00:56
package main
import (
"errors"
"fmt"
"io/ioutil"
"log"
"net"
"os"
"os/exec"

Keybase proof

I hereby claim:

  • I am donpinkster on github.
  • I am donpinkster (https://keybase.io/donpinkster) on keybase.
  • I have a public key whose fingerprint is 9308 27EF 77FA C582 58DE A1F4 E660 1E6E 1DCE 54DE

To claim this, I am signing this object:

@pentikos
pentikos / keybase.md
Created November 3, 2015 14:05
keybase.md

Keybase proof

I hereby claim:

  • I am donpinkster on github.
  • I am donpinkster (https://keybase.io/donpinkster) on keybase.
  • I have a public key whose fingerprint is 5B1B 0EEB 64A8 FA68 803D 6513 BD6F B4D6 3464 74FC

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am donpinkster on github.
  • I am donpinkster (https://keybase.io/donpinkster) on keybase.
  • I have a public key whose fingerprint is 769B F696 B7A4 95A5 E690 D62D FD12 5200 957F A30F

To claim this, I am signing this object:

require 'optparse'
require 'find'
OPTIONS = {}
parser = OptionParser.new do |opts|
opts.banner = "Usage: unpack.rb <options>"
opts.on("-s [DIR]", "--source", "What directory should be scanned") { |dir| OPTIONS[:source] = dir }
opts.on("-d [DIR]", "--destination", "Where the extracted files should go") { |dir| OPTIONS[:destination] = dir }
end
[1] pry(main)> Administration.where(id: User.all)
Administration Load (1.8ms) SELECT "administrations".* FROM "administrations" WHERE "administrations"."id" IN (SELECT "users"."id" FROM "users")
IO.inspect "Hello from Elixir"
My great log
My great log
My great log