백업 Export

regedit /e "%USERPROFILE%\Desktop\putty.reg" HKEY_CURRENT_USER\Software\SimonTatham

바탕화면에 putty.reg 생성. 단 ssh 키는 백업하지 않음.

 

복원 Import

putty.reg를 더블클릭

 

출처: https://stackoverflow.com/questions/13023920/how-to-export-import-putty-sessions-list

Posted by zennken

Jenkins가 오래된 버전이라, 시스템 전체에서 변경하는 방법만 존재하는 듯.

Since Jenkins is an old version, it seems like there is only a way to change it system-wide.

 

Manage Jenkins -> Configure System -> .Xvnc Command line: /usr/bin/vncserver :$DISPLAY_NUMBER -geometry 1920x1080

Job 수행 후 Console Output에서 vncserver 검색해서 지정한 해상도로 수행되는지 확인.

After executing the target job, search for 'vncserver' in the Console Output and check whether it is executed at the specified resolution.

 

Posted by zennken
  • Windows: fsutil file createnew 4g.win 4294967296
  • Linux: fallocate -l 4G ./4g.img
Posted by zennken

java -jar checkstyle-10.8.1-all.jar -c dbeaver-checkstyle-config.xml ${your_java_code_file_list}
Starting audit...
Audit done.

Posted by zennken
  1. Create a new ticket (https://github.com/dbeaver/dbeaver/wiki/Contribute-your-code)
    1. Create a ticket on our issue tracker before creating a PR: https://github.com/dbeaver/dbeaver/issues
    2. Create a fork of the dbeaver/dbeaver repository, create a new branch, commit your changes, and then create a pull request in the upstream repository.
  2. Set up your own development environment
    1. https://dbeaver.com/docs/wiki/Develop-in-Eclipse/#running-and-debugging-in-eclipse
    2. Refer to DBeaver wiki for development: https://dbeaver.com/docs/wiki/
  3. Implement your own DB plugin
    1. org.jkiss.dbeaver.ext.yourDBPlugin, org.jkiss.dbeaver.ext.yourDBPlugin.ui
      1. Don't forget to put license header into source code file: https://github.com/ALTIBASE/dbeaver/blob/devel/docs/license_header.txt
    2. Build package with your own DB plugin: https://github.com/orgs/dbeaver/discussions/13200
      1. dbeaver/plugins/pom.xml (22.1 version)
        1. <modules>... <module>org.jkiss.dbeaver.ext.yourDBPlugin</module>...</modules>
        2. <profiles>... <module>org.jkiss.dbeaver.ext.yourDBPlugin.ui</module>... </profiles>
      2. dbeaver/features/org.jkiss.dbeaver.db.feature/features.xml
        1. <plugin id="org.jkiss.dbeaver.ext.yourDBPlugin"
                   download-size="0"
                   install-size="0"
                   version="0.0.0"
                   unpack="false"/>
      3. (23.1) dbeaver/features/org.jkiss.dbeaver.db.ui.feature/features.xml
        1. <plugin id="org.jkiss.dbeaver.ext.yourDBPlugin.ui"
                   download-size="0"
                   install-size="0"
                   version="0.0.0"
                   unpack="false"/>
      4. mvn clean package at dbeaver
        1. Package directory: dbeaver\product\community\target\products\
          org.jkiss.dbeaver.core.product\win32\win32\x86_64\dbeaver
        2. Confirm your own plugin comes with the package in the plugins directory. 
        3. Execute a new dbeaver.exe to ensure everything works fine.
  4. Creating your own PR

 

Posted by zennken

출처: https://answers.microsoft.com/en-us/windows/forum/all/restore-legacy-right-click-menu-for-file-explorer/a62e797c-eaf3-411b-aeec-e460e6e5a82a

 

리디렉션 중

 

login.microsoftonline.com

 

변경 전 변경 후

 

'더 많은 옵션 표시 Shift + F10' 없애기: 예전처럼 컨텍스트 메뉴를 다 보기 위해 되돌리기

 

1. 시작버튼의 오른쪽 마우스 클릭해서 Windows 터미널 (관리자)

2. 아래 명령을 윈도우 터미널에 붙여넣고 엔터

reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

3. 윈도우 탐색기를 재시작하거나 리부팅

 

 

위 작업을 Windows 10, 11 기본 모양으로 다시 되돌리기

1. 시작버튼의 오른쪽 마우스 클릭해서 Windows 터미널 (관리자)

2. 아래 명령을 윈도우 터미널에 붙여넣고 엔터

reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f

3. 윈도우 탐색기를 재시작하거나 리부팅

Posted by zennken

mkcscope.sh

Development/Script 2020. 10. 8. 08:11
#!/bin/bash
cd ${DEV_HOME}
ctags -R .
rm -rf ${DEV_HOME}/cscope.files
find `pwd` -name "*.h" -o -name "*.c" -o -name "*.cpp" -o -name "*.java" -o -name "*.msg" > ${ALTIDEV_HOME}/cscope.files
cscope -b -i cscope.files
Posted by zennken

Linux

#!/bin/sh
BASEDIR=$(dirname "$0")

echo "$BASEDIR"

Windows

%~dp0: the full path of the directory in which the batch script resides.

 

You can specify the location of myLib.jar regardless of where the batch file is executed.

set JAVA_CMD="%JAVA_HOME%\bin\java" -XX:MaxPermSize=512m -Xms1g -Xmx4g -Duser.language=en
%JAVA_CMD% -jar %~dp0\myLib.jar %*
Posted by zennken

1. Put the following log4j.properties file at root directory at the Eclipse JUnit project

####################################
# Categories & Levels
####################################
#For develop
log4j.rootCategory=DEBUG, ConApp, FileApp 

####################################
# Appender
####################################

# ConApp is set to be a ConsoleAppender
log4j.appender.ConApp=org.apache.log4j.ConsoleAppender
log4j.appender.ConApp.layout=org.apache.log4j.PatternLayout
log4j.appender.ConApp.layout.ConversionPattern=%d [%t] %-5p %l - %m%n

# FileApp is to create log-file using FileAppender
log4j.appender.FileApp=org.apache.log4j.FileAppender
log4j.appender.FileApp.File=./test.log
log4j.appender.FileApp.ImmediateFlush=true
log4j.appender.FileApp.Append=false
log4j.appender.FileApp.layout=org.apache.log4j.PatternLayout
log4j.appender.FileApp.layout.ConversionPattern=%d [%t] %-5p %l - %m%n

 

2. Add static initializer to JUnit test class

private static Logger gLogger = Logger.getLogger(TestClass.class);

static 
{
	PropertyConfigurator.configure("log4j.properties");
}

 

Run a JUnit test, then log4j log will be shown at console and file.

Posted by zennken

Unable to input "@" at HP UX

OS 2020. 3. 25. 15:03

https://www.unix.com/hp-ux/256104-after-using-line-breaks-particular-user-shell.html

// set to default values

stty sane

// change terminal control characters

stty erase "^h" intr "^c" kill "^u" susp "^z" eof "^d"

// see all values

stty -a 

Posted by zennken

zennken

달력