Skip to content

Instantly share code, notes, and snippets.

@3Kmfi6HP
3Kmfi6HP / tutorial_cn.md
Last active May 17, 2024 13:31
Customize edgetunnel Cloudflare IP tutorial with cloudflare tunnel

background: 使用 fly.io 的日本机器安装 cloudflare tunnel 利用它代理部署了 edgetunnel 的 cloudflare worker 的域名 实现指定使用日本的IP地址。

同时 也可以通过使用指定中转IP 实现使用全球任意地区的cloudflare IP

菜单点击 Access -> Tunnels

2. 选择一个tunnel

@muendelezaji
muendelezaji / bash-to-zsh-hist.py
Created October 5, 2016 14:18 — forked from op/bash-history-to-zsh-history.py
Convert Bash history to Zsh history
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
import sys
import time
@rougier
rougier / fractal-dimension.py
Last active May 17, 2024 13:25
Fractal dimension computing
# -----------------------------------------------------------------------------
# From https://en.wikipedia.org/wiki/Minkowski–Bouligand_dimension:
#
# In fractal geometry, the Minkowski–Bouligand dimension, also known as
# Minkowski dimension or box-counting dimension, is a way of determining the
# fractal dimension of a set S in a Euclidean space Rn, or more generally in a
# metric space (X, d).
# -----------------------------------------------------------------------------
import scipy.misc
import numpy as np
@adrianhajdin
adrianhajdin / App.css
Last active May 17, 2024 13:25
Build and Deploy a Full Stack Realtime Chat Messaging App with Authentication & SMS Notifications
:root {
--primary-color: #005fff;
--primary-color-alpha: #005fff1a;
}
html,
body {
margin: 0;
padding: 0;
height: 100%;
@joswr1ght
joswr1ght / summarizelinks.js
Created April 22, 2023 18:22
summarizelinks.js - JavaScript to get a summary of links from an open webpage using the browser inspector console
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active May 17, 2024 13:24
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@FusRoDah061
FusRoDah061 / ServiceInstaller.cs
Last active May 17, 2024 13:24
Class for installing windows service on C#
/*
using System;
using System.Runtime.InteropServices;
using System.Threading;
*/
/// <summary>
/// <para>
/// Sources:
/// <para>https://stackoverflow.com/questions/358700/how-to-install-a-windows-service-programmatically-in-c </para>
@manualbashing
manualbashing / blog.md
Last active May 17, 2024 13:22 — forked from joncloud/pr.md
Checkout Azure DevOps Pull Requests locally

Forked from piscisaureus

Fetch and checkout one specific pull request

To identify one particular pull request, find the pull request number on the Azure DevOps site:

image

Then fetch and checkout the pull request in a local branch named pull/137