Skip to content

Instantly share code, notes, and snippets.

@fuji246
fuji246 / tcp_cubic_memo.md
Last active April 26, 2024 02:54
TCP cubic memo

Paper

use a cubic function to replace the linear window growth to improve performance in high BDP network, also achieved RTT fairness.

tcp-cubic is succssor of tcp-bic, tcp-bic use binary search to find the avialble bandwidth when congestion happens, and MAY enter an lieaner increasing state (Additive Increase)if it dropped too low, if it passed the maximum window, it goes into max probing state and will do the reverse and grow slowly initially and switch to additive increase if it can't find new maximum window nearby.

@thecodingcod
thecodingcod / dbeaver_sqlcipher.md
Last active April 26, 2024 02:53
Setting up Dbeaver (The Universal DBMS) to work with SqlCipher Databases

Setting up Dbeaver (The Universal DBMS) to work with SqlCipher Databases

I’ve tried multiple solutions to browse SqlCipher Databases and the only one that seemed to work properly was [DB Sqlite Browser](DB Browser for SQLite (sqlitebrowser.org)) with easy GUI to get into the db. but … the overall experience of that application didn’t really satisfy me!

I knew DBeaver from long time ago, and i wondered if i can use it with SQLCipher, but it was surprisingly a shock that it doesn’t work directly, but with a couple of hours of researching and trying different methods i finally came up with a way to configure it Out-of-the box to make it work!

The reason I wrote this gist was to help others who have the same issue as it seems there is no guide to show how to do so!

@Haythamasalama
Haythamasalama / laravel-spa-authentication.md
Last active April 26, 2024 02:46
Setting Up Authentication for Laravel Single Page Applications (SPA)

Setting Up Authentication for Laravel Single Page Applications (SPA)

Suppose you have two websites that require authentication:

  1. localhost:8000 (backend)
  2. localhost:3000 (frontend)

Configuration Steps:

  1. Allow origins for https://localhost:3000/
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 26, 2024 02:45
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

@JLarky
JLarky / README.md
Last active April 26, 2024 02:43
Ultimate example of react context hook with nice type-safe (TypeScript) wrappers and reduced boilerplate by using `ReturnType`
@AxelRHD
AxelRHD / go_middleware.go
Last active April 26, 2024 02:39
GO middleware example (with gorilla/mux)
package main
import (
"fmt"
"log"
"net/http"
"github.com/gorilla/context"
"github.com/gorilla/mux"
)
@Kirtware
Kirtware / miui-fastboot-howto.rst
Created April 26, 2024 02:38 — forked from j-jith/miui-fastboot-howto.rst
How to flash MIUI Fastboot ROM from Linux

How to flash MIUI Fastboot ROM from Linux

@irazasyed
irazasyed / outbound-email-with-cloudflare.md
Last active April 26, 2024 02:37
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

@KernelA
KernelA / .dockerignore
Created February 1, 2020 20:31
.dockerignore example for Python projects
# Git
.git
.gitignore
.gitattributes
# CI
.codeclimate.yml
.travis.yml
.taskcluster.yml
戚小存 2012-06-06 14:27:31
(谈不上非常原创,算是八卦的长总结吧。借鉴天涯贴《新布局史话——棋盘上属于天才的时代》、吴清源自传、桥本宇太郎自传、田壮壮电影《吴清源》的相关访谈、各位棋手的相关访谈以及川端康成的一些围棋相关作品。)
玩掉欧冠的晚上,我看完球开始看吴清源的自传《中的精神》。
他的文笔很平,情感也很收敛。但是我向来不喜欢男人在码字上面玩太多花,码字也就跟下棋一样,你执着于某些精彩的段子,就无法搞出大格局。
看他讲六合之棋,讲什么是中,什么是最善一手。触动极大,突然对整个围棋史好奇起来。
我爹一直是个非常不入流的围棋爱好者,生平最好的战绩是街道围棋比赛季军,参赛人数为:五人。
据我看,他棋品也一般,下棋的时候咋咋呼呼高声喧哗跟菜市场一样,更别说经常拿这个作为躲避洗碗的借口。
“别慌,等我打完谱。”