Skip to content

Instantly share code, notes, and snippets.

@en0ndev
en0ndev / visualstudio_contextmenu.md
Last active October 13, 2025 17:27
REMOVE "OPEN IN VISUAL STUDIO" IN THE CONTEXT MENU

How to Remove "Open in Visual Studio" in the Context Menu

Also you can watch the video.
https://www.youtube.com/watch?v=8S7s-p_enSY


STEP 1

  • Press Win+S keys, and search regedit then open Regedit (Registry Editor).

STEP 2

@LearnWebCode
LearnWebCode / yourFunction.js
Created November 13, 2020 22:19
Connect to MongoDB / Atlas within Netlify / AWS Lambda Serverless Function File
const mongodb = require("mongodb")
exports.handler = async function (event, context) {
const client = await mongodb.connect(process.env.CONNECTIONSTRING, { useUnifiedTopology: true })
const db = client.db()
try {
const dogs = await db.collection("pets").find({ species: "dog" }).toArray()
client.close()
return {
@jlollis
jlollis / gitkeep.md
Last active July 28, 2025 23:01
.gitkeep - Push your entire folder structure to GitHub, including empty folders

.gitkeep

A .gitkeep file tells github to do the opposite of its default behaviour, which is to ignore empty folders.

If you want to track an empty folder, or a folder with untracked files, create a 0kb file with the .gitkeep file extension in that folder.

touch FOLDER_NAME/.gitkeep

Более удобной и актуальной версией является эта статья с использованием traefik

https://gist.github.com/dancheskus/365e9bc49a73908302af19882a86ce52


Certbot и nginx, как обратный прокси в Docker (пример с 2 react проектами)

В результате будет 2 react проекта на 1 сервере доступных по разным ссылкам

@trs2015
trs2015 / git.txt
Last active June 3, 2025 13:30
GIT list (шпаргалка по git-github)
Инициализировать новый репозиторий:
1
git init rep-name
Клонировать репозиторий с удаленного сервера:
1
git clone git@bitbucket.org:afiskon/hs-textgen.git
Добавить в репозиторий файл:
1
git add file.txt
Удалить файл из репозитория:
@mkusher
mkusher / Getstarted.md
Last active November 6, 2022 09:50
Лонгрид для новичков чата php

Введение

Этот текст о том, с чего начать прежде чем писать в https://telegram.me/prophp7

Правила

  1. Тема чата - php и связанное с ним. Оффтоп не приветствуется
  2. Общение стикерами оставьте для флудилок