Skip to content

Instantly share code, notes, and snippets.

View bfelbo's full-sized avatar

Bjarke Felbo bfelbo

View GitHub Profile
/Library/Developer/CommandLineTools/usr/bin/make -C python
swig -python -c++ -Doverride= -I../ -o swigfaiss.cpp swigfaiss.swig
g++ -std=c++11 -DFINTEGER=int -fPIC -m64 -Wno-sign-compare -g -O3 -Wall -Wextra -mpopcnt -msse4 -I/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/include/python3.7m -I/usr/local/lib/python3.7/site-packages/numpy/core/include \
-I../ -c swigfaiss.cpp -o swigfaiss.o
In file included from swigfaiss.cpp:3078:
In file included from ../faiss/impl/ThreadedIndex.h:80:
../faiss/impl/ThreadedIndex-inl.h:164:48: warning: unused parameter 'index' [-Wunused-parameter]
ThreadedIndex<IndexT>::onAfterAddIndex(IndexT* index) {
^
../faiss/impl/ThreadedIndex-inl.h:169:51: warning: unused parameter 'index' [-Wunused-parameter]
g++ -std=c++11 -DFINTEGER=int -I. -fPIC -m64 -Wno-sign-compare -g -O3 -Wall -Wextra -mpopcnt -msse4 -c AutoTune.cpp -o AutoTune.o
In file included from AutoTune.cpp:31:
In file included from ./faiss/MetaIndexes.h:16:
In file included from ./faiss/IndexShards.h:12:
In file included from ./faiss/impl/ThreadedIndex.h:80:
./faiss/impl/ThreadedIndex-inl.h:164:48: warning: unused parameter 'index' [-Wunused-parameter]
ThreadedIndex<IndexT>::onAfterAddIndex(IndexT* index) {
^
./faiss/impl/ThreadedIndex-inl.h:169:51: warning: unused parameter 'index' [-Wunused-parameter]
ThreadedIndex<IndexT>::onAfterRemoveIndex(IndexT* index) {
@bfelbo
bfelbo / ec2-host-from-tag-to-env-vars.sh
Created November 8, 2018 15:21 — forked from marcellodesales/ec2-host-from-tag-to-env-vars.sh
Create Environment Variables in EC2 Hosts from EC2 Host Tags, just like Beanstalk or Heroku does!
######
# Author: Marcello de Sales (marcello.desales@gmail.com)
# Description: Create Create Environment Variables in EC2 Hosts from EC2 Host Tags
#
### Requirements:
# * Install jq library (sudo apt-get install -y jq)
# * Install the EC2 Instance Metadata Query Tool (http://aws.amazon.com/code/1825)
#
### Installation:
# * Add the Policy EC2:DescribeTags to a User
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x92166a25509 <JSObject>
1: connect [/raid/felbo/link_scraping/node_modules/pg-pool/index.js:~139] [pc=0x37a125106b2a](this=0x1c81f5f02201 <EventEmitter map = 0xab3a90d2851>,cb=0x206443438b31 <JSFunction connect (sfi = 0x996f27f6379)>)
2: /* anonymous */ [/raid/felbo/link_scraping/dbInsert.js:~1] [pc=0x37a12510b8e1](this=0x8215680fcd9 <Object map = 0xab3a90823b9>,exports=0x8215680fcd9 <Object map = 0xab3a90823b9>...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [node]