Skip to content

Instantly share code, notes, and snippets.

@liuran001
liuran001 / config.yaml
Last active January 14, 2025 14:58
mihomo (Clash Meta) 懒人配置
# mihomo (Clash Meta) 懒人配置
# 版本 V1.15-241205
# https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33
# https://obdo.cc/meta
# 作者: 笨蛋ovo (bdovo.cc)
# Telegram: https://t.me/baka_not_baka
# 关注我的 Telegram 频道谢谢喵 https://t.me/s/BDovo_Channel
# 修改自官方示例规则 https://wiki.metacubex.one/example/#meta
# 转载请保留此注释
# 尽量添加了较为详尽的注释,不理解的地方建议对照 虚空终端 (Clash Meta) Docs 进行理解
@danrovito
danrovito / countrydropdown.html
Last active January 14, 2025 14:57
HTML Country Select Dropdown List
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span>
<select id="country" name="country" class="form-control">
<option value="Afghanistan">Afghanistan</option>
<option value="Åland Islands">Åland Islands</option>
<option value="Albania">Albania</option>
<option value="Algeria">Algeria</option>
<option value="American Samoa">American Samoa</option>
<option value="Andorra">Andorra</option>
<option value="Angola">Angola</option>
@thiagoandrecardoso
thiagoandrecardoso / Docker para iniciantes.md
Created January 9, 2025 07:38
Meus estudos semanais sobre Docker.

Cronograma de Estudos para Docker

Semana 1: Introdução ao Docker

  • FEITO
  • Teoria (1h):
    • O que é Docker e sua importância em projetos modernos.
    • Conceitos básicos: imagens, containers, volumes, e redes.
    • Instalação do Docker e Docker Compose.
  • Prática (1h):
  • Instalar Docker no seu ambiente de desenvolvimento.
@nitred
nitred / optimal_mtu.md
Last active January 14, 2025 14:55
Wireguard Optimal MTU

About

  • I faced bandwidth issues between a WG Peer and a WG server. Download bandwidth when downloading from WG Server to WG peer was reduced significantly and upload bandwidth was practically non existent.
  • I found a few reddit posts that said that we need to choose the right MTU. So I wrote a script to find an optimal MTU.
  • Ideally I would have liked to have run all possible MTU configurations for both WG Server and WG Peer but for simplicity I choose to fix the WG Server to the original 1420 MTU and tried all MTUs from 1280 to 1500 for the WG Peer.

Testing

  • On WG server, I started an iperf3 server
  • On WG peer, I wrote a script that does the following:
    • wg-quick down wg0
  • Edit MTU in the /etc/wireguard/wg0.conf file
@4lxprime
4lxprime / github-desktop-ubutnu.sh
Last active January 14, 2025 14:51
download github desktop on ubuntu
### How to install github desktop on ubuntu:
## download .deb file:
sudo wget https://github.com/shiftkey/desktop/releases/download/release-3.2.0-linux1/GitHubDesktop-linux-3.2.0-linux1.deb
## gdebi:
# sudo apt install gdebi-core -y
# sudo gdebi GitHubDesktop-linux-3.2.0-linux1.deb
## dpkg:
sudo dpkg -i GitHubDesktop-linux-3.2.0-linux1.deb

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? ☆☆

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com