Skip to content

Instantly share code, notes, and snippets.

Dylan Cali calid

Block or report user

Report or block calid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@calid
calid / groovy_completion.shellcheck.out
Last active Mar 13, 2019
apache/groovy shellcheck warnings
View groovy_completion.shellcheck.out
In grape_completion line 65:
function ArrContains() {
^-- SC1009: The mentioned parser error was in this function.
^-- SC1073: Couldn't parse this brace group.
In grape_completion line 68:
eval lArr1=("\"\${$1[@]}\"")
^-- SC1056: Expected a '}'. If you have one, try a ; or \n in front of it.
@calid
calid / squash-demo.txt
Last active Mar 16, 2016
rebase -i example
View squash-demo.txt
desktop ~/tmp/gitplay
[✓]▶ git init
Initialized empty Git repository in /Users/dylan.cali/tmp/gitplay/.git/
desktop (master #) ~/tmp/gitplay
[✓]▶ echo ohhai > foo
desktop (master #?) ~/tmp/gitplay
[✓]▶ git add foo
@calid
calid / make.out
Created Jan 9, 2016
tcc build log
View make.out
dcali-fedora (mob[release_0_9_26-611]=) ~/git/tinycc
[✔]▶ ./configure
Binary directory /usr/local/bin
TinyCC directory /usr/local/lib/tcc
Library directory /usr/local/lib64
Include directory /usr/local/include
Manual directory /usr/local/share/man
Info directory /usr/local/share/info
Doc directory /usr/local/share/doc//usr/local/lib/tcc
Target root prefix
View import index for gradle core
calid@arch ~/git/gradle
$ ./gradlew -q core:printOutputPath | /home/calid/git/vim-java-import/scripts/gen-import-index.pl -
DefaultProjectConfigurationActionContainerTest:org.gradle.configuration.project.DefaultProjectConfigurationActionContainerTest
DefaultGradleTest:org.gradle.invocation.DefaultGradleTest
DefaultTaskContainer:org.gradle.api.internal.tasks.DefaultTaskContainer
UnknownConfigurationException:org.gradle.api.artifacts.UnknownConfigurationException
DirectoryFileTree:org.gradle.api.internal.file.collections.DirectoryFileTree
PatternStepFactoryTest:org.gradle.api.internal.file.pattern.PatternStepFactoryTest
ModelConfigurationListener:org.gradle.initialization.ModelConfigurationListener
FilterChain:org.gradle.api.internal.file.copy.FilterChain
@calid
calid / rot13-shell-function
Last active Aug 29, 2015
rot13 implementations, first on the shell and then in Perl
View rot13-shell-function
calid@xen ~
[✔]▶ function rot13 { echo $1 | tr 'A-Za-z' 'N-ZA-Mn-za-m'; }
calid@xen ~
[✔]▶ rot13 'Fraq hf gur pbqr lbh hfrq gb qrpbqr guvf zrffntr'
Send us the code you used to decode this message
@calid
calid / ae_ev_explosion.out
Last active Aug 29, 2015
AnyEvent uses EV by default
View ae_ev_explosion.out
t/fd.t .......... EV: error in callback (ignoring): zmq_msg_recv: Bad address at /home/calid/git/zmq-ffi/lib/ZMQ/FFI/ErrorHelper.pm line 83.
ZMQ::FFI::ErrorHelper::fatal(ZMQ::FFI::ZMQ3::Socket=HASH(0x200ced8), "zmq_msg_recv") called at /home/calid/git/zmq-ffi/lib/ZMQ/FFI/ZMQ3/Socket.pm line 125
ZMQ::FFI::ZMQ3::Socket::recv(ZMQ::FFI::ZMQ3::Socket=HASH(0x200ced8)) called at t/fd.t line 24
main::__ANON__(EV::IO=SCALAR(0x1a7dbe8), 1) called at /home/calid/.perlbrew/libs/perl-5.20.1@local/lib/perl5/x86_64-linux/AnyEvent/Impl/EV.pm line 88
eval {...} called at /home/calid/.perlbrew/libs/perl-5.20.1@local/lib/perl5/x86_64-linux/AnyEvent/Impl/EV.pm line 88
AnyEvent::CondVar::Base::_wait(AnyEvent::CondVar=HASH(0x1a7e2f0)) called at /home/calid/.perlbrew/libs/perl-5.20.1@local/lib/perl5/x86_64-linux/AnyEvent.pm line 1994
AnyEvent::CondVar::Base::recv(AnyEvent::CondVar=HASH(0x1a7e2f0)) called at t/fd.t line 49
^C
@calid
calid / 00-noprint-after-undef.pl
Last active Aug 29, 2015
Perl DESTROY Scoping Semantics
View 00-noprint-after-undef.pl
local *Foo::c = sub { print "IN MY C\n" };
my $f = Foo->new();
Foo::c();
Foo::d();
e();
undef $f;
__END__
Output
@calid
calid / 01-zmq_hang.py
Created Mar 19, 2015
pyzmq hanging on exit
View 01-zmq_hang.py
import zmq
c = zmq.Context()
s = c.socket(zmq.DEALER)
s.connect('ipc://*')
s.send_string('ohhai')
s.send_string('ohhai')
s.send_string('ohhai')
print('Done')
@calid
calid / Java
Last active Aug 29, 2015
zguide Node Coordination (syncpub/syncsub) Issues
View Java
$ for i in {{1..10}}; do ./run syncsub & done
[1] 2719
[2] 2720
[3] 2721
[4] 2722
[5] 2723
syncsub with jeromq
[6] 2725
syncsub with jeromq
syncsub with jeromq
@calid
calid / 00-bad_ev.pl
Last active Aug 29, 2015
EV 3 Segfault w/ ZMQ::FFI & FFI::Platypus
View 00-bad_ev.pl
use strict;
use warnings;
use Test::More;
use AnyEvent;
use EV;
use ZMQ::FFI;
use ZMQ::FFI::Constants qw(ZMQ_PUSH ZMQ_PULL);
You can’t perform that action at this time.