Skip to content

Instantly share code, notes, and snippets.

View tearfulDalvik's full-sized avatar
🎃
Focusing

Gufeng Shen tearfulDalvik

🎃
Focusing
View GitHub Profile
@tearfulDalvik
tearfulDalvik / v2ray.conf
Last active October 31, 2022 03:56
Test V2Ray config
{
"inbounds": [
{
"port": 10086,
"protocol": "shadowsocks",
"settings": {
"method": "aes-128-gcm",
"ota": true,
"password": "ipv4-c001-ctg001-telxius-isp.1.oca.nflxvideo.net"
}
@tearfulDalvik
tearfulDalvik / pydio-decrypt.py
Created June 26, 2021 08:53 — forked from drzraf/pydio-decrypt.py
Decrypt a file encrypted using Pydio-cells
#!/usr/bin/python3
# Copyright (C) 2020, Raphaël . Droz + floss @ gmail DOT com
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# Decrypt a file encrypted using Pydio-cells, assuming are provided
# - export the encrypted master key as exported by the UI
@tearfulDalvik
tearfulDalvik / cqupt.conf
Created July 17, 2020 15:39
CQUPT Reverse Proxy Configuration
# Unusual ports are not supported.
server {
listen 80;
server_name endpoint.domain;
set $cqupt www.cqupt.edu.cn;
resolver 202.202.32.33 202.202.32.34 valid=3600s;
error_page 500 502 503 504 /500.html;
#include <stdio.h>
#include <windows.h>
#include <vector>
typedef struct COLOR {
BYTE rgbaBlue;
BYTE rgbaGreen;
BYTE rgbaRed;
BYTE rgbaAlpha;
} *PCOLOR;
[package]
name = "sign_cqupt"
version = "0.1.0"
authors = ["Gufeng <meizaizheli@ifengge.cn>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde_json = "1.0"
@tearfulDalvik
tearfulDalvik / nativeMessaging.swift
Last active May 19, 2023 06:01
Chrome Native Messaging in Swift 5
// MARK: Chrome Part
func getInt(_ bytes: [UInt]) -> UInt {
let lt = (bytes[3] << 24) & 0xff000000
let ls = (bytes[2] << 16) & 0x00ff0000
let lf = (bytes[1] << 8) & 0x0000ff00
let lz = (bytes[0] << 0) & 0x000000ff
return lt | ls | lf | lz
}
@tearfulDalvik
tearfulDalvik / ❤️.gif
Created April 12, 2019 06:45 — forked from mathdroid/❤️.gif
❤️
❤️.gif
@tearfulDalvik
tearfulDalvik / up.gif
Created April 12, 2019 06:45 — forked from mathdroid/up.gif
Up
up.gif
@tearfulDalvik
tearfulDalvik / you.gif
Created April 12, 2019 06:45 — forked from mathdroid/you.gif
You
you.gif
@tearfulDalvik
tearfulDalvik / give.gif
Created April 12, 2019 06:44 — forked from mathdroid/give.gif
Give
give.gif