Skip to content

Instantly share code, notes, and snippets.

View danielTobon43's full-sized avatar
🤠
Working

Daniel danielTobon43

🤠
Working
View GitHub Profile
@danielTobon43
danielTobon43 / $README.md
Created August 16, 2022 12:49
Delete Github Action workflow

Delete workflow Github Actions

  • disable workflow manually
  • run delete.sh script
@danielTobon43
danielTobon43 / myanalysis.log
Created July 5, 2022 20:15
Docker github runner log
-----File-----
These entries have been added to ghcr.io/danieltobon43/dbscan-octrees:latest:
FILE SIZE
/tmp/.git/COMMIT_EDITMSG 13B
/tmp/.git/ORIG_HEAD 41B
/tmp/.git/logs/refs/heads/master 200B
/tmp/.git/logs/refs/remotes/origin/HEAD 200B
/tmp/.git/modules/external/argparse/objects/pack/pack-cf82b4b08067b0fbfae0ccea4429f191edeebf46.idx 53.1K
/tmp/.git/modules/external/argparse/objects/pack/pack-cf82b4b08067b0fbfae0ccea4429f191edeebf46.pack 587.9K
@danielTobon43
danielTobon43 / $README.md
Last active January 19, 2024 02:49
Add user and group to Alpine linux Dockerfile

Add user and group Linux Alpine Dockerfile

RUN apk add --no-cache sudo


# creates a pcluser with no password
# then set password to 1234
# this is necessary since adduser from Alpine Linux
# will prompt a password without the --disabled-password flag

.gitconfig file

[user]
	email = your email
	name = your name
[protocol "codecommit"]
	allow = always
[alias]
	lod = "log --all --oneline --decorate --graph"
[init]
@danielTobon43
danielTobon43 / README.md
Last active May 31, 2022 20:15
Run Canon DSLR as a Webcam

Canon DSLR as Webcam Ubuntu

CanonWebCAM

#!/bin/bash
gphoto2 --stdout --capture-movie | ffmpeg -i - -vcodec rawvideo -pix_fmt yuv420p -threads 0 -f v4l2 /dev/video$1
@danielTobon43
danielTobon43 / README.md
Last active May 31, 2022 19:57
Docker display GUI

Docker Display GUI with X server

Displaying a GUI based application in Docker is typically a moment of stackoverflow search, for the sake of time, and for the reckless lazy ones, the easiest solution is to give xhost permission and then remove the permission.

A possible error when displaying things inside a docker container will go along the lines of:

ERROR: In /build/vtk6-VHOYAG/vtk6-6.3.0+dfsg1/Rendering/OpenGL/vtkXOpenGLRenderWindow.cxx, line 1475
vtkXOpenGLRenderWindow (0x563fbe453620): bad X server connection. DISPLAY=:1. Aborting.
@danielTobon43
danielTobon43 / README.md
Last active June 4, 2022 11:09
Debug C++ application in Docker container with vscode

Debugging c++ project in docker container with vscode

You can attached a vscode session in a running docker container or vscode can create a docker container to attach.

image

For this configuration we are going to run a docker container in detached mode and then, connect to it using vscode in remote mode.

  • Running container must have installed gdb
  • Install Remote-containers extensions in your local vscode application
@danielTobon43
danielTobon43 / $README.md
Last active May 4, 2022 16:37
PCL docker

Point cloud library docker

The Point Cloud Library is an open-source library of algorithms for point cloud processing tasks and 3D geometry processing. It is a standalone, large-scale, open project for 2D/3D image and point cloud processing. PCL is released under the terms of the BSD license, and thus free for commercial and research use.

Docker Hub image: https://hub.docker.com/r/danieltobon43/pcl-docker

Environment:

  • Linux Alpine 3.15
  • VTK-9.0.0
  • PCL-1.12.1
@danielTobon43
danielTobon43 / README.md
Created May 1, 2022 14:04
Ubuntu 20.04 pre-configuration

Bash script to setup ubuntu initial steps for development.

  • zsh
  • wget
  • git
  • apt-utils
  • oh-my-zsh
  • terminator
  • sublime text
  • conda
@danielTobon43
danielTobon43 / $README.md
Last active May 31, 2022 20:16
Change zsh default prompt terminal

Set zsh as default prompt

Edit theme file in /home/danieltc/.oh-my-zsh/themes/robbyrussell.zsh-theme