Skip to content

Instantly share code, notes, and snippets.

View xros's full-sized avatar
🎯
Focusing

Songhua Liu xros

🎯
Focusing
View GitHub Profile
@xros
xros / official-discord-domains-list.md
Created August 28, 2024 15:44 — forked from InvalidLenni/official-discord-domains-list.md
All (If I have forgotten a URL here, then please just let me know :)!) official Discord domains (Discord Domain List)

Official Discord Domains, let's reduce the scams!

Domain Description
dis.gd Discord's URL shorter (I like .gd as top-level domain)
discord.co Admin panel, this means not for us! (Not discord administrators / maybe staffs)
discord.com The domain is for e.g the homepage or message links etc
discord.design Dribbble profile shortlink
discord.dev Developer site shortlinks
discord.gg Invite shortlinks
@xros
xros / readme.md
Created August 11, 2024 13:11
Bypassing GPU lock (such as RTX 20xx GPU) when installing ChatRTX from Nvidia

By time time of writting which is 11th Aug 2024, ChatRTX from Nvidia has only offically supported RTX 30/40 series GPU. I have a RTX 2080Ti which Nvidia has abandoned support.

I don't like this.

So I found out the way of bypassing the ChatRTX installation process on Windows 11 with RTX 2080 Ti.

After finishing downloading all the ChatRTX zip file from Nvidia, find some files in the folder and change it. https://www.nvidia.com/en-us/ai-on-rtx/chatrtx/

Steps

@xros
xros / readme.md
Created July 18, 2024 01:31
Building Custom EdgeTX firmware cmake commands in browser using GitPod.io
@xros
xros / warp.js
Created March 30, 2024 20:09 — forked from lzjluzijie/warp.js
Cloudflare Warp 24PB key generator
# See https://halu.lu/%E6%9D%82%E8%B0%88/cloudflare-warp/
# Depolyed at https://warp.halu.lu/
// Change keys if needed
const keys = [
"9WO41D5p-6OP8xj27-36gQG75D",
"R65K12Up-aU907O2e-4nuvD581",
"06LM94EJ-1nl0V2d7-V847va5y",
]
@xros
xros / wan_ssh
Created November 7, 2023 04:17 — forked from lynus/wan_ssh
openwrt:allow wan ssh into your wrt
by default,openwrt do not allow ssh access from wan, here are two method to change that:
1.login into your wrt from a lan host.issue the following command:
iptables -F
the command "flush away" all the firewall rules,including the one that rejects ssh request from wan.
now you can try ssh from anywhere.
aware that the firewall deactivation leads to highly security risk.and after the wrt restarts ,all default firewall configuration comes back.you hava to "flush" the rules once again.
@xros
xros / readme.md
Created January 25, 2022 23:54
Serverless Sign In to get user info from Firebase

Sign in via Google or Facebook, Firebase will give you a token. With this token, ask firebase, firebase will tell you who is the user.

You take firebase as your backend/database server, focus on developing apps only.

@xros
xros / readme.md
Created January 22, 2022 02:01
WeMe Startup -- A Concept of Personal Entrepreneurship

Today when I got up came across a concept that "WeMe" startup, which means We=Me when you are doing startup.

Here you could tell people you are "we", actually you are "me". But you are doing more than people think you are "me".

You can do better and more than just only "me", it's like "we" or to a level of enterprise.

And you are the most important person in the Startup, ofc.

You could be a full-stack engineer, designer, sales, manager at the same time. With the help of mostly helpful CI/CD, CRM, pipelines, trendy technologies and 3rd party corporations. Or you could find partners when you try.

@xros
xros / readme.md
Created January 21, 2022 00:59
Resolved: error: dst refspec refs/heads/main matches more than one

If you have this error, when you are pushing some codes to git server:

error: dst refspec refs/heads/main matches more than one

It might be that you locally/remotely has a tag called refs/heads/main

I believe you don't want this tag.

How to delete this tag both on remote git server and locally?

@xros
xros / app.py
Created January 20, 2022 19:22
Use Github's OAuth/Account to Login Your Server -- Python/Flask Example
# github生成的两把钥匙
client_id = 'e3a53e8921975c37fe3d'
client_secret = '739a252f5022855aadcc832a2facd86b1b836ef6'
from flask import Flask, \
redirect, \
jsonify
from furl import furl
import requests
import json
from flask import request
@xros
xros / generate_jwtRSA256_key_pair.sh
Last active February 9, 2022 01:30
generate JWT RSA256 key pair using openssl
# This RSA256 key is of 2048 bits long (valid between 1024-4096)
openssl genrsa -out jwtRSA256.private.key 2048
openssl rsa -in jwtRSA256.private.key -pubout -out jwtRSA256.public.key
# no need to input passphrase
cat jwtRSA256.private.key
cat jwtRSA256.public.key
# notice the jwtRSA256.public.key is in ssh-rsa format