Skip to content

Instantly share code, notes, and snippets.

@OneYX
OneYX / pom.xml
Created February 4, 2024 08:57 — forked from sachin-handiekar/pom.xml
A Maven pom to fetch all the dependencies for a given Artifact
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.sachinhandiekar</groupId>
<artifactId>MavenDependencyFetcher</artifactId>
<version>0.0.1-SNAPSHOT</version>
@OneYX
OneYX / city.json
Created June 29, 2023 11:21
city.json
[
{
"cityCode": "829",
"cityName": "阿坝藏族羌族自治州",
"cityRank": "19",
"id": "5c6d2bab51b49c03d920362f",
"latitude": "31.899400962480023",
"longitude": "102.22476927355173",
"mapCode": "000100090021",
"pingyin": "abazangzuqiangzuzizhizhou",
@OneYX
OneYX / startup.bat
Created October 11, 2022 03:50
cmd min
@echo off
%1 (start /min cmd.exe /c %0 :&exit)
npm start
:: https://www.jianshu.com/p/f3b84f2eb7c4
@OneYX
OneYX / .config
Created April 8, 2022 12:32
lede config
#
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
# CONFIG_TARGET_ath79 is not set
@OneYX
OneYX / lede.diff
Created April 8, 2022 12:28
lede.diff
diff --git a/feeds.conf.default b/feeds.conf.default
index 416da4b..7242211 100644
--- a/feeds.conf.default
+++ b/feeds.conf.default
@@ -6,3 +6,5 @@ src-git telephony https://git.openwrt.org/feed/telephony.git
#src-git targets https://github.com/openwrt/targets.git
#src-git oldpackages http://git.openwrt.org/packages.git
#src-link custom /usr/src/openwrt/custom-feed
+src-git helloworld https://github.com/fw876/helloworld
+src-git passwall https://github.com/xiaorouji/openwrt-passwall
#!/bin/bash
function __curl() {
read proto server path <<<$(echo ${1//// })
DOC=/${path// //}
HOST=${server//:*}
PORT=${server//*:}
[[ x"${HOST}" == x"${PORT}" ]] && PORT=80
exec 3<>/dev/tcp/${HOST}/$PORT
echo -en "GET ${DOC} HTTP/1.0\r\nHost: ${HOST}\r\n\r\n" >&3
@OneYX
OneYX / xrdp-installer-1.1.sh
Created October 13, 2021 09:20
xrdp-installer
#!/bin/bash
#####################################################################################################
# Script_Name : xrdp-installer-1.1.sh
# Description : Perform xRDP installation on Ubuntu 16.04,18.04,19.04,19.10 and perform
# additional post configuration to improve end user experience
# Date : November 2019
# written by : Griffon
# WebSite :http://www.c-nergy.be - http://www.c-nergy.be/blog
# Version : 1.1
# History : 1.1 - Tackling multiple run of the script
@OneYX
OneYX / get.docker.com.sh
Created September 24, 2021 03:00
get.docker.com
#!/bin/sh
set -e
# Docker CE for Linux installation script
#
# See https://docs.docker.com/install/ for the installation steps.
#
# This script is meant for quick & easy install via:
# $ curl -fsSL https://get.docker.com -o get-docker.sh
# $ sh get-docker.sh
#
@OneYX
OneYX / kafdrop.service
Created March 23, 2021 06:07
kafdrop.service
[Unit]
Description=Kafdrop
After=syslog.target
After=network.target
After=kafka.service
[Service]
SyslogIdentifier=kafdrop
TimeoutStartSec=10min
Type=simple
@OneYX
OneYX / kafka.service
Created March 23, 2021 05:14
kafka.service
[Unit]
Description=Kafka
After=syslog.target
After=network.target
After=zookeeper.service
[Service]
SyslogIdentifier=kafka
TimeoutStartSec=10min
Type=simple