Skip to content

Instantly share code, notes, and snippets.

View tothandras's full-sized avatar

András Tóth tothandras

View GitHub Profile
@tothandras
tothandras / Dockerfile
Created May 10, 2020 19:18
EfficientDet Tensorflow
ARG BASE_IMAGE=nvcr.io/nvidia/l4t-base:r32.4.2
FROM ${BASE_IMAGE}
#
# install prerequisites - https://docs.nvidia.com/deeplearning/frameworks/install-tf-jetson-platform/index.html#prereqs
#
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3-pip \
python3-dev \
FROM nvcr.io/nvidia/tensorflow:20.01-tf2-py3
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 https://pjreddie.com/media/files/yolov3.weights && \
@tothandras
tothandras / description.md
Last active March 28, 2024 11:26
Remote coding test (andras@tailfin.cloud)

GitHub repositories

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

Please don't use Next.js!

Tasks

  • Use the GitHub v4 GraphQL API to fetch information about a given user's repositories
@tothandras
tothandras / random.sh
Created May 11, 2018 09:40
Random MAC Address
# source: https://www.howtogeek.com/220462/how-to-find-and-change-your-mac-address-on-os-x/
# 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
tothandras / a.js
Created December 31, 2017 12:57
Node.js DI
// a/a.js
class A {
constructor(b) {
this.b = b
}
foo() {
this.b.bar()
}
@tothandras
tothandras / logging.md
Last active August 7, 2017 14:05
Logging

Logging

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 (https://keybase.io/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.

Setup

  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
@tothandras
tothandras / route.spec.js
Created December 14, 2016 09:43
knex model mocking
'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
@tothandras
tothandras / ambient.js
Created July 16, 2016 00:29
Tessel 2 - Enlightener
'use strict'
const ambientlib = require('ambient-attx4')
function ambientSensor (port) {
return new Promise((resolve, reject) => {
const ambient = ambientlib.use(port)
ambient.on('ready', () => {
console.log('connected to ambient module')