Skip to content

Instantly share code, notes, and snippets.

View rodrigoreis's full-sized avatar
buy my a ☕ http://ko-fi.com/rodrigoreis

Rodrigo Reis rodrigoreis

buy my a ☕ http://ko-fi.com/rodrigoreis
View GitHub Profile
@rodrigoreis
rodrigoreis / Rodrigo__Dark_.xml
Created August 19, 2024 19:44
My IntelliJ IDEA code style
<code_scheme name="Rodrigo (Dark)" version="173">
<option name="LINE_SEPARATOR" value=" "/>
<option name="SOFT_MARGINS" value="120"/>
</code_scheme>
@rodrigoreis
rodrigoreis / Rodrigo.icls
Last active August 19, 2024 19:42
My IntelliJ IDEA color scheme
<scheme name="Rodrigo" version="142" parent_scheme="Darcula">
<option name="FONT_SCALE" value="1.0" />
<metaInfo>
<property name="ide">WebStorm</property>
<property name="ideVersion">2024.2.0.0</property>
<property name="originalScheme">Rodrigo</property>
</metaInfo>
<option name="CONSOLE_FONT_NAME" value="Noto Sans Mono Ligaturized" />
<option name="CONSOLE_FONT_SIZE" value="15" />
<option name="CONSOLE_LIGATURES" value="true" />
@rodrigoreis
rodrigoreis / debian-12-post-install.sh
Last active August 19, 2024 00:17
debian 12 post install script
#!/bin/bash
# debian 12 post install script
#
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# to make this works ou should first enable non-public repos
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# if have nvidia uncomment line bellow
# apt install nvidia-driver nvidia-opencl-icd firmware-misc-nonfree nvidia-cuda-dev nvidia-cuda-toolkit libcuda1 libglu1-mesa libnvidia-encode1 libnvoptix1 -y
@rodrigoreis
rodrigoreis / bootstrap.sh
Created August 11, 2024 21:37
Bootstrap new environment
#!/bin/bash
# reloads systemctl
systemctl daemon-reload
# install updates for snap
snap refresh
# install updates
apt update
@rodrigoreis
rodrigoreis / cedilla.md
Last active August 14, 2024 21:30
Cedilla under C (ç) in 'US international' keyboard layout in Linux

Cedilla under C (ç) in 'US international' keyboard layout in Linux

Alternative solution 2 (system-wide)

  1. Set the file /etc/default/locale with the content:
LANG=en_US.UTF-8
LANGUAGE=
LC_ADDRESS=pt_BR.UTF-8
LC_COLLATE=en_US.UTF-8
@rodrigoreis
rodrigoreis / docker.md
Last active October 29, 2022 15:02
Guia de instalação do Docker e Docker Compose para Ubuntu e Windows (WSL)

Guia de instalação do Docker e Docker Compose para Ubuntu e Windows (WSL) com systemd

🐋 Docker:

Instalar os pré-requisitos

$ sudo apt update && sudo apt upgrade
$ sudo apt remove docker docker.io containerd runc
$ sudo apt install apt-transport-https ca-certificates curl gnupg lsb-release
@rodrigoreis
rodrigoreis / gnome-terminal-font.md
Last active December 21, 2024 22:04
change GNOME terminal font

Change GNOME terminal font.

List profiles

$ dconf list /org/gnome/terminal/legacy/profiles:/

If code above return :b1dcc9dd-5262-4d8d-a863-c897e6d979b9

@rodrigoreis
rodrigoreis / fix_bt-usb_power_save.md
Last active December 26, 2024 19:33
Fix bluetooth mouse lag over ubuntu

Fix bluetooth mouse lag over Ubuntu 22.04 LTS

The issue you are facing is not related to the Bluetooth timeout but more likely the USB auto suspend feature built into the kernel.

I am running Ubuntu 22.04 LTS and i have a Logitech MX Anywhere 2S

This is how i went about fixing it:

  1. With root privilegies run command to find out the id of your bluetooth module
function __git_ps1_custom() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
function __git_get_branch_name() {
echo -ne "\033[0;35m$(__git_ps1_custom)\033[0m";
}
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_get_branch_name)\$ '
@rodrigoreis
rodrigoreis / GoogleHackMasterList.txt
Created December 8, 2021 14:03 — forked from cmartinbaughman/GoogleHackMasterList.txt
The definitive super list for "Google Hacking".
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www&#8221; domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com