Skip to content

Instantly share code, notes, and snippets.

View Ayouuuu's full-sized avatar

Ayou Ayouuuu

  • Location
View GitHub Profile
@Ayouuuu
Ayouuuu / script.sh
Created February 29, 2024 13:20
A script for get hnie room electricity
#!/bin/bash
xiaoquId=
buildingId=
roomName=
host=
influxdb=url.../api/v2/write?org=org&bucket=bucket
token=
cookie=$(curl -s -i "$host/isimshngc/loginServlet" -H 'Content-Type: application/x-www-form-urlencoded' -d "xiaoquId=$xiaoquId" -d "buildingId=$buildingId" -d "roomName=$roomName" | awk -F= '/^Set-Cookie:/ { print $2; exit }')
@Ayouuuu
Ayouuuu / CircularMotionWithMouse.java
Created August 22, 2023 03:22
坐标1围绕坐标2做圆周运动
package com.ayou;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class CircularMotionWithMouse extends JPanel {
private static final int WIDTH = 800;
private static final int HEIGHT = 600;
@Ayouuuu
Ayouuuu / config.yml
Last active November 1, 2022 16:03
Clash configuration
socks-port: 7891
redir-port: 7892
tproxy-port: 7893
mixed-port: 7890
allow-lan: false
bind-address: '*'
mode: rule
log-level: info
ipv6: false
external-controller: '127.0.0.1:9090'
@Ayouuuu
Ayouuuu / BazaarExpand.cfg
Last active November 1, 2022 08:46
Risk of rain 2 Monster Hell Modpacks Configuration
[General]
## If enabled, there will spawn a Golden Chest that use battery in bazaar.
# Setting type: Boolean
# Default value: true
Enable Golden Chest = true
## If enabled, there will spawn a Cleansing Pool in bazaar.
# Setting type: Boolean
# Default value: true
@Ayouuuu
Ayouuuu / OmegaOptions.bak
Created October 16, 2022 09:15
SwitchyOmega Options
{"+__ruleListOf_auto switch":{"color":"#99dd99","defaultProfileName":"direct","format":"AutoProxy","lastUpdate":"2022-10-16T09:13:22.488Z","matchProfileName":"proxy","name":"__ruleListOf_auto switch","profileType":"RuleListProfile","revision":"183e011bd62","ruleList":"[AutoProxy 0.2.9]\n! Checksum: OUH82AudXxbNt8oKqrEVEw\n! Expires: 6h\n! Title: GFWList4LL\n! GFWList with EVERYTHING included\n! Last Modified: Sun, 25 Sep 2022 21:40:14 -0400\n!\n! HomePage: https://github.com/gfwlist/gfwlist\n! License: https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt\n!\n! GFWList is unlikely to fully comprise the real\n! rules being deployed inside GFW system. We try\n! our best to keep the list up to date. Please\n! contact us regarding URL submission / removal,\n! or suggestion / enhancement at issue tracker:\n! https://github.com/gfwlist/gfwlist/issues/.\n\n!---------403/451/503/520 & URL Redirects---------\n!--ehentai\n|http://85.17.73.31/\n!--||adorama.com\n||afreecatv.com\n||agnesb.fr\n||akiba-web.com\n||altrec.c