Skip to content

Instantly share code, notes, and snippets.

View gomisc's full-sized avatar

Alex gomisc

View GitHub Profile
@gomisc
gomisc / words
Last active May 30, 2022 17:35
/usr/share/dict/words
This file has been truncated, but you can view the full file.
A
AA
AAA
AAM
AA's
AB
ABA
ABC
ABC's
ABCs
@gomisc
gomisc / # radare2 - 2019-05-18_12-24-02.txt
Created May 18, 2019 09:31
radare2 on macOS 10.13.6 - Homebrew build logs
Homebrew build logs for radare2 on macOS 10.13.6
Build date: 2019-05-18 12:24:02
@gomisc
gomisc / subprocess.go
Created December 21, 2018 11:12
Simple example for run subprocess from golang
// ExecuteCommand - execute cmd *exec.Cmd with async output from command stderr, stdout
// and return combine output as some byte-buffer object
// 1st, 2nd writers - always stdout, stderr
func ExecuteCommand(cmd *exec.Cmd, writers ...io.Writer) (buff *Buffer, err error) {
var wg sync.WaitGroup
var outputWriter, errorWriter io.Writer
buff = NewBuffer()
// Stdout redirect
@gomisc
gomisc / libdill.rb
Last active February 19, 2018 03:41
libdill HomeBrew formula with optional tls
class Libdill < Formula
desc "Structured concurrency in C"
homepage "http://libdill.org/"
url "https://github.com/sustrik/libdill/archive/2.4.tar.gz"
sha256 "ebef0b53db2312702beb11b2493cbbfb320859a60a44d0bb6aab0132ea83ba73"
bottle do
cellar :any
sha256 "b573af4d120876e43cb3d9e822487658bca0bbcbaec2b4b7061e8e4f7b74068e" => :high_sierra
sha256 "c289a65ded1c77bfa31f624dc6a06de059a8fcda4fc7b2bca9401794bdbf0fa8" => :sierra
@gomisc
gomisc / cli.py
Last active September 27, 2017 19:41
Python CLI interface
#!/usr/bin/env python3
import os, sys, argparse, traceback
class cli(object):
""""""
def __init__(self, prog, version, args=None):
self.prog = prog
self.version = version