Skip to content

Instantly share code, notes, and snippets.

View chris-asl's full-sized avatar

Chris Aslanoglou chris-asl

View GitHub Profile
### Keybase proof
I hereby claim:
* I am chris-asl on github.
* I am chris_aslanoglou (https://keybase.io/chris_aslanoglou) on keybase.
* I have a public key ASALGNrmkMwB_YU21jOB_pQMrPjOe9tVtkTHVfmATu0Tago
To claim this, I am signing this object:
@chris-asl
chris-asl / Node crash.log
Last active January 24, 2019 12:51
Node crashes on breakpoint in simple-peer (webrtc) connect event handler
/Users/chris/.nvm/versions/node/v8.15.0/bin/node[47518]: ../src/node.cc:1411:void node::InternalCallbackScope::Close(): Assertion `(env_->execution_async_id()) == (0)' failed.
1: node::Abort() [/Users/chris/.nvm/versions/node/v8.15.0/bin/node]
2: node::(anonymous namespace)::DomainEnter(node::Environment*, v8::Local<v8::Object>) [/Users/chris/.nvm/versions/node/v8.15.0/bin/node]
3: node::InternalCallbackScope::Close() [/Users/chris/.nvm/versions/node/v8.15.0/bin/node]
4: node::InternalCallbackScope::~InternalCallbackScope() [/Users/chris/.nvm/versions/node/v8.15.0/bin/node]
5: node::PerIsolatePlatformData::RunForegroundTask(std::__1::unique_ptr<v8::Task, std::__1::default_delete<v8::Task> >) [/Users/chris/.nvm/versions/node/v8.15.0/bin/node]
6: node::PerIsolatePlatformData::FlushForegroundTasksInternal() [/Users/chris/.nvm/versions/node/v8.15.0/bin/node]
7: node::inspector::NodeInspectorClient::runMessageLoopOnPause(int) [/Users/chris/.nvm/versions/node/v8.15.0/bin/node]
8: v8_inspector::V8Debugger::h
@chris-asl
chris-asl / [authors-search] legacy-vs-labs.ipynb
Last active January 15, 2018 16:02
[authors-search] legacy-vs-labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chris-asl
chris-asl / extract-queries.sh
Last active October 16, 2017 16:23
extract-queries-from-log
#!/bin/sh
# Match either cc=hep or anything that does NOT contain cc (as the default
# collection is hep).
FILTER_HEP_ONLY="(cc=hep)|^(?!.*cc=)"
# 1. We want to capture everything that starts after "p=".
# Sometimes the query part appears two times in the log entry, and grep captures
# the second one that ends with '"'. We exclude double quote so that the engine
# stops parsing once it sees this (or "&" which is the normal case).
<?php
echo "foo";
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>
@chris-asl
chris-asl / moss.sh
Created November 27, 2016 21:05 — forked from panayiotis/moss.sh
# usefull bash commands for moss
# print submission dates
reset; ls -l */*.{tar,gz,rar} | awk '{for(i=6;i<=9;i++)printf "%s ",$i;printf "\n"}' | sort
# unzip archives
find . -type f -name *.tar -print0 | xargs -0 -I file sh -c 'tar -xf file -C `dirname file`'
find . -type f -name *.tar.gz -print0 | xargs -0 -I file sh -c 'tar -xzf file -C `dirname file`'
find . -type f -name *.rar -print0 | xargs -0 -I file sh -c 'unrar -y e file "`dirname file`"'