Skip to content

Instantly share code, notes, and snippets.

@ddaakk
ddaakk / reverse-engineering-webpack-apps.md
Created April 30, 2026 01:37 — forked from 0xdevalias/reverse-engineering-webpack-apps.md
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps
/*
* Copyright 2024 graceful-martin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
/*
* Copyright 2024 graceful-martin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@Configuration
@EnableConfigurationProperties(BatchProperties.class)
public class BatchConfig {
// batchDatasource 사용을 위한 수동 빈 등록
@Bean
@ConditionalOnMissingBean
@ConditionalOnProperty(prefix = "spring.batch.job", name = "enabled", havingValue = "true", matchIfMissing = true)
public JobLauncherApplicationRunner jobLauncherApplicationRunner(JobLauncher jobLauncher, JobExplorer jobExplorer,
JobRepository jobRepository, BatchProperties properties) {
@ddaakk
ddaakk / console-2.sql
Created November 2, 2022 04:16
MariaDB practice
use kobis_db;
/*
1. 영화 정보중 영문 제목이 없는 데이터를 조회하는 SQL문을 작성해 보세요.
[관련내용] NULL 함수, TRIM 함수, LEN 함수
2. 한국 영화중 2001년도에 개봉한 영화 중 액션 영화를 조회하는 SQL문을 작성해 보세요.
[관련내용] LIKE 조건
3. 싸이더스가 2020년도에 개봉한 영화 감독의 출생년도를 조회하는 SQL를 작성해 보세요.
[관련내용] IN 조건
4. 영화인 정보에서 직업을 중복없이 조회하는 SQL문을 작성해 보세요.
@ddaakk
ddaakk / console-1.sql
Last active November 3, 2022 03:02
MariaDB practice
insert into zerobase_member (name, email, mobile_no, password, marketing_yn, register_date)
values ('KSW',
'test@test.com',
'01011234456',
'',
true,
now());
alter table zerobase_member
add constraint primary key pk_zerobase_member (email);
@ddaakk
ddaakk / AdditionalHW2.java
Created September 19, 2022 12:15
AdditionalHW2
package Practice.AdditionalHW;
import java.math.BigDecimal;
import static java.math.BigDecimal.ROUND_UNNECESSARY;
/**
* 제로베이스 백엔드 5기 강상우(edd1e-dev.git)
* comment: JDK 9+ 부터는 일반적인 String도 StringBuilder 처리되어서 동작함.
*/
@ddaakk
ddaakk / AdditionalHW1.java
Created September 19, 2022 12:13
AdditionalHW1
import java.util.Scanner;
/**
* 제로베이스 백엔드 5기 강상우(edd1e-dev.git)
* comment: Nothing
*/
public class HW1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
#!/bin/bash
COMMIT_COUNT=20
if [ -z $1 ]
then
read -rsp $'Usage: ./grass.sh [N]\n'
exit 1
fi
@ddaakk
ddaakk / Q8.java
Last active September 15, 2022 12:59
HW Q8
import java.util.*;
/**
* 제로베이스 백엔드 5기 강상우(edd1e-dev.git)
* comment: 유지보수가 주기적으로 발생하는 로직이라는 전제로, Magic Number를 없애기 위해 배열이 아닌 enum으로 정의하였습니다.
*/
public class Q8 {
enum Boundary {
FIRST(0),
SECOND(12_000_000),