Skip to content

Instantly share code, notes, and snippets.

View HallexCosta's full-sized avatar
:octocat:
Learning on-demand!

Hállex da Silva Costa HallexCosta

:octocat:
Learning on-demand!
View GitHub Profile
@HallexCosta
HallexCosta / cursor.sh
Last active April 24, 2025 13:30
Quickly Simple CLI to download, install, update and create desktop entry icons for Cursor AI IDE for Ubuntu (24.04)
#!/bin/bash
# Cursor IDE Manager
# A CLI tool to manage Cursor IDE installation, updates and customization on Linux
# Usage: ./cursor.sh
# Author: Hallex Costa
# Check if running on Linux
if [ "$(uname)" != "Linux" ]; then
echo "╔════════════════════════════════════════════════════════════╗"
@HallexCosta
HallexCosta / JetBrains trial reset.md
Created April 13, 2025 20:37 — forked from h3ssan/JetBrains trial reset.md
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

@HallexCosta
HallexCosta / README.md
Created March 15, 2025 17:21
Fix synstax highlight is disable in Astrovim

Syntax Highlight Disable in Astrovim?

Try run this steps to work

  1. open nvim
  2. Check if gitsigns is installed :checkhealth gitsigns
  3. If it shows errors, reinstall or enable :Lazy sync
  4. Ensure Treesitter Highlighting is Working :checkhealth nvim-treesitter
  5. If Treesitter is missing for Git highlighting, install the required parsers :TSInstall gitcommit diff
  6. Reload Treesitter :TSUpdate
  7. check if file git.lua exists
@HallexCosta
HallexCosta / README.md
Last active March 9, 2025 23:18
Configuring Fish Shell on Ubuntu

Steps to configure shell fish

  1. Install fish and start terminal
brew install fish && fish
  1. Install starship theme
@HallexCosta
HallexCosta / README.md
Last active February 26, 2025 16:57
Configuring Java JDK in your Ubuntu

Requeriments

Guide

Note

Change the jdk.gz filename or folder name, based in your verion JDK downloaded as example I use the jdk-20.0.1

Preparing Artefacts

@HallexCosta
HallexCosta / README.md
Created February 22, 2025 17:53
Loop Login in Ubuntu

Overview

Recently (22/fev/2025) I experienced a problem where I was unable to Login to my main Ubuntu user, as the login process went into a loop

My System

Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy

@HallexCosta
HallexCosta / README.md
Last active February 23, 2025 21:23
Enable macOS Server Performance Mode

Tested in MacOS Sonomia 14.5 (VMware-Workstation-Full-17.6.2-24409262.x86_64), I believe that works to another version

  1. Restart your Mac if it already started
  2. Enter in Recovery mode
  3. Go to "Utilities" on top of macOS bar and open the terminal
  4. Disable SIP (System Integrity Protection) with the command csrutil disable at your own risk!
  5. Leave Recovery mode and go to the macOS system again
  6. Open the terminal and use the sudo nvram boot-args="serverperfmode=1 $(nvram boot-args 2>/dev/null | cut -f 2-)", if need to input your macOS password to authorize the operation
  7. Check if changes were applied with nvram boot-args
    Image
@HallexCosta
HallexCosta / install_vmware_workstation_pro_17.sh
Created February 19, 2025 16:33 — forked from ECiurleo/install_vmware_workstation_pro_17.sh
Install VMware Workstation Pro 17 on Ubuntu
#!/bin/bash
# Update package lists
echo "Updating package lists..."
sudo apt update
# Install build-essential, kernel headers, and dkms
echo "Installing build-essential, kernel headers, and dkms..."
sudo apt install -y build-essential linux-headers-$(uname -r) dkms
@HallexCosta
HallexCosta / .watchmanconfig
Created January 23, 2025 02:15
Fix watchman poison opendir
{
"ignore_dirs": ["node_modules"]
}
@HallexCosta
HallexCosta / skill-icons.json
Last active January 20, 2025 16:15
Testing
{
"relay": {
"themes": [
"dark",
"light"
],
"alias": [
"relay",
"dark:relay",
"light:relay"