Skip to content

Instantly share code, notes, and snippets.

@Delta456
Delta456 / notes.md
Last active December 27, 2024 16:14
Fundamental of Backend Communications and Protocol

Fundamental of Backend Communications and Protocol

Design Patterns

Request - Response

Client sends a request, then server parses and then processes the request, finally send a response to the client, which parses it and consumes.

Where it is used?

  • Web, HTTP, DNS. SSH
  • RPC (Remote Procedure Call)
@drthilina
drthilina / 1_erpnext13_public.sh
Last active September 5, 2024 18:46
Install ERPNext V13 on Ubuntu 20.04 LTS || Production
Install ERPNext V13, FRAPPE-BENCH 13 on Ubuntu 20.04 and configure for production Environment
# Install GIT
$ apt install -y git
# Ubuntu update and upgrade packages
$ apt update -y && apt upgrade -y
# Install Python 3.8 and dependencies
@sdg7onado
sdg7onado / nomatchinghistoryfix.md
Created March 26, 2022 04:55
How to Fix the Error: There isn’t anything to compare: main and development are entirely different commit histories.

How to Fix the Error: There isn’t anything to compare. main and development are entirely different commit histories.

Definitions

  1. 'main' out of date

  2. 'development' up to date

  3. 'issue' Unable to create PR from 'development' onto 'main' due to the following error: There isn’t anything to compare. main and development are entirely different commit histories.

Assumptions

  1. Fair understanding of Git

@rengler33
rengler33 / scrape_with_logs.py
Last active February 8, 2025 04:09
How to Capture Network Traffic When Scraping with Selenium & Python
# see rkengler.com for related blog post
# https://www.rkengler.com/how-to-capture-network-traffic-when-scraping-with-selenium-and-python/
import json
import pprint
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
capabilities = DesiredCapabilities.CHROME
@1000miles
1000miles / Heroku-CLI-Cheatsheet.md
Last active August 14, 2025 07:52
Most basic Heroku cli commands
@pcgeek86
pcgeek86 / gist:a1fd9d26f8ad46b51adf9513f67b95f2
Last active June 10, 2025 16:09
Install & test Selenium with Firefox / Gecko driver on headless Ubuntu 18.04 LTS server
sudo apt update
sudo apt install firefox python3-pip xvfb x11-utils --yes
sudo -H pip3 install bpython selenium
export DISPLAY=:2
Xvfb $DISPLAY -ac &
export GECKO_DRIVER_VERSION='v0.24.0'
wget https://github.com/mozilla/geckodriver/releases/download/$GECKO_DRIVER_VERSION/geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
tar -xvzf geckodriver-$GECKO_DRIVER_VERSION-linux64.tar.gz
@bmaupin
bmaupin / free-database-hosting.md
Last active August 14, 2025 10:03
Free database hosting
@huklee
huklee / MyLogger.py
Last active October 11, 2024 00:30
python Logger using example with Singleton Pattern
# -*- coding: utf-8 -*-
import logging
import os
import datetime
import time
class SingletonType(type):
_instances = {}
@wojteklu
wojteklu / clean_code.md
Last active August 13, 2025 13:22
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

@renshuki
renshuki / ubuntu_agnoster_install.md
Last active August 4, 2025 18:48
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH