Skip to content

Instantly share code, notes, and snippets.

View concosminx's full-sized avatar

Cosmin Constantin concosminx

  • Pitesti, Romania
View GitHub Profile

Cursor's Memory Bank

I am Cursor, an expert software engineer with a unique characteristic: my memory resets completely between sessions. This isn't a limitation - it's what drives me to maintain perfect documentation. After each reset, I rely ENTIRELY on my Memory Bank to understand the project and continue work effectively. I MUST read ALL memory bank files at the start of EVERY task - this is not optional.

Memory Bank Structure

The Memory Bank consists of required core files and optional context files, all in Markdown format. Files build upon each other in a clear hierarchy:

flowchart TD
@concosminx
concosminx / ui5.md
Created June 9, 2025 08:37
Easy UI5 Generator

Download and Installation

# install the generator 

npm install -g yo generator-easy-ui5

# verify your installation

yo
@concosminx
concosminx / readme.md
Created June 9, 2025 08:31
Instead of *git pull*

Instead of using git pull use

git pull --rebase

and in case of conflicts use

git rebase --abort
@concosminx
concosminx / README.md
Created December 11, 2023 11:24
How to update a forked repo with git rebase

add original repo, fetch all branches, rewrite your master with upstream master

git remote add upstream https://github.com/original-repo/goes-here.git
git fetch upstream
git rebase upstream/master

add force if you need it

git push origin master --force
@concosminx
concosminx / create_constraint_if_not_exists.sql
Created March 17, 2023 09:25 — forked from estysdesu/create_constraint_if_not_exists.sql
[PostgreSQL: create constraint if not exists] not sure of sql compatibility with other engines #postgres #constraint #sql
// vim: syntax=sql
CREATE OR REPLACE FUNCTION create_constraint_if_not_exists (t_name text, c_name text, constraint_sql text)
RETURNS void
AS
$BODY$
BEGIN
-- Look for our constraint
IF NOT EXISTS (SELECT constraint_name
FROM information_schema.constraint_column_usage
@concosminx
concosminx / !Nginx Basic Auth.md
Created October 31, 2022 16:40 — forked from laurentbel/!Nginx Basic Auth.md
Nginx reverse proxy with basic authentication

Nginx Basic Auth

A simple demo of using Nginx as a reverse proxy to add basic authentication.

@concosminx
concosminx / Run android emulator.md
Created August 19, 2022 05:02
Run android emulator

%ANDROID_SDK_ROOT%\tools\emulator -avd Pixel_2_API_29 -verbose -show-kernel

@concosminx
concosminx / keycloak-wildfly-mutual-ssl.txt
Created June 7, 2022 06:54 — forked from gyfoster/keycloak-wildfly-mutual-ssl.txt
Instructions for enabling mutual SSL in Keycloak and WildFly
ROOT CA
--------------
Generate the CA private key:
$ openssl genrsa -out ca.key 2048
Create and self sign the root certificate:
$ openssl req -new -x509 -key ca.key -out ca.crt
Import root CA certificate into truststore:
$ keytool -import -file ca.crt -keystore ca.truststore -keypass <password> -storepass <password>
@concosminx
concosminx / create_x509_certs.md
Created June 6, 2022 14:49 — forked from dasniko/create_x509_certs.md
Creating self signed tls certificates with self-signed root CA
@concosminx
concosminx / install-java-Rocky.md
Last active June 6, 2022 10:03
Install Java on Rocky Linux

Install Java (Open JDK | Oracle) on Rocky Linux

  1. Install Open JDK using yum

sudo yum install java-17-openjdk java-17-openjdk-devel

  1. Install Oracle JDK
  • install wget | curl sudo dnf -y install wget curl