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 / README.md
Last active February 26, 2025 13:12
Configuring Fish Shell on Ubuntu
@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"
@HallexCosta
HallexCosta / skill-icons.json
Last active January 20, 2025 18:59
Testing
{
"ableton": {
"alias": [
"ableton",
"dark:ableton",
"light:ableton",
"test"
],
"themes": [
"dark",
@HallexCosta
HallexCosta / openpix-sdk-cofiguration.js
Last active December 6, 2024 16:50
openpix-sdk-cofiguration.js
console.log(window.$openpixSDK)
window.$openpixSDK.addEvent('beforeCreateCharge', async (nextFn, products, productId) => {
console.log('beforeHook inside Called')
console.log({ nextFn, products, productId })
const order = await createOrderWC(products.get(productId))
if (!order) {
return
}
@HallexCosta
HallexCosta / openpix-sdk.js
Last active December 6, 2024 16:33
openpix-sdk.js
(() => {
window.teste = () => console.log('Hallex was here!');
})();
(()=>{"use strict";var e={521:function(e,n,t){var r,a,l,o,i,u,c=t(271),s=t(537);function d(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var f=new Set,p={};function h(e,n){m(e,n),m(e+"Capture",n)}function m(e,n){for(p[e]=n,e=0;e<n.length;e++)f.add(n[e])}var g=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),y=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\