Skip to content

Instantly share code, notes, and snippets.

View j1cs's full-sized avatar
😺
Im on #cat-v mostly

Juan Cuzmar j1cs

😺
Im on #cat-v mostly
View GitHub Profile
@j1cs
j1cs / JetBrains trial reset.md
Created April 17, 2024 20:09 — 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

{
"git.confirmSync": false,
"window.zoomLevel": 0,
"workbench.editor.enablePreview": false,
"explorer.openEditors.visible": 0,
"workbench.startupEditor": "newUntitledFile",
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/.history": true,
@j1cs
j1cs / config
Last active January 27, 2024 16:09
terminator personal profile
[global_config]
always_split_with_profile = True
[keybindings]
[profiles]
[[default]]
foreground_color = "#ffffff"
show_titlebar = False
scrollbar_position = hidden
scrollback_infinite = True
[[GlatsTheme]]
@j1cs
j1cs / improve_fonts.md
Last active January 23, 2024 15:59
Improve fonts archlinux

Improve Fonts

Newest

Make your Arch fonts beautiful easily! This is what I do when I install Arch Linux to improve the fonts.

You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality):

Install some fonts, for example:
sudo pacman -S ttf-dejavu ttf-liberation noto-fonts

@j1cs
j1cs / register.md
Last active January 22, 2024 19:26
Fix brightness control for Intel HD Graphics 4000 (at lease samsung XE700T1C)

Windows

Currently reads as :

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class{4d36e968-e325-11ce-bfc1-08002be10318}\0000] "FeatureTestControl"= "Edit DWORD 32 bit"= f000

Registry with New Value:

You needed to change the value in registry to:(f008)

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class{4d36e968-e325-11ce-bfc1-08002be10318}\0000] "FeatureTestControl"="Edit DWORD 32 bit"=f008

@j1cs
j1cs / config-locale.sh
Created December 10, 2023 20:39
config locale
sudo localectl set-keymap la-latin1
sudo localectl --no-convert set-x11-keymap es,latam pc105 ,
@j1cs
j1cs / user.sql
Last active November 30, 2023 01:01
check users and owner database
SELECT
db.datname AS database,
owner.rolname AS owner,
member.usename AS user,
member_role.rolname AS user_role
FROM
pg_database db
JOIN
pg_roles owner ON db.datdba = owner.oid
LEFT JOIN
chi.Walk(r, func(method string, route string, handler http.Handler, middlewares ...func(http.Handler) http.Handler) error {
fmt.Printf("[%s]: '%s' has %d middlewares\n", method, route, len(middlewares))
return nil
})
# api-usuarios
Demo api rest en Spring Boot
## Comando para levantar una instancia de PostgreSql
```shell
docker run --name postgresDev01 -dp 5432:5432 -e POSTGRES_PASSWORD=c33766232 postgres:alpine3.18
```
@j1cs
j1cs / install-r8168-fedora-36-linux-5.19-secure-boot.md
Created October 11, 2022 17:07
Install r8168 Fedora 36 Linux 5.19 with Secure Boot activated

Install required tools

sudo dnf install -y openssl kernel-devel mokutil keyutils

Check current keys

mokutil --sb-state

Create your own key

mkdir keys && cd keys
cat << EOF > x509.genkey