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

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

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
@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 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 September 5, 2021 13:11
Installation tutorial Epson L355 Ubuntu 20.04

Setting Bash on Windows

1. Download and install git: https://git-scm.com/downloads
2. Append git/bin and git/cmd directories to system path environment variable

git-env-var

  • The /bin directory contains the bash.exe and sh.exe executables
  • The /cmd directory contains the git.exe executable