Skip to content

Instantly share code, notes, and snippets.

@ur0n2
ur0n2 / mkmmc-android.sh
Last active November 22, 2016 02:31
mkmmc-android.sh for beagle_xm_MMC(4GB)
#!/bin/bash
#editor: LeeJunHwan
EXPECTED_ARGS=1
if [ $# == $EXPECTED_ARGS ]
then
echo "Assuming Default Locations for Prebuilt Images"
$0 $1 Boot_Images/MLO Boot_Images/u-boot.bin Boot_Images/uImage Boot_Images/boot.scr Filesystem/rootfs* Media_Clips START_HERE
exit
fi
@ur0n2
ur0n2 / Putty Setting Registry for pretty color
Last active March 14, 2017 12:21
Putty Setting Registry for pretty color set
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\Default%20Settings]
"Present"=dword:00000001
"HostName"="192.168.4.13"
"LogFileName"="putty.log"
"LogType"=dword:00000000
"LogFileClash"=dword:ffffffff
"LogFlush"=dword:00000001
"SSHLogOmitPasswords"=dword:00000001
@ur0n2
ur0n2 / Doskey_Alias_Setting.cmd
Last active April 1, 2020 23:56
Doskey_Alias_Setting.cmd
::2017. 03. 10
::LeeJunHwan
::This commands make to linux environment on Windows OS
::But, We have powershell... and bash shell on windows 10
::Just For Fun!!!
@echo off
doskey ls = dir /W /P $*
doskey ll = dir /A /P $*
doskey cp = copy $*
@ur0n2
ur0n2 / Doskey Registry.reg
Created March 10, 2017 03:20
Doskey Registry.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"Autorun"="C:\\\\linked\\\\Doskey_Alias_Setting.cmd"
@ur0n2
ur0n2 / asd
Created March 31, 2017 05:36
asd
# 2017-03-31
# include mypc_solo, EMS_integrate (x86/x64), driver version check
# powershell Start-Process powershell_ISE -Verb runas
# del alternative to remove-item -force -recurse(non-interactive option) and find file is get-childitem no write to full path
<#
(Get-ChildItem "C:\Program Files (x86)\AhnLab\APC2\" -Include AhnRghNt.sys -Recurse).VersionInfo
(Get-ChildItem "C:\Program Files\AhnLab\APC2\" -Include AhnRghNt.sys -Recurse).VersionInfo
(Get-ChildItem "C:\Program Files\Common Files\AhnLab\" -Include Atamptnt.sys -Recurse).VersionInfo
Amoncdw7.sys
@ur0n2
ur0n2 / clip.py
Created May 10, 2017 14:12
Clipboard copy & paste with python
import sys
import ctypes
OpenClipboard = ctypes.windll.user32.OpenClipboard
EmptyClipboard = ctypes.windll.user32.EmptyClipboard
GetClipboardData = ctypes.windll.user32.GetClipboardData
SetClipboardData = ctypes.windll.user32.SetClipboardData
CloseClipboard = ctypes.windll.user32.CloseClipboard
CF_UNICODETEXT = 13
@ur0n2
ur0n2 / prgm_path_classification.py
Last active May 22, 2017 03:41
windows x86/x64 program files path classification in python
import os
prgm_path = ""
if os.environ.get("PROGRAMFILES(X86)") is None: #this case is 32bit
prgm_path = os.environ.get("PROGRAMFILES")
else:
prgm_path = os.environ.get("PROGRAMFILES(X86)")
#print prgm_path
@ur0n2
ur0n2 / Flash_Player_Remover_on_Win10.bat
Created June 8, 2017 01:44
Flash_Player_Remover_on_Win10.bat
echo off
cls
echo [-] Flash Player Remover for Windows 10 with Edge Browser.
takeown /f C:\Windows\SysWOW64\Macromed\Flash\*.*
takeown /f C:\Windows\System32\Macromed\Flash\*.*
cacls C:\Windows\SysWOW64\Macromed\Flash\*.* /E /T /G %UserDomain%\%UserName%:F
cacls C:\Windows\System32\Macromed\Flash\*.* /E /T /G %UserDomain%\%UserName%:F