Skip to content

Instantly share code, notes, and snippets.

View kentlouisetonino's full-sized avatar

Kent Tonino kentlouisetonino

View GitHub Profile
@kentlouisetonino
kentlouisetonino / ANSI-color-codes.h
Created June 22, 2024 20:57 — forked from RabaDabaDoba/ANSI-color-codes.h
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"
@kentlouisetonino
kentlouisetonino / dependabot-create-issue.yml
Created May 24, 2024 01:05 — forked from larryclaman/dependabot-create-issue.yml
Create Issue when Dependabot opens PR
name: CreateDependabotIssue
on:
workflow_dispatch:
pull_request:
branches:
- master
types: [ opened, reopened]
jobs:
issue:

Go to the /usr/bin directory and create a file.

cd /usr/bin

sudo touch delete-git-branches-except && sudo vim delete-git-branches-except

Add the script and save.

#!/bin/bash

Steps

  • Download the Jetbrains Mono font.
https://www.jetbrains.com/lp/mono/
  • Extract the files and rename the folder.

Steps

  • Get the path of the file. Example below.
/home/<username>/Documents/software/audacity.AppImage
  • Go to othe User System Resources binary directory.

Steps

  • Delete the go first in your machine.
# sudo: Allows superuser privileges to execute the command.
# rm: Remove.
# -r: Recursively removes files and directories.
# -f: Forces the removal of files and directories.
sudo rm -rf /usr/local/go

Steps

Go to the root directory of the project. Create a new folder and file. After creating the file, put the sql content.

mkdir docker
cd docker
touch docker_mysql-init.sql

Steps

In LUbuntu, when you install a snap application it will not include a desktop icon in the main menu. Follow the instruction below to add a desktop icon in main menu.

1. Change directory to "/var/lib/snapd/desktop/applications/".
2. Execute the command "sudo cp <name.desktop> /usr/share/applications/".