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
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
@danielTobon43
danielTobon43 / README.md
Last active September 7, 2023 06:23
Tutorial/Setting up clang-format on Windows 10 for Sublime Text 3

Clang-format for Sublime Text 3 Win10

This tutorial takes you through the steps of setting up clang-formater in your own sublime text 3 software on Windows 10.

Getting Started

These instructions will get you a full clang format to automatically format C/C++/Objective-C code, so that developers don't need to worry about style issues during code reviews. It is highly recommended to format your changed C++ code before opening pull requests, which will save you and the reviewers' time.copy of the project up and running on your local machine for development and testing purposes. This tutorial will take you trough the full installation on a Windows 10.

Prerequisites

What things you need to install.

@danielTobon43
danielTobon43 / $README.md
Last active August 22, 2023 15:46
Conda environment tutorial

Create conda environment

  1. Download and install miniconda3: https://docs.conda.io/en/latest/miniconda.html
  2. Open Anaconda Prompt (miniconda3)
  3. conda create --prefix=conda-env python==3.8
  4. conda config --set env_prompt '({name}) <-- Just once
  5. conda activate conda-env
  6. conda install <package-name>
  7. conda install -c conda-forge <package-name>
  8. Inside conda-env, run: pip install <package-name>
@danielTobon43
danielTobon43 / README.md
Last active June 29, 2023 09:34
Sync Bitbucket workspace to AWS Codecommit

Sync Bitbucket workspace/AWS codecommit

This section explains the procedure for synchronizing a workspace in Bitbucket to codecommit. This allows each new repository to be automatically synchronized using a global SSH key provided to the Bitbucket workspace and the pipeline corresponding to the synchronization. (This procedure assumes you have a codecommit repository already created)

SSH key configuration

  • SSH key without passphrase
ssh-keygen -t rsa -f ~/.ssh/[KEY-NAME] -C [USER-NAME] -N ''

e.g.
@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 / README.md
Last active October 12, 2022 14:10
CMake GUI install

Installing CMake with GUI Ubuntu

This tutorial explains the procedure to install CMake in Ubuntu 20.04 LTSC with GUI

Pre-requisites

sudo apt-get install qt5-default

CMake GUI installation

@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 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

.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:16
Change zsh default prompt terminal

Set zsh as default prompt

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