Skip to content

Instantly share code, notes, and snippets.

View rios0rios0's full-sized avatar
🎯
“Working smarter… not harder.” (1930, Allen F. Morgenstern)

Felipe Rios rios0rios0

🎯
“Working smarter… not harder.” (1930, Allen F. Morgenstern)
View GitHub Profile
@rios0rios0
rios0rios0 / steps.sh
Created March 15, 2024 20:56
Android Debug Bridge (ADB) First Run
sudo usermod -aG plugdev $LOGNAME
sudo vi /etc/udev/rules.d/51-android.rules
lsusb
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4ee7", MODE="0666", GROUP="plugdev"
sudo udevadm control --reload-rules
adb tcpip 5555
@rios0rios0
rios0rios0 / README.md
Created March 25, 2020 17:24 — forked from chadrien/README.md
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
@rios0rios0
rios0rios0 / README.md
Created October 11, 2019 18:35
.sh - Change Databases Admin's Password

Change MySQL ROOT Password:

sudo cat /etc/mysql/debian.cnf

mysql -u debian-sys-maint -p

ALTER USER 'root'@'localhost' IDENTIFIED BY ''; GRANT ALL PRIVILEGES ON . TO 'root'@'localhost'; FLUSH PRIVILEGES;

@rios0rios0
rios0rios0 / gpg_git_signing.md
Created March 11, 2019 00:08 — forked from alopresto/gpg_git_signing.md
Steps to enable GPG signing of git commits.

If anyone is interested in setting up their system to automatically (or manually) sign their git commits with their GPG key, here are the steps:

  1. Generate and add your key to GitHub
  2. $ git config --global commit.gpgsign true ([OPTIONAL] every commit will now be signed)
  3. $ git config --global user.signingkey ABCDEF01 (where ABCDEF01 is the fingerprint of the key to use)
  4. $ git config --global alias.logs "log --show-signature" (now available as $ git logs)
  5. $ git config --global alias.cis "commit -S" (optional if global signing is false)
  6. $ echo "Some content" >> example.txt
  7. $ git add example.txt
  8. $ git cis -m "This commit is signed by a GPG key." (regular commit will work if global signing is enabled)
@rios0rios0
rios0rios0 / README.md
Last active December 30, 2021 15:54
.sh - Fix lag bug on ABNT2 keyboard in Ubuntu 18.04.01 LTS

Bug:

Lag on question key, or other key, from ABNT2 keyboard

Fix:

Edit file:

sudo vi /usr/share/X11/xkb/symbols/br

Then comment line (line number: 39):

@rios0rios0
rios0rios0 / README.md
Created January 9, 2019 13:43
.sh - GDrive and grive-tools for use non-official Google Drive on Ubuntu 16.04

Try:

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install grive
sudo add-apt-repository ppa:thefanclub/grive-tools
sudo apt-get update
sudo apt-get install grive-tools

Or:

@rios0rios0
rios0rios0 / README.md
Last active January 7, 2019 16:26
.sh - Stop the cryptswap partition for fix bug on Ubuntu 16.04.05 LTS

Bug:

[ FAILURE ] Stopped with error /dev/dm-0

Fix:

Place file on:

/etc/init.d/stop-cryptswap

Then execute: