Skip to content

Instantly share code, notes, and snippets.

View ptkdev's full-sized avatar
👨‍💻
Javascript Developer 🇮🇹 🇵🇱 🇬🇧 🇪🇺

Patryk Rzucidło ptkdev

👨‍💻
Javascript Developer 🇮🇹 🇵🇱 🇬🇧 🇪🇺
View GitHub Profile
@ptkdev
ptkdev / guide-nginx-letsencrypt-debian9.md
Last active July 25, 2018 14:38
Setup Let's Encrypt on Nginx - Debian 9

Package:

sudo apt-get install certbot python-certbot-nginx

Generate SSL/TLS Certificates

certbot --authenticator webroot --installer nginx

@ptkdev
ptkdev / create-mysql-user-command-line.md
Last active July 25, 2018 14:46
Create MariaDB User with Password - Debian 9

Login at root

sudo mysql -u root -p

Create mysql/mariadb user and database

CREATE DATABASE testdb;
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON testdb.* TO username@localhost;
FLUSH PRIVILEGES;
quit
@ptkdev
ptkdev / android-restore-password-keystore-jks.md
Last active March 28, 2023 15:51
Android: Recovery lost keystore jks file or keystore password

Sign android app with new keystore file if you missing password or lost jks file.

  1. Create new keystore.jks file with comand line (not android studio build menu)

    Linux: keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks

    Windows: "C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore "C:\keystore_new.jks"

  2. Generate a .pem file from new keystore

@ptkdev
ptkdev / dev-kvm-permission-denied.md
Created August 10, 2018 16:45
Android Studio: /dev/kvm device permission denied

Android Studio: /dev/kvm device permission denied

  1. sudo apt install qemu-kvm
  2. sudo adduser <username> kvm
  3. sudo chown /dev/kvm
@ptkdev
ptkdev / lutris-legends-of-runeterra-openbeta.yml
Last active December 20, 2020 12:28
Run Legends of Runeterra on Linux with Lutris
# v1.3.0 - Lutris Installer for Legends of Runeterra Openbeta (forked from league of legends installer)
#
# [REQUIREMENTS]
# - Nvidia driver 430 or newer + vulkan
# - Wine 64bit, delete ~/.wine folder after intallation of wine64 from wine32
# - Archlinux, Manjaro, Ubuntu 18+ or Fedora
#
# [INSTALLATION]
# Install "Lutris" on linux https://lutris.net/
# Download this file and rename to: lutris-legends-of-runeterra-openbeta.yml

Regex: Delete or select all lines containing string

^.*YOUR_WORD.*$\n

Replace YOUR_WORD