Skip to content

Instantly share code, notes, and snippets.

@lzimd
lzimd / output.log
Created December 31, 2021 04:02
gradle72 --warning-mode all
> Configure project :
The JavaExec.main property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the mainClass property instead. See https://docs.gradle.org/7.2/dsl/org.gradle.api.tasks.JavaExec.html#org.gradle.api.tasks.JavaExec:main for more details.
at AppMain_main___7y7n4jg8n68uur2cjl8q5fbvh$_run_closure1$_closure2$_closure3.doCall(C:\Users\xxx\AppData\Local\Temp\AppMain_main__.gradle:23)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
@lzimd
lzimd / dfu-util-2.log
Last active October 10, 2021 08:25
USB DFU + GD32V
> .\dfu-util -d 28e9:0189 -a 0 --dfuse-address 0x08000000:leave -D firmware.bin
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Opening DFU capable USB device...
ID 28e9:0189
@lzimd
lzimd / intellij-community-JdkList.kt
Created September 16, 2021 09:28
intellij-community JdkList
// https://github.com/JetBrains/intellij-community/blob/idea/212.5284.40/platform/lang-impl/src/com/intellij/openapi/projectRoots/impl/jdkDownloader/JdkList.kt
@Service
class JdkListDownloader : JdkListDownloaderBase() {
companion object {
@JvmStatic
fun getInstance() = service<JdkListDownloader>()
}
override val feedUrl: String
@lzimd
lzimd / build.sh
Created December 11, 2020 04:10
Hello, adoptopenjdk/openjdk-build with Cygwin + VS2019
#!/bin/bash
set -eu
export VSLANG=1033
export WORKSPACE=.
export BRANCH=master
export TAG=jdk-15.0.1+9
export BUILD_ARGS='--repository https://gitee.com/mirrors_openjdk/jdk15u --disable-adopt-branch-safety --custom-cacerts false --create-debug-symbols-package '
@lzimd
lzimd / CMakeLists.txt
Last active July 2, 2021 14:20
redis-6.2.4 CMakeLists.txt
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(redis VERSION 6.2.4)
set(CMAKE_BUILD_TYPE "Debug")
get_filename_component(REDIS_ROOT "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE)
add_subdirectory(deps)
#add_subdirectory(src/modules)
set(SRC_SERVER_TMP
@lzimd
lzimd / Introduction.md
Created May 8, 2019 08:34
gradle + bom ( spring boot )

examples

1

plugins {  
    id "org.springframework.boot" version "2.1.4.RELEASE"
}
apply plugin: "io.spring.dependency-management"
@lzimd
lzimd / influx.bat
Created October 26, 2018 09:14
influx.bat
@ECHO OFF
SETLOCAL
SET HOME=%~dp0
"%~dp0\influx.exe" %*
ENDLOCAL
@lzimd
lzimd / application.properties
Created September 10, 2018 03:37
spring cloud discovery
spring.cloud.zookeeper.discovery.enabled=true
spring.cloud.zookeeper.discovery.register=true
spring.cloud.zookeeper.discovery.preferIpAddress=true
spring.cloud.zookeeper.connectString=127.0.0.1:2181
spring.cloud.inetutils.ignoredInterfaces[0]=docker0
spring.cloud.inetutils.ignoredInterfaces[1]=veth.*
spring.cloud.inetutils.ignoredInterfaces[2]=VMware.*
spring.cloud.inetutils.ignoredInterfaces[3]=Npcap.*
@lzimd
lzimd / getswap.sh
Created June 29, 2018 03:45
getswap
#!/bin/bash
# Get current swap usage for all running processes
# Erik Ljungstrom 27/05/2011
SUM=0
OVERALL=0
for DIR in `find /proc/ -maxdepth 1 -type d | egrep "^/proc/[0-9]"` ; do
PID=`echo $DIR | cut -d / -f 3`
# PROGNAME=`ps -p $PID -o comm --no-headers`
PROGNAME=`ps -p $PID -f --no-headers | awk '{for (i=8;i<=NF;i++) printf $i}'`
for SWAP in `grep Swap $DIR/smaps 2>/dev/null| awk '{ print $2 }'`
@lzimd
lzimd / java-maven-properties-jdk-encode
Created December 20, 2017 04:09
java-maven-properties-jdk-encode
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>