This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ref: https://github.com/sleeyax/cronet-binaries/issues/1 | |
package main | |
import ( | |
"net/http" | |
"os" | |
"github.com/sagernet/cronet-go" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am diyism on github. | |
* I am diyism (https://keybase.io/diyism) on keybase. | |
* I have a public key whose fingerprint is 11A9 8349 5D23 9308 4FF7 772A 098B 48D8 50FB 1759 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
curl phus.lu/fileserver.py | env PORT=8001 python | |
""" | |
import os | |
import re | |
import sys | |
import time | |
try: | |
from http.server import SimpleHTTPRequestHandler, HTTPServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===========Dockerfile(password: 名字前两字数符):=========== | |
FROM k2fsa/icefall:torch1.13.0-cuda11.6 | |
USER root | |
RUN apt update -y ; apt install -y iputils-ping curl | |
RUN chmod -R 777 /workspace | |
RUN ln -s /opt/conda/lib/stubs/libcuda.so /opt/conda/lib/stubs/libcuda.so.1 | |
ENV SHELL=/bin/bash | |
RUN pip install jupyterlab | |
RUN useradd -m -u 1000 user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rclone.conf: | |
[blomp] | |
type = swift | |
user = i@gmail.com | |
key = 123456 | |
auth = https://authenticate.blomp.com | |
tenant = storage | |
auth_version = 2 | |
no_chunk = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install dependencies "pip install youtube_transcript_api langchain" | |
# Run with "OPENAI_API_KEY=xxxx python summarize.py <youtube_id>" | |
import sys | |
from youtube_transcript_api import YouTubeTranscriptApi | |
from langchain import OpenAI, PromptTemplate | |
from langchain.text_splitter import TokenTextSplitter | |
from langchain.prompts import PromptTemplate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><head> | |
<style> | |
#svgContainer { | |
background-color: #dedede; | |
} | |
#svgZoom { | |
transform-origin: 0% 0%; | |
} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# how to work in kali/debian/ubuntu22.04(jammy), ref: https://gist.github.com/diyism/4b892a4339f35561dd2ec48158a8c75d | |
# the playwright in playwright-go currently only supports ubuntu 20.04(focal) | |
$ sudo singularity build -s ubuntu_focal/ docker://ubuntu:focal | |
$ sudo singularity shell --writable ubuntu_focal/ | |
$ pwd // /root | |
$ mkdir WorkSpace_sing_ubuntu_focal | |
$ cd WorkSpace_sing_ubuntu_focal | |
$ apt update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"现在有很多国产linux程序了,比如 钉钉/飞书, | |
则linux上也有了隔离国产程序的需求, | |
试了1.virtualbox, 2.firejail, 3.docker theasp/novnc, | |
都不够方便实用, 最好用启动单个程序最快的是x11docker | |
@_:10个我离不开的android应用: | |
1.Shelter(隔离国产应用)" | |
#https://github.com/mviereck/x11docker | |
curl -fsSL https://raw.githubusercontent.com/mviereck/x11docker/master/x11docker | sudo bash -s -- --update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat cloaky_server.json | |
{ | |
"ProxyBook": { | |
"sniproxy": [ | |
"tcp", | |
"127.0.0.1:443" | |
] | |
}, | |
"BindAddr": [ | |
"===server lan ip=========:443" |
NewerOlder