Skip to content

Instantly share code, notes, and snippets.


András Tóth tothandras

View GitHub Profile
tothandras / Dockerfile
Created May 10, 2020
EfficientDet Tensorflow
View Dockerfile
# install prerequisites -
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3-pip \
python3-dev \
View Dockerfile
RUN apt-get update && \
apt-get install -y libsm6 libxext6 libxrender-dev && \
pip install opencv-python
COPY . .
# RUN echo "Downloading weights..." && \
# wget -O weights/yolov3.weights && \
tothandras /
Last active Jun 22, 2020
Remote coding test

GitHub repositories

Implement a single page application using React. Keep your code in version control, create a public GitHub repository.


tothandras /
Created May 11, 2018
Random MAC Address
# source:
# Find MAC Address
ifconfig en0 | grep ether
# Change it
sudo ifconfig en0 ether aa:bb:cc:dd:ee:ff
# This will generate and set a new MAC address for en0 every time you run it.
# The changes made from both these commands will be reverted when you restart, so this is not permanent.
tothandras /
Created Apr 24, 2018 — forked from pavelmalik/
Install Tensorflow 1.7 on macOS High Sierra 10.13.3 with CUDA and stock python

Tensorflow 1.7 with CUDA on macOS High Sierra 10.13.3 and default python 2.7

Largely based on the Tensorflow 1.6 gist, this should hopefully simplify things a bit. Mixing homebrew python2/python3 with pip ends up being a mess, so here's an approach to uses the built-in python27.


  • NVIDIA Web-Drivers 387. for 10.13.3
  • CUDA-Drivers 387.178
  • CUDA 9.1 Toolkit
  • cuDNN 7.0.5 (latest release for mac os)
View a.js
// a/a.js
class A {
constructor(b) {
this.b = b
foo() {


Logs are an important source to get insights what's happening when your code runs. It can help to understand how the application works. It can also help to discover errors, but there is no one need to look at this output immediately, it's available for later analysis if needed. Although, it is possible to set up alerts based on logs.

Log format

Here we need to ask ourself, what kind of information can help us to find issues and to understand the call chain, data flow in an application?

  • timestamp: when the given event happened, it helps to establish a timeline of events
  • name or location: what is the source of the log

Keybase proof

I hereby claim:

  • I am tothandras on github.
  • I am andrastoth ( on keybase.
  • I have a public key ASDUuMYpEL9jCzi3cuNVTCRu8uc_WqiXeEeVMYt5tBIv2Ao

To claim this, I am signing this object:


Node.js bootcamp

The bootcamp can provide a learning path for a new team member to get familiar with the basic concepts of Node.js and web services. As a mentor you will be responsible to guide the student along the way.


  1. Create a repository for the student
  2. Push the initial, first commit of this repository to the student's repository
  3. Help the student setting up the environment
View route.spec.js
'use strict'
const expect = require('chai').expect
const objectid = require('objectid')
const request = require('super-request')
const User = require('./user')
const server = require('./server') // your http server
describe('GET /api/v1/user/:userId', () => {
let userId