digitalisx / security Goto Github PK
View Code? Open in Web Editor NEWDigitalis's Security Lab
Home Page: http://digitalisx.tistory.com
Digitalis's Security Lab
Home Page: http://digitalisx.tistory.com
일반적으로 Typescript는 API에 대한 Type정보를 제공하기 때문에 보다 안정적으로 코딩이 가능
그러나 외부 라이브러리의 경우에는, Type에 대한 정보가 포함되지 않은 경우가 많음
types: 타입 정보가 작성되지 않은 라이브러리를 위한 타입정보 관리 패키지
types가 없을 경우에, npm에서 라이브러리에 해당하는 types를 다운로드 해야 함
그리고 이를 package.json에서는 dev-dependencies에 기재해야 함
정식적으로는 non-null assertion operator라고 명명한다.
해당 데이터에 null이나 undefined가 담기지 않을 것이니 이에 대한 문제를 야기하지 말라는 의미,
타입에 대한 강한 검증을 무시하고 수행할 때 유용하게 사용된다.
4772-6837이라는 테이블에서 json형태인 data 컬럼에서 해당 Key의 Value만 뽑아오기
SELECT json_extract(data, '$.OCR_text') FROM "4772-6837"
SELECT json_extract(data, '$.labels') FROM "4772-6837"
테이블과 지정한 데이터 중 Null이 아닌 데이터의 개수를 반환하기 (count)
SELECT count(json_extract(data, '$.OCR_text')) FROM "4772-6837"
데이터 중 null 또는 empty 상태의 데이터들 불러오기
SELECT id, data FROM "4772-6837" WHERE json_extract(data, '$.OCR_text') is NULL or json_extract(data, '$.OCR_text') = ''
Text : 630/633 (0.978264644)
Document : 415/633 (0.674246121951807)
Paper : 299/633 (0.578133050602005)
Receipt : 33/633 (0.676646577575758)
Error : 3/633 (1 Directory, 2 Files)
확인 결과, 타 파일과 달리 Public Access 상태가 아닌 것으로 확인됨
Bucket == 연관 Object들을 포괄하는 최상위 디렉토리
Object == 파일
Key == Bucket 내에서 Object가 가지는 경로
Development/Projects.xls
Finance/statement1.pdf
Private/taxdocument.pdf
제공 API
listObjects() - Object들 1000개 단위로 나열 (NextToken으로 다음 페이지 로드)
getObject() - Key에 따라 Object 정보 가져옴 (Body, Content-Type)
putObject() - 지정하는 Key에 맞게 Buffer의 데이터를 Object형태로 S3에 업로드함 (파일 업로드)
deleteObject() - 지정하는 Key에 맞게 Object를 삭제함
레퍼런스 : https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html
다른 함수에서 사용되더라도 동일한 변수를 사용할 경우, 그 이름을 통일할 것 (Scope에 관계 없이)
일반적으로 Camel Case (단봉낙타, 낙타의 혹처럼 특정 부분만 대문자로 사용하기 때문)
userExpire, pathIterator
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.