Skip to content

Instantly share code, notes, and snippets.

@eneagoe
eneagoe / gist:7890670
Created December 10, 2013 13:36
benchmark number reverse
require 'benchmark'
n, exec_time = 123456789123456789123456789123456789123456789, 0
100000.times do
exec_time += Benchmark.measure do
r = 0
r, n = (r*10 + n % 10), n / 10 while n != 0
r
end.real
@eneagoe
eneagoe / config.log
Created June 8, 2012 08:56
brew mc install config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/midnight-commander/HEAD --without-x --with-screen=slang
## --------- ##
## Platform. ##
@eneagoe
eneagoe / gist:2630041
Created May 7, 2012 20:04
mc --configure-options
'--disable-debug' '--disable-dependency-tracking' '--prefix=/usr/local/Cellar/midnight-commander/4.8.3' '--without-x' '--with-screen=slang' '--disable-vfs-fish' 'CC=/usr/bin/clang' 'CFLAGS=-Os -w -pipe -march=native -Qunused-arguments' 'LDFLAGS=-L/usr/local/Cellar/libffi/3.0.11/lib -L/usr/local/Cellar/gettext/0.18.1.1/lib' 'CPPFLAGS=-I/usr/local/Cellar/libffi/3.0.11/include -I/usr/local/Cellar/gettext/0.18.1.1/include' 'PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.11/lib/pkgconfig'
@eneagoe
eneagoe / gist:2630038
Created May 7, 2012 20:03
LC_MESSAGES=C mc -F
LC_MESSAGES=C mc -F
Root directory: /Users/eneagoe
[System data]
Config directory: /usr/local/Cellar/midnight-commander/4.8.3/etc/mc/
Data directory: /usr/local/Cellar/midnight-commander/4.8.3/share/mc/
VFS plugins and scripts: /usr/local/Cellar/midnight-commander/4.8.3/libexec/mc/
extfs.d: /usr/local/Cellar/midnight-commander/4.8.3/libexec/mc/extfs.d/
[User data]
@eneagoe
eneagoe / gist:2630028
Created May 7, 2012 20:02
LC_MESSAGES=C mc -V
LC_MESSAGES=C mc -V
GNU Midnight Commander 4.8.3
Built with GLib 2.32.1
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With internationalization support
With multiple codepages support
@eneagoe
eneagoe / with_make_autoreconf.err
Created May 7, 2012 17:52
brew install -v mc 2>&1 > with_make_autoreconf.txt
brew install -v mc 2>&1 > with_make_autoreconf.txt
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: adding subdirectory src/vfs/smbfs/helpers to autoreconf
autoreconf: Entering directory `src/vfs/smbfs/helpers'
autoreconf: configure.ac: not using Gettext
autoreconf: configure.ac: not using aclocal
autoreconf: configure.ac: not using Libtool
@eneagoe
eneagoe / with_make_j1.err
Created May 7, 2012 17:49
brew install -v mc 2>&1 > with_make_j1.txt
brew install -v mc 2>&1 > with_make_j1.txt
configure: WARNING: doxygen not found - will not generate any doxygen documentation
configure: WARNING: 'Check' utility not found. Check your environment
config.status: WARNING: 'intl/Makefile.in' seems to ignore the --datarootdir setting
config.status: WARNING: 'po/Makefile.in.in' seems to ignore the --datarootdir setting
/usr/bin/ranlib: file: .libs/libmctty.a(libmctty_la-x11conn.o) has no symbols
ranlib: file: .libs/libmctty.a(libmctty_la-x11conn.o) has no symbols
/usr/bin/ranlib: file: .libs/libmc.a(libmc_la-glibcompat.o) has no symbols
/usr/bin/ranlib: file: .libs/libmc.a(libmctty_la-x11conn.o) has no symbols
ranlib: file: .libs/libmc.a(libmc_la-glibcompat.o) has no symbols
@eneagoe
eneagoe / with_make.err
Created May 7, 2012 17:46
brew install -v mc 2>&1 > with_make.txt
brew install -v mc 2>&1 > with_make.txt
configure: WARNING: doxygen not found - will not generate any doxygen documentation
configure: WARNING: 'Check' utility not found. Check your environment
config.status: WARNING: 'intl/Makefile.in' seems to ignore the --datarootdir setting
config.status: WARNING: 'po/Makefile.in.in' seems to ignore the --datarootdir setting
/usr/bin/ranlib: file: .libs/libmctty.a(libmctty_la-x11conn.o) has no symbols
ranlib: file: .libs/libmctty.a(libmctty_la-x11conn.o) has no symbols
/usr/bin/ranlib: file: .libs/libmc.a(libmc_la-glibcompat.o) has no symbols
/usr/bin/ranlib: file: .libs/libmc.a(libmctty_la-x11conn.o) has no symbols
ranlib: file: .libs/libmc.a(libmc_la-glibcompat.o) has no symbols