Skip to content

Instantly share code, notes, and snippets.

@Surf-logic
Surf-logic / importDBtoAWSRDS.md
Last active May 4, 2024 23:18
Import data base into AWS RDS using MySQL Workbench

Remove the 3 lines below if they're there, or comment them out with -- :

At the start:

-- SET @@SESSION.SQL_LOG_BIN= 0;
-- SET @@GLOBAL.GTID_PURGED=/*!80000 '+'*/ '';

At the end:

@Surf-logic
Surf-logic / eas_commands.md
Created January 6, 2024 10:18
eas commands
  • Install NodeJs
choco install -y nodejs
  • Install development kit
choco install -y microsoft-openjdk17
@Surf-logic
Surf-logic / keytool_sheet.md
Last active April 25, 2024 01:57
Keytool cheat sheet

Generate new keystore and certificate

  1. Use the following command line to generate a new key
keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore keystore.jks
  1. Export the certificate for that key to PEM format
keytool -export -rfc -alias upload -file upload_certificate.pem -keystore keystore.jks
@Surf-logic
Surf-logic / Unit Convertor privacy policy.md
Last active December 23, 2023 03:54
Unit Convertor App Privacy Policy

Unit Converions: Privacy policy

Welcome to Unit Conversions app!

This app does not require login and it does not collect personal data.

Yours sincerely,

Surflogic Team

@Surf-logic
Surf-logic / regex_cheet_sheet.text
Last active February 9, 2023 12:34
Regex cheat sheet
### Regex Cheet Sheet
. - any character except new line
\d - digit (0-9)
\D - Not a digit (0-9)
\w - word character (a-z, A-Z, 0-9, _)
\W - Not a word character
\s - whitespace (space, tab, newline)
\S - non whitespace (space, tab, newline)
@Surf-logic
Surf-logic / LaravelSailCheatSheet.md
Last active January 20, 2023 02:25
Laravel Sail cheat sheet

Laravel Sail cheet sheet

Install dependencies

Replace php81 with php74, php80, php81, etc.

docker run --rm \
    -u "$(id -u):$(id -g)" \
    -v $(pwd):/var/www/html \
    -w /var/www/html \
 laravelsail/php81-composer:latest \