Skip to content

Instantly share code, notes, and snippets.

@voku
voku / PHPGPT.md
Last active November 25, 2024 15:21
Coding: Me as PHP chat bot. 🤖

Live-Version:

https://chatgpt.com/g/g-g1905v3LQ-php-copilot

Custom Instruction:

{
 "personality": "This GPT, responds as experienced senior PHP developer and architect Lars Moelleken from github.com/voku and ALWAYS applies a combination of `Sync_Process_Collaborative_Workflow.md` and `Workflow-Framework` as extendable workflow. He writes modern, strict PHP code with specific types and PHPDoc annotations, focusing on readability and precision to support static code analysis and maintainable systems: `CODING_MANIFEST.md`. All code includes specific PHPDoc annotations for e.g. array types, int-ranges, Generics, Generator, and conditional types, or when type hints alone don’t convey full intent; PhpDoc includes e.g. generics (`@template TValue`, `@extends AbstractValueObject`, `@implements Rule`), class-strings (`class-string`), arrays (`list`, `array`, `non-empty-list`), array-shapes (`array{foo?

Smettere di credere a chi vi dice che si può diventare bravi programmatori in sei mesi.

Smettere di credere ad ogni post su linkedin.

@nakamuraos
nakamuraos / reset-trial-navicat.sh
Last active November 17, 2025 09:09
Reset trial Navicat 15, Navicat 16, Navicat 17 on Linux
#!/bin/bash
set -euo pipefail
# Author: NakamuraOS <https://github.com/nakamuraos>
# Latest update: 03/19/2025
# Tested with Navicat 15.x, 16.x, and 17.x on Debian and Ubuntu.
BGRED="\e[1;97;41m"
ENDCOLOR="\e[0m"
@tykurtz
tykurtz / grokking_to_leetcode.md
Last active November 17, 2025 10:52
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@codigoconjuan
codigoconjuan / mapa.js
Last active March 17, 2021 01:59
Crear Mapa Leaflet
document.addEventListener('DOMContentLoaded', () => {
const lat = 20.666332695977;
const lng = -103.392177745699;
const mapa = L.map('mapa').setView([lat, lng], 16);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
@xuhaibahmad
xuhaibahmad / FormScreen.kt
Last active February 2, 2021 00:14
Kaspresso Testing Blog Code
class FormScreen : Screen<FormScreen>() {
val phone = KView { withId(R.id.phone) }
val email = KEditText { withId(R.id.email) }
val submit = KButton { withId(R.id.submit) }
}
@chooie
chooie / 3_things_ive_learned_in_5_years_of_javascript_software_development.md
Last active January 4, 2022 01:17
3 things I've learned in 5 years of JavaScript Software Development

3 things I've learned in 5 years of JavaScript Software Development

Code should lead with the higher-level concepts. The lower-level pieces should follow

Don't force the reader of your code to scroll past the minutiae.

function makeBreakfast() {
  const ingredients = fetchIngredients();
  const friedBacon = fryBacon(ingredients.bacon);
  const cookedScrambledEggs = whiskEggsAndFryThem(ingredients.eggs);
 const preparedMeal = plateAndSeasonMeal(friedBacon, cookedScrambledEggs);
@pishangujeniya
pishangujeniya / reset-mysql-8-root-password-windows.md
Created December 5, 2019 18:04
Reset MySQL 8.0 root Password in Windows

Reset MySQL 8.0 root Password in Windows

  1. Stop the MySQL 8.0service from services
  2. Go to path C:\Program Files\MySQL\MySQL Server 8.0\bin and open cmd
  3. Run mysqld --console --skip-grant-tables --shared-memory
  4. Open new cmd in the same path
  5. Run following commands
  6. mysql -u root
  7. select authentication_string,host from mysql.user where user='root';
  8. UPDATE mysql.user SET authentication_string='' WHERE user='root';
@dinhchi27
dinhchi27 / Key Sublime Text 3.2.1 Build 3207 - Sublime Text 3 License Key
Last active August 25, 2025 03:14
Key Sublime Text 3.2.1 Build 3207 - Sublime Text 3 License Key
Key Sublime Text 3.2.1 Build 3207
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
@bradtraversy
bradtraversy / docker_wordpress.md
Last active October 8, 2025 11:15
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes