Skip to content

Instantly share code, notes, and snippets.

/**
* Autor: Gabriel V. - 312CC
* 2 noiembrie 2015
* Pentru partialul de la PL cu domnul profesor S. Petrescu.
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#!/bin/sh
echo "Installing basic stuff"
sudo apt-get install git zsh build-essential vim cifs-utils
echo "Installing oh-my-zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
echo "Installing everything else - JDK, OpenGL, OpenCL, CMake, clang, latex etc"
sudo apt-get install openjdk-9-jdk openjdk-9-doc openjdk-8-jdk openjdk-8-doc libglfw3 libglfw3-dev pkg-config glew-utils libglew-dev cmake cmake-data opencl-headers clinfo ocl-icd-libopencl1 mesa-opencl-icd octave racket ipython3 python3-pip clang valgrind wxmaxima owncloud-client nautilus-owncloud texlive-latex-extra texlive-full
@gabriel-v
gabriel-v / keybase.md
Last active August 30, 2016 22:07
Just proving that this account is mine

Keybase proof

I hereby claim:

  • I am gabriel-v on github.
  • I am gabrielv (https://keybase.io/gabrielv) on keybase.
  • I have a public key ASCSPPmcUOg5VSI_YOxFhboqeiCFju45cTDVnbcrdkMAlAo

To claim this, I am signing this object:

@gabriel-v
gabriel-v / gabriel@static public ssh
Last active August 16, 2017 18:57
SSH key for the black laptop
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIhO6MpIaOpVSiQ4NLfVgHgvJSqoqDow3ZaD7uaOYX2c03aKOMmPAyOMGdaETQ0J2TB0vT04bao7zFyuAbOsORLNzeSXTqRNycu66ckRGTe+fDBLi5S91IEIiHbjLSNpsbOBhiMCbiPvT3FWYutaU1o9QJS638WIzgtAbNshRfoW11m2SEJnrDDEII6QkEl+tRNKDOBzygVCPZv2urcSsP5j1quBGhgCmlQaUrRc8t/QjJzhjSlO2x28b1fGM0HPfAcXnW8pw+J296rma6TElVZ9Gg/wjMBjKdFYH5aic5r0bUAjGCBO9E+/6cNx1uglsP/vbLmM5cQMKe9R8s3Fbt gabriel@static
@gabriel-v
gabriel-v / elasticsearch.sh
Last active February 20, 2017 11:06
Elasticsearch Setup
#!/bin/bash
set -e
ES_HOME=/installation/dir/for/elasticsearch
ES_HEAP_SIZE=1g exec $ES_HOME/bin/elasticsearch
@gabriel-v
gabriel-v / batch-api.md
Last active November 9, 2016 21:13
Draft API for the hoover batch search

Hoover search batch API

The idea is to facilitate searching for a large number of terms without hitting the rate limiter and with a decent accuracy.

The solution is to use the Elasticsearch _msearch endpoint with count operations, so the query will only return the hit count for each individual query, along with any aggregations that were requested.

The request

@gabriel-v
gabriel-v / gist:59790f94fb8ac2771f9b0b045e8b5448
Last active February 20, 2017 11:44 — forked from philipz/gist:04a9a165f8ce561f7ddd
Debian ARM64 (Aarch64) image for QEMU

QEMU version: 2.2.0

HDD init:

  • qemu-img create -f qcow debian8-arm64.img 10G

Netinstall initrd:

  • wget ftp://ftp.ru.debian.org/debian/dists/jessie/main/installer-arm64/20150422/images/netboot/debian-installer/arm64/initrd.gz
#!/bin/bash
( ls ~/bin/flake8-venv || virtualenv -p python3 ~/bin/flake8-venv ) &> /dev/null
~/bin/flake8-venv/bin/pip install flake8 &> /dev/null
exec ~/bin/flake8-venv/bin/python -m flake8 "$@"
+ /opt/hoover/bin/hoover snoop walk testdata
Traceback (most recent call last):
File "/opt/hoover/snoop/manage.py", line 8, in <module>
execute_from_command_line(sys.argv)
File "/opt/hoover/venvs/snoop/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
utility.execute()
File "/opt/hoover/venvs/snoop/lib/python3.5/site-packages/django/core/management/__init__.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/hoover/venvs/snoop/lib/python3.5/site-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
  • Monday: full work day
  • Tuesday: free after 18:30
  • Wed: free after 17:30
  • Thursday: free after 14:30
  • Friday: free until 13:30 + free after 17