Showing posts with label Cloud. Show all posts
Showing posts with label Cloud. Show all posts

Sunday, May 19, 2024

ALS - Another Looking-glass Server - Showing your VPS performance.


 这里推荐一个程序Looking Glass Server可以让你更方便的将vps的性能涨势给小伙伴。还带自定义md说明,方便你加入你的aff链接。

1.docker安装

curl -fsSL https://get.docker.com | bash -s docker

2.说明文件设置

新建一个目录, 如 /opt/tHe_DaTa
然后放置 /opt/tHe_DaTa/readme.md
.md文件在线编辑
https://pandao.github.io/editor.md/

3.启动docker

docker run -dit -e SPONSOR_MESSAGE=/tmp/readme.md -v /opt/tHe_DaTa/readme.md:/tmp/readme.md --name looking-glass --restart always --network host wikihostinc/looking-glass-server

4.常用变量

KeyExampleDefaultDescription
LISTEN_IP127.0.0.1(all ip)which IP address will be listen use
HTTP_PORT8080which HTTP port should use
SPEEDTEST_FILE_LIST100MB 1GB1MB 10MB 100MB 1GBsize of static test files, separate with space
PUBLIC_IPV41.1.1.1(fetch from http://ifconfig.co)The IPv4 address of the server
PUBLIC_IPV6fe80::1(fetch from http://ifconfig.co)The IPv6 address of the server
DISPLAY_TRAFFICtruetrueToggle the streaming traffic graph
ENABLE_SPEEDTESTtruetrueToggle the speedtest feature
UTILITIES_PINGtruetrueToggle the ping feature
UTILITIES_SPEEDTESTDOTNETtruetrueToggle the speedtest.net feature
UTILITIES_FAKESHELLtruetrueToggle the HTML Shell feature
UTILITIES_IPERF3truetrueToggle the iperf3 feature
UTILITIES_IPERF3_PORT_MIN3000030000iperf3 listen port range - from
UTILITIES_IPERF3_PORT_MAX3100031000iperf3 listen port range - to
SPONSOR_MESSAGE"Test message" or "/tmp/als_readme.md"''Show server sponsor message (support markdown file, required mapping file to container)

5.Demo

  • http://lg.hk1-bgp.hkg.50network.com/


6.Links

https://github.com/wikihost-opensource/als/blob/master/README_zh_CN.md

https://github.com/wikihost-opensource/als



Tuesday, October 18, 2022

itty.bitty – 将网页内容转换为 URL,服务器不储存数据

「itty.bitty」是一款相当方便的分享工具,主要是将文字或 HTML 程式码(或任何格式)转为链结。不会储存任何使用者输入的资料,它使用一个很「特殊」的方法,将内容压缩然后放入网址,直接产可共享的链结。

当其他人打开这一串链结后,itty.bitty 会将它解译、显示于网页中,它透过名为 Lempel–Ziv–Markov(LZMA)演算法进行压缩,大幅减少网址里需要使用的字元数,建立链结时使用 base64 编码,让字元可以正确变成网址。

itty.bitty 能显示一般纯文字、HTML 或任何资料,不过依照不同浏览器,可塞入网址的字元数限制也有所不同,如果你觉得产生的链结太长,还能透过网址跳转方式跳转链结,让网址变得更短。


Sunday, November 22, 2020

Sharex Upload to backblaze B2 and Using Cloudflare as CDN

 Require:

what we want

  • a simple and relyable way to take care of your daily screenshot/screenshare/fileshare foo
  • I'm assuming sharex is already in use as I will not go through capture and processing parts of it, just the upload and actual share
  • leverage our own domain-name in the sharing link

Tuesday, October 8, 2019

Azure学生订阅免费配额完全使用操作



Azure学生订阅包含有2个免费主机,但大部分人只会用到一个,而且默认情况下并不是真的完全免费。

为什么不是完全免费呢?
原因在于Azure的系统盘并不是像国内云是免费赠送的,他的系统盘也是要单独收费的,这就造成默认情况下创建好的b1s免费实例,实际使用中还会产生一些系统盘的费用。

这个系统盘的费用能不能也节省掉?
可以的,我们还有2个免费的64G磁盘,就是来给两个免费主机配套用的。
如何使用这两个免费磁盘呢?
linux主机默认情况下系统盘是30G,windows是120G,我们要做的就是把这个系统盘改成免费的64G的。
对于linux主机,可以直接创建,然后停止后修改磁盘大小。
对于windows,因为磁盘只能向上扩,不能缩小,所以windows的只能选择smalldisk系列的镜像,创建好后停止后修改磁盘大小。

Tuesday, October 17, 2017

AWS Certification Q&A 1

1. Which DNS name can only be resolved within Amazon EC2?

  • D. Private DNS name
  • http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-dns.html
  • An Amazon-provided private (internal) DNS hostname resolves to the private IPv4 address of the instance, and takes the form ip-private-ipv4-address.ec2.internal for the us-east-1 region, and ip-private-ipv4-address.region.compute.internal for other regions (where private.ipv4.address is the reverse lookup IP address). You can use the private DNS hostname for communication between instances in the same network, but we can’t resolve the DNS hostname outside the network that the instance is in.

2. Is it possible to access your EBS snapshots?

YouTube Channel