Skip to content

Instantly share code, notes, and snippets.

View luckykong's full-sized avatar

Kong Gaowen luckykong

  • Guangzhou
  • 21:49 (UTC +08:00)
View GitHub Profile
@luckykong
luckykong / cuda_11.8_installation_on_Ubuntu_22.04
Created November 11, 2023 13:13 — forked from MihailCosmin/cuda_11.8_installation_on_Ubuntu_22.04
Instructions for CUDA v11.8 and cuDNN 8.7 installation on Ubuntu 22.04 for PyTorch 2.0.0
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@luckykong
luckykong / cloudflare.txt
Last active October 23, 2023 04:58
Cloudflare’s current IP ranges.
payload:
- IP-CIDR,173.245.48.0/20
- IP-CIDR,103.21.244.0/22
- IP-CIDR,103.22.200.0/22
- IP-CIDR,103.31.4.0/22
- IP-CIDR,141.101.64.0/18
- IP-CIDR,108.162.192.0/18
- IP-CIDR,190.93.240.0/20
- IP-CIDR,188.114.96.0/20
- IP-CIDR,197.234.240.0/22
payload:
- DOMAIN-KEYWORD,openai
- DOMAIN-KEYWORD,sentry
- DOMAIN-KEYWORD,api-free.deepl.com
- DOMAIN-KEYWORD,api.deepl.com
- DOMAIN-SUFFIX,AI.com
- DOMAIN-SUFFIX,akamaized.net
- DOMAIN-SUFFIX,api-iam.intercom.io
- DOMAIN-SUFFIX,bard.google.com
- DOMAIN-SUFFIX,cdn.auth0.com
@luckykong
luckykong / china-unicom-cdn.md
Created January 18, 2016 12:09 — forked from lovemyliwu/china-unicom-cdn.md
使用联通cdn加速下载

120.52.72.*/original-uri

ip 地址获取脚本

window.success = [];
function test() {
    for(var idx=1;idx<255;idx++){
        var el = document.createElement('img');
        el.src = '//120.52.72.' + idx + '/41.media.tumblr.com/5cb6715c800c5b00969f33c162b317d1/tumblr_nzjh7dPKcD1ssbwqro1_540.png';
@luckykong
luckykong / surge.conf
Created November 3, 2015 23:43
Surge是推特网友开发的软件,支持ios9以上,基本可以替代原来的APN代理,一定程度替代AnyConnect,国内外分流体验做得比较好。支持SSL和SS等协议。
# NOTE: this config requires Surge.app build 290 or newer version.
# Add below line to merge a basic configuration file
#!PROXY-OVERRIDE:main.conf
# Surge will support updating conf sometime in the future
#!UPDATE-URL:https://gist.githubusercontent.com/iyee/2e27c124af2f7a4f0d5a/raw
[General]
# skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local