Skip to content

Instantly share code, notes, and snippets.

@en0ndev
en0ndev / visualstudio_contextmenu.md
Last active August 27, 2026 05:51
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

@mainnet-pat
mainnet-pat / config
Created February 1, 2023 11:33
BitcoinVerde Flipstarter nginx config
```
server {
server_name fund.mainnet-pat.me;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 7d;
@merc1er
merc1er / certbot.sh
Created March 18, 2022 04:31
Install certbot HTTPS on Ubuntu 20 with NGINX
# ensure snap is up to date
sudo snap install core; sudo snap refresh core
# install certbot
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# run certbot
sudo certbot --nginx
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active August 31, 2026 22:24
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@Staubgeborener
Staubgeborener / python_wikipedia-twitter-bot.py
Last active April 30, 2020 06:48
A small bot, which parse some random content from wikipedia and post it on twitter
#(Update from Python2 -> Python3)
from twython import Twython
from urllib.request import urlopen
from importlib import reload
import urllib
import sys
#reload(sys)
#sys.setdefaultencoding('utf8')
@wojteklu
wojteklu / clean_code.md
Last active September 9, 2026 15:30
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@pyguerder
pyguerder / .htaccess
Last active June 9, 2026 13:09
Installation de Flask sur un hébergement mutualisé OVH
Options +ExecCGI
AddHandler cgi-script .cgi
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ flask.cgi/$1 [QSA,L]
@umpirsky
umpirsky / A.markdown
Last active August 3, 2023 18:14 — forked from olivierlacan/An_example.markdown
Sublime Text Monokai Sidebar Theme.
@wrburgess
wrburgess / gist:5528649
Last active September 13, 2024 19:00
Backup Heroku Postgres database and restore to local database

Grab new backup of database

Command: heroku pgbackups:capture --remote production

Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712

Get url of backup download

Command: heroku pgbackups:url [db_key] --remote production