Skip to content

Instantly share code, notes, and snippets.

@ayoubzulfiqar
ayoubzulfiqar / folder_structure.md
Created September 5, 2023 06:12
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files
@Julien-Marcou
Julien-Marcou / ecmascript.md
Last active June 3, 2025 00:58
ECMAScript Support

ECMAScript Support (as of October 29, 2022)

Global support of es2023 since:

  • Chrome v97 (January 4, 2022)
  • Edge v97 (December 1, 2021)
  • Safari v15.4 (March 14, 2022)
  • Safari on iOS v15.4 (March 14, 2022)
  • Opera v83 (January 19, 2022)
  • Firefox v104 (June 23, 2022)
@aggarwalsushant
aggarwalsushant / ublockStaticCustomFilters.txt
Last active June 3, 2025 00:57
uBlock Origin Custom filters | Ad block | Adblock list | Pure Youtube experience - Purest 0 Ads in Video
! Custom static filter list - Sushant Aggarwal
!__________________________ Google & Youtube Ads __________________________
# Zero Ads in Youtube Videos | No watermarks, Cards, Info. Nothing! Zilch! Nada!
||youtube.com/annotations_
youtube.com##.ytp-ce-element-show
youtube.com##.ytp-ce-element
youtube.com##.ytp-cards-teaser-text
youtube.com##.ytp-cards-button-icon-default
youtube.com##.annotation-type-text.annotation
@Kartones
Kartones / postgres-cheatsheet.md
Last active June 3, 2025 00:52
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@vjt
vjt / painless-newline.md
Created August 12, 2020 11:01
Painless scripting language literal newline character
@isaacsanders
isaacsanders / Equity.md
Created January 21, 2012 15:32
Joel Spolsky on Equity for Startups

This is a post by Joel Spolsky. The original post is linked at the bottom.

This is such a common question here and elsewhere that I will attempt to write the world's most canonical answer to this question. Hopefully in the future when someone on answers.onstartups asks how to split up the ownership of their new company, you can simply point to this answer.

The most important principle: Fairness, and the perception of fairness, is much more valuable than owning a large stake. Almost everything that can go wrong in a startup will go wrong, and one of the biggest things that can go wrong is huge, angry, shouting matches between the founders as to who worked harder, who owns more, whose idea was it anyway, etc. That is why I would always rather split a new company 50-50 with a friend than insist on owning 60% because "it was my idea," or because "I was more experienced" or anything else. Why? Because if I split the company 60-40, the company is going to fail when we argue ourselves to death. And if you ju

Types

  • feat Commits, that adds or remove a new feature
  • fix Commits, that fixes a bug
  • refactor Commits, that rewrite/restructure your code, however does not change any API behaviour
  • perf Commits are special refactor commits, that improve performance
  • style Commits, that do not affect the meaning (white-space, formatting, missing semi-colons, etc)
  • test Commits, that add missing tests or correcting existing tests
  • docs Commits, that affect documentation only
  • build Commits, that affect build components like build tool, ci pipeline, dependencies, project version, ...
  • ops Commits, that affect operational components like infrastructure, deployment, backup, recovery, ...
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 3, 2025 00:47
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@paoloanzn
paoloanzn / Ghostwriter_Agent.json
Created June 1, 2025 14:55
Ghostwriter-Agent.json
{
"name": "Ghostwriter Agent",
"nodes": [
{
"parameters": {
"updates": [
"message"
],
"additionalFields": {
"chatIds": "7558641202"