Skip to content

Instantly share code, notes, and snippets.

View localghost666's full-sized avatar

localghost666

  • cyberspace
View GitHub Profile
@localghost666
localghost666 / web.xml
Created January 25, 2019 06:44
Servlet 4
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
</web-app>
@localghost666
localghost666 / .bashrc
Created January 24, 2019 10:26
IntelliJ에서는 Bash를 프로젝트 디렉토리에서 실행, 그 외의 경우 홈 폴더에서 실행
#!/bin/bash
if [ -z "${PROJECT_DIR}" ]
then
cd ~/ || return
fi
@localghost666
localghost666 / bwv939.ly
Created January 2, 2019 16:45
Little Prelude in C Major
\version "2.18.2"
\header {
title = "Little Prelude in C Major"
composer = "J. S. BACH"
opus = "BWV 939"
}
treble = \new Staff {
\relative c' {
@localghost666
localghost666 / kbd101a.reg
Created December 21, 2018 18:58
103/106키 키보드 및 101A키 키보드(로지텍 K360 영문판 등) 레지스트리
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters]
"LayerDriver KOR"="kbd101a.dll"
"OverrideKeyboardIdentifier"="PCAT_101AKEY"
"OverrideKeyboardSubtype"=dword:00000003
@localghost666
localghost666 / nightcursor.reg
Created December 10, 2018 16:14
윈도우 10의 야간 모드에서 커서도 야간 모드의 영향을 받도록 MouseTrails의 값을 0에서 -1로 수정
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\Mouse]
"MouseTrails"="-1"
<!-- https://realfavicongenerator.net/ -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
@localghost666
localghost666 / index.html
Created September 22, 2018 19:41
<details>를 열고 닫는 마커를 ➕와 ➖로 바꾸는 경우
<details>
<summary>
<h3>Summary Title</h3>
<p>and summary description</p>
</summary>
<h3><a href="#">Item Title</a></h3>
<p>and item description</p>
</details>
@localghost666
localghost666 / DataSourceConfig.java
Created September 12, 2018 09:06
스프링 애플리케이션에서 DataSource 설정 분리
package demo.java.app.config;
import com.zaxxer.hikari.HikariDataSource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import javax.sql.DataSource;
@localghost666
localghost666 / cleancmder.reg
Created April 16, 2018 11:14
언젠가 Cmder를 지우는 날 쓰게 될 것이다.
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
@localghost666
localghost666 / template.xml
Created July 6, 2017 05:47
A JSP+HTML5+UTF-8 Template for Eclipse
<%@ page contentType="text/html; charset=${encoding}" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="${encoding}" />
<title>Insert title here</title>
</head>
<body>
${cursor}
</body>