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 October 26, 2021 18:29
Settings for sublime text 3

Sublime Text Settings

Install these packages with PackageControl:

Packages

  1. SideBarEnhancements
  2. A file icon
  3. PackageResourceViewer
  4. ColorHints
  5. Justify
  6. Indent XML

Open Access database (accdb) ubuntu 20.04 Libreoffice Base

We can use the UCanAccess JDBC driver to connect to Access databases (.mdb and .accdb) in LibreOffice Base. Here's how I did it on a clean install of Ubuntu 20.04 LTS.

One-Time Setup

First, I installed LibreOffice Base

sudo apt-get install libreoffice-base
This file has been truncated, but you can view the full file.
504b 0304 1400 0000 0800 2ca3 8f4b 58ca
e4fa b100 0000 fa00 0000 0a00 0000 636f
6e66 6967 2e78 6375 4d4f cd0a 8330 0cbe
fb14 25b0 e38c ee34 c4ea 6de0 693b 6c0f
201a b5a0 89b4 ddd8 de7e adc2 d825 21f9
7ef8 beb2 7e2f b37a 9175 4658 439e 66a0
883b e90d 8f1a 1ef7 cbf1 0c75 9594 22b6
309e 16a7 029f 5d11 6e0d 93f7 6b81 282b
b10c 83e9 2815 3be2 29cb 72b4 341a e7ed
07aa 4495 51a8 a2c3 dafa 4903 0656 fa27
@danielTobon43
danielTobon43 / README.md
Last active February 21, 2022 13:31
Installing Boost library in Windows for MinGW

Boost library for MinGW Windows

Tutorial based on https://gist.github.com/sim642/29caef3cc8afaa273ce6

Boost.Build setup

  1. Open Command Prompt and navigate to C:\Program Files\boost_1_59_0\tools\build.
  2. Run:
./bootstrap.bat mingw
  1. Run ./b2 install --prefix="C:\Program Files\boost-build"
@danielTobon43
danielTobon43 / README.md
Created February 21, 2022 15:52
Installing bat in Ubuntu 20.04

bat command ubuntu

sudo apt-get install bat

Important:

If you install bat this way, please note that the executable may be installed as batcat instead of bat (due to a name clash with another package). You can set up a bat -> batcat symlink or alias to prevent any issues that may come up because of this and to be consistent with other distributions:

@danielTobon43
danielTobon43 / $$README.md
Last active March 7, 2022 13:40
Show current git branch in Bash prompt

Show current git branch in Bash prompt

Edit .bashrc

force_color_prompt=yes
color_prompt=yes
parse_git_branch() {
 git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
}
add_on_git_branch() {
@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 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
Last active May 31, 2022 19:34
Testing your GitHub page locally

Testing GitHub pages locally

Prerequisites

Before you can use Jekyll to test a site, you must:

Install Jekyll.
Create a Jekyll site. For more information, see "Creating a GitHub Pages site with Jekyll."

We recommend using Bundler to install and run Jekyll. Bundler manages Ruby gem dependencies, reduces Jekyll build errors, and prevents environment-related bugs. To install Bundler:

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