Skip to content

Instantly share code, notes, and snippets.

View level120's full-sized avatar

Gusam Park level120

  • Republic of Korea
  • 16:51 (UTC +09:00)
View GitHub Profile
@level120
level120 / mcp-config.json
Last active April 18, 2026 15:15
Copilot CLI MCP Config
{
"mcpServers": {
"io.github.github/github-mcp-server": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"gallery": "https://api.mcp.github.com",
"version": "1.0.0"
},
"microsoft/markitdown": {
"type": "stdio",
@level120
level120 / Microsoft.PowerShell_profile.ps1
Last active March 15, 2026 04:09
PowerShell Personal Profile
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
# Set global format culture
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
@level120
level120 / GetWindowsUserName.cs
Last active August 3, 2025 09:57
Get last logged username on windows
const string RegPath = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI";
const string DisplayNameKey = "LastLoggedOnDisplayName";
const string SamUserKey = "LastLoggedOnSAMUser";
Console.WriteLine($"Login User: {GetUserName()}");
public static string GetUserName()
{
var registryHive = RegistryHive.LocalMachine;
var registryView = Environment.Is64BitOperatingSystem ? RegistryView.Registry64 : RegistryView.Registry32;
@level120
level120 / msbuild.ps1
Created September 6, 2022 01:52
MSBuild auto found and building script
<#
.SYNOPSIS
msbuild build script.
.PARAMETER path
Build target path.
#>
param(
[Parameter(mandatory)]
[string] $path,
@level120
level120 / app_notarizer.sh
Last active June 13, 2022 02:34 — forked from rdelrosario/app_notarizer.sh
macOS Application Notarization Script
#!/bin/bash
usage()
{
# Display Help
echo "*********************************************************************************************************************************************************"
echo " MacOS Application Notarization Script"
echo "*********************************************************************************************************************************************************"
echo
@level120
level120 / teamcity-docker-compose.yml
Created May 2, 2021 14:13
TeamCity docker-compose for Windows Docker
# https://github.com/JetBrains/teamcity-docker-samples/blob/master/compose-windows/docker-compose.yml
# 사전작업
# Host PC에서 아래 위치에 폴더 생성
# * C:/teamcity-server/data
# * C:/teamcity-server/logs
# * C:/teamcity-agent/agent1_conf
# * C:/teamcity-agent/agent2_conf
# * C:/teamcity-agent/agent3_conf
version: "3.9"
services:
@level120
level120 / changelog_generator.ps1
Last active February 8, 2023 08:42
Change log generator - powershell version
# Based on https://medium.com/@Jeef/creating-a-git-submodule-change-log-for-ci-db60c90f821c
# Input Parameter
param([String] $script:BeginCommitOrTag, [String] $script:EndCommitOrTag, [String] $script:Branch)
function Get-RootPath {
<#
.SYNOPSIS
입력 파라미터의 Path 기준으로 *.sln 파일이 있는 위치까지 상향 탐색합니다.
@level120
level120 / Unpack to MP3.bat
Created September 28, 2020 00:44
Genshine Unpack - Music(*.pck)
REM This context have a no any question and closing.
REM Based on https://github.com/Vextil/Wwise-Unpacker
FOR %%a IN ("Game Files\*.PCK") DO ("Tools\quickbms.exe" "Tools\wavescan.bms" "Game Files" "Tools\Decoding")
FOR %%b IN ("Game Files\*.BNK") DO ("Tools\bnkextr.exe" "%%b" & MOVE *.wav "Tools\Decoding")
FOR %%c IN (Tools\Decoding\*.WAV) DO ("Tools\ww2ogg.exe" "%%c" --pcb Tools\packed_codebooks_aoTuV_603.bin & DEL "%%c")
FOR %%d IN (Tools\Decoding\*.OGG) DO ("Tools\revorb.exe" "%%d" & MOVE "%%d" "MP3")
FOR %%e IN (MP3\*.OGG) DO ("Tools\ffmpeg.exe" -i "%%e" -acodec libmp3lame -q:a 0 -y "MP3\%%~ne.mp3" & DEL "%%e")
@echo off
@level120
level120 / readme.md
Last active August 6, 2019 03:47
RDP에서 OpenGL 프로그램 실행

RDP에서 OpenGL 프로그램 실행

원리

  • tscon 이용해 원격연결을 끊고 그 사이에 프로그램을 실행

동작

  1. 관리자 권한으로 실행하였는지 검사, 실패 시 UAC창 활성화(권한요구)
  2. qwinsta에서 >rdp-tcp#으로 시작하는 구문을 가져와서 >제거한 문장 Parse
  3. tscon으로 2에서 가져온 세션번호 대입(이때 연결이 끊어짐)
  4. 연결이 끊어진 상태에서 OpenGL 프로그램 실행
@level120
level120 / AppleSDGothicNeo.css
Created June 8, 2019 01:37
MacOS의 사파리에서 궁서체 -> 애플 산돌고딕 Neo로 바꾸기
* {
font-family: "Apple SD 산돌고딕 Neo", "Apple SD Sandol Gothic Neo", AppleGothic, 애플고딕 !important;
}
.itemfont {
font-family: "Apple SD 산돌고딕 Neo", "Apple SD Sandol Gothic Neo", "AppleGothic" !important;
}
.itemfont {
font-family: "Apple SD 산돌고딕 Neo", "Apple SD Sandol Gothic Neo", "AppleGothic" !important;
}