- 출처: https://blusky10.tistory.com/352 참조함
- 개인키 생성
openssl genrsa -out private.key 2048
- 개인키로 공개키 생성
openssl rsa -in private.key -pubout -out public.key
- CSR 생성 (Certificate Signing Request - 인증서 서명 요청)
openssl req -new -key private.key -out private.csr
hello gist |
//자바스크립트에서 복사하는 코드임 | |
//사용자 동의 없이 복사 안됨에 주의! | |
function copy2(data) { | |
var aux = document.createElement("input"); | |
aux.setAttribute("value", data); | |
document.body.appendChild(aux); | |
aux.select(); | |
document.execCommand("copy"); | |
document.body.removeChild(aux); | |
} |
openssl genrsa -out private.key 2048
openssl rsa -in private.key -pubout -out public.key
openssl req -new -key private.key -out private.csr
if(!window.fetch) alert("익스플로러 브라우저는 지원하지 않습니다. 구글 크롬 등의 최신 웹 브라우저를 이용해 주세요!") |
function struct2string(st,deep, p){ | |
if (st==null) return'null'; | |
else if (st==undefined) return 'undefined'; | |
else if (typeof(st)=='string') return str2str(st); | |
else if (typeof(st)!='object') return st.toString(); | |
if(!deep ) return str2str(st.toString()); | |
function str2str(str){ | |
return '"'+str.replace(/\n/g,'\\n').replace(/\`/g,'\\`').replace(/\"/g,'\\"').replace(/\r/g,'\\r').replace(/\{/g,'\\{').replace(/\}/g,'\\}')+'"' | |
} | |
function array2str(ar){ |
function csv2arr(data){ | |
data = data.replace(/\n\r/g,'\n'); | |
var f=0; | |
var arr=[] | |
var ar=[''] | |
for(var i=0; i<data.length; i++){ | |
if(data[i]=='"' ) f+=1; | |
//if(data[i]=='"' && !(f%2)) continue; | |
if(data[i]=='"' && data[i+1]=='"' && f%2) continue; | |
if(data[i]=='"' && data[i-1]!='"' && f%2) continue |
var url = "[urls]"; | |
fetch(url).then((res)=>{ | |
console.log(o=res) | |
return res.blob(); | |
}).then((data)=>{ | |
console.log('blob', data) | |
var Fr = new FileReader; | |
Fr.readAsDataURL(data) | |
Fr.onload = ()=>{ |
youtube-dl --cookies /pathtocookiefile
youtube-dl -cit --extract-audio --audio-format mp3 --audio-quality 0 https://www.youtube.com/playlist?list=************
processing.exe
를 user\%username%\어쩌고
내부에 설치
프로세싱은 4.0 베타
버전
확장기능 Processing for Visual Studio Code를 설치
VSCode 기준으로, .vscode
폴더 안에 tasks.json
파일을 설치한다.
"=${workspaceRoot}",
로 되어 있는 것을 "=${fileDirname}",
로 바꾼다.
const { stat, readdirSync, createReadStream } = require('fs') | |
const port = 81; | |
require('http').createServer((req,res)=>{ | |
const URL = './'+req.url.replace(/(^\/+)|(\/+$)/g,'') | |
console.log('[URL]',(URL)) | |
stat( decodeURI(URL), (err,stats)=>{ | |
if(err){ | |
res.statusCode=404; | |
res.end('404 Page Not Found') |