registry.cn-shenzhen.aliyuncs.com/imlc/projector-idea-u:latest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set nu | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set incsearch " Enable incremental search | |
set hlsearch " Enable highlight search | |
set splitbelow " Always split below | |
set mouse=a " Enable mouse drag on window splits | |
autocmd FileType java setlocal omnifunc=javacomplete#Complete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
containerIds=( $(docker container ls --all | grep Exited | cut -d ' ' -f 1) ) | |
length="${#distro[@]}" | |
if [ "0" = "$length" ]; then | |
echo "No exited container" | |
exit 0 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.imlc.demos; | |
import com.sun.net.httpserver.HttpExchange; | |
import com.sun.net.httpserver.HttpHandler; | |
import com.sun.net.httpserver.HttpServer; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.net.InetSocketAddress; | |
public class JavaHttpServer { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.imlc.one; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import org.junit.jupiter.api.Test; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
public class RegExpTest { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filter=*.out | |
from=.out | |
to=.zip | |
dryRun=false | |
for file in ./$filter | |
do | |
if [[ -f $file ]]; then | |
targetName=${file/$from/$to} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk | |
RUN useradd -ms /bin/bash app | |
USER app | |
WORKDIR /var/app | |
COPY elasticsearch ./elasticsearch | |
COPY filebeat ./filebeat | |
COPY kibana ./kibana | |
COPY logstash ./logstash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.imlc.example; | |
import java.util.Collection; | |
import java.util.List; | |
import java.util.concurrent.*; | |
public class MeasurableExecutorService extends ThreadPoolExecutor { | |
public MeasurableExecutorService(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue) { | |
super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.imlc.example | |
import java.lang.StringBuilder | |
import java.util.* | |
class Tracker { | |
data class Tick(val name:String, val timeInMillis: Long) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Update on 2024/05/29 | |
# 1. use wget to fetch latest frp version when curl was not installed | |
# 2. Remind users that frp will be run in non-root user | |
# 3. Add CI | |
# | |
# Update on 2024/04/13 | |
# 1. Improved OS compatibility: try wget and then curl for downloading files. | |
# | |
# Update on 2024/01/26 |
NewerOlder