Skip to content

Instantly share code, notes, and snippets.

View NeedPainkiller's full-sized avatar
๐Ÿ›น
Freelancer

PainKiller NeedPainkiller

๐Ÿ›น
Freelancer
View GitHub Profile
@NeedPainkiller
NeedPainkiller / git ํ…Œ์ŠคํŠธ.txt
Last active September 5, 2019 06:19
Git ํ…Œ์ŠคํŠธ
// git reset hard
git fetch
git reset --hard "์ปค๋ฐ‹ ID"
// git remote ํ™•์ธ
git remote -v
// git remote ์žฌ์„ค์ •
git remote remove origin
git remote add origin "๊ณ„์ •๋ช…"@"repo ๊ฒฝ๋กœ"
import sys
import requests
import xml.etree.ElementTree as ElementTree
PostUrl = "https://teht.hometax.go.kr/wqAction.do?actionId=ATTABZAA001R08&screenId=UTEABAAA13&popupYn=false&realScreenId="
XmlRaw = "<map id=\"ATTABZAA001R08\"><pubcUserNo/><mobYn>N</mobYn><inqrTrgtClCd>1</inqrTrgtClCd><txprDscmNo>\{CRN\}</txprDscmNo><dongCode>15</dongCode><psbSearch>Y</psbSearch><map id=\"userReqInfoVO\"/></map>"
def call(crn):
res = requests.post(PostUrl, data=XmlRaw.replace("\{CRN\}", crn), headers={'Content-Type': 'text/xml'})
import sys
import requests
import xml.etree.ElementTree as ElementTree
import win32clipboard
# python .\CRN.py 3051577349 8995800075 8996300123 8997600079 8997700057 1010540144 1010863774 1011127195 1011230533 1011268892 1011275340 1011652137 1012151049 1020361041 1021551153
# pyinstaller .\CRN.py --onefile --nowindowed
PostUrl = "https://teht.hometax.go.kr/wqAction.do?actionId=ATTABZAA001R08&screenId=UTEABAAA13&popupYn=false&realScreenId="
XmlRaw = "<map id=\"ATTABZAA001R08\"><pubcUserNo/><mobYn>N</mobYn><inqrTrgtClCd>1</inqrTrgtClCd><txprDscmNo>\{CRN\}</txprDscmNo><dongCode>15</dongCode><psbSearch>Y</psbSearch><map id=\"userReqInfoVO\"/></map>"
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Xml;
// dotnet run .\Program.cs 3051577349 8995800075 8996300123 8997600079 8997700057 1010540144 1010863774 1011127195 1011230533 1011268892 1011275340 1011652137 1012151049 1020361041 1021551153
// dotnet publish -c Release -f netcoreapp2.1 -r win10-x64
namespace CRN_Dotnet
{
const axios = require('axios') // http ๋ชจ๋“ˆ
const xml2js = require('xml2js') // xml ํŒŒ์‹ฑ ๋ชจ๋“ˆ
// ๊ตญ์„ธ์ฒญ ์‚ฌ์—…์ž๋ฒˆํ˜ธ ์กฐํšŒ API [POST]
const postUrl = "https://teht.hometax.go.kr/wqAction.do?actionId=ATTABZAA001R08&screenId=UTEABAAA13&popupYn=false&realScreenId="
// API ์— raw ๋กœ ์˜ฌ๋ผ๊ฐˆ xml ๋ฐ์ดํ„ฐ
const xmlRaw = "<map id=\"ATTABZAA001R08\"><pubcUserNo/><mobYn>N</mobYn><inqrTrgtClCd>1</inqrTrgtClCd><txprDscmNo>{CRN}</txprDscmNo><dongCode>15</dongCode><psbSearch>Y</psbSearch><map id=\"userReqInfoVO\"/></map>"
<map id=\"ATTABZAA001R08\">
<pubcUserNo/>
<mobYn>N</mobYn>
<inqrTrgtClCd>1</inqrTrgtClCd>
<txprDscmNo>3051577349</txprDscmNo>
<dongCode>15</dongCode>
<psbSearch>Y</psbSearch>
<map id=\"userReqInfoVO\"/>
</map>
version: '2.1'
services:
server:
image: server:0.1.2
container_name: server
ports:
- "8080:8080"
- "8081:8081"
stdin_open: true

Fork & Edit From Docker ์น˜ํŠธ ์‹œํŠธ by nacyot

์ปจํ…Œ์ด๋„ˆ

๋ผ์ดํ”„ ์‚ฌ์ดํด

1์žฅ. ๋กœ๋”ฉ๊ณผ ์‹คํ–‰

1 - 1. ์Šคํฌ๋ฆฝํŠธ์˜ ์œ„์น˜

๋ชจ๋“  <script> ํƒœ๊ทธ๋“ค์€ ํŽ˜์ด์ง€์˜ ๊ฐ€์žฅ ๋งˆ์ง€๋ง‰์—, </body> ํƒœ๊ทธ์˜ ๋ฐ”๋กœ ์œ„์— ์„ ์–ธํ•  ๊ฒƒ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์‹คํ–‰ํ•˜๊ธฐ ์ด์ „์— ํŽ˜์ด์ง€๋ฅผ ๋ชจ๋‘ ํ‘œ์‹œํ•  ์ˆ˜ ์žˆ๋‹ค

- ํŽ˜์ด์ง€ ๋ Œ๋”๋ง ๋ณด๋‹ค ์Šคํฌ๋ฆฝํŠธ ๋กœ๋”ฉ์„ ๋จผ์ € ํ•  ๊ฒฝ์šฐ ์ฝ”๋“œ์˜ ๋กœ๋”ฉ ๋ฐ ์‹คํ–‰์œผ๋กœ ์ธํ•ด ์ฒด๊ฐ ์†๋„๊ฐ€ ๋–จ์–ด์ง„๋‹ค
- ์ตœ์‹  ๋ธŒ๋ผ์šฐ์ €๋Š” ๋‹ค์ค‘ ์Šคํฌ๋ฆฝํŠธ ๋กœ๋”ฉ์„ ์ง€์› ํ•˜์ง€๋งŒ, ๋‹ค๋ฅธ ์ด๋ฏธ์ง€์™€ ๊ฐ™์€ Asset ๋“ค์€ ๊ทธ๋ ‡์ง€ ๋ชปํ•˜๋‹ค
- ํ—ˆ๋‚˜ ์ผ๋ฐ˜์ ์ธ ์Šคํฌ๋ฆฝํŠธ ๋กœ๋”ฉ์€ <head> ํƒœ๊ทธ์— ๋‘๋Š” ๊ฒƒ์ด ์•ˆ์ „ํ•˜๊ณ  

ํ•ด๋‹น ์Šคํฌ๋ฆฝํŠธ๊ฐ€ ํŽ˜์ด์ง€ ๋กœ๋“œ์ค‘์— ์‹คํ–‰๋˜์•ผ ํ•  ๊ฒฝ์šฐ ๋”์šฑ ๊ทธ๋ ‡๋‹ค

@NeedPainkiller
NeedPainkiller / ap-northeast-2.py
Created April 9, 2018 15:23
AWS ap-northeast-2 ping test
import uuid
import requests
import time
from rx import Observable
class AWS:
def check(self):
link = "http://dynamodb.ap-northeast-2.amazonaws.com/ping?x="
return Observable.interval(2000)\