-
Download ClashX Download .dmg file https://github.com/passwa11/ClashX/releases
-
Move App to Applications folder
-
Change Attribute of ClashX in terminal
sudo xattr -r -d com.apple.quarantine /Applications/ClashX
sudo /Applications/Install\ macOS\ [Monterey].app/Contents/Resources/createinstallmedia --volume /Volumes/[USBKEY] |
Download ClashX Download .dmg file https://github.com/passwa11/ClashX/releases
Move App to Applications folder
Change Attribute of ClashX in terminal
sudo xattr -r -d com.apple.quarantine /Applications/ClashX
const fetch = require('node-fetch-with-proxy'); | |
const fs = require('fs'); | |
const path = require('path'); | |
async function getAlbumnList(type) { | |
let result = await fetch("https://api.hentaiser.com/1.2/books/" + type, { | |
"headers": { | |
"accept": "*/*", | |
"content-type": "application/json", | |
"origin": "https://app.hentaiser.com", |
const bwipjs = require('bwip-js'); | |
const fs = require('fs'); | |
async function genImgs() { | |
for (let i = 1; i < 500 ; i++) { | |
const stream = fs.createWriteStream("./" + i + ".png"); | |
let buf = await bwipjs.toBuffer({ | |
bcid: 'code128', | |
text: '' + i, |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<!--<script src="https://unpkg.com/wavesurfer.js"></script>--> | |
</head> | |
<body> | |
<video id="video" |
var arr = [1,2,3,4]; | |
var last = arr.slice(-1)[0]; | |
console.log(last); |
function promiseTimeout(time) { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => reject('timeout'), time); | |
}); | |
}; | |
let promiseB = new Promise((resolve, reject) => { | |
setTimeout(() => { | |
reject('Promise win!'); | |
}, 400) |
# 问题 | |
有时候会链接不到deb.nodesource.com,造成无法通过包管理安装nodejs。用Lantern的全局流量代理好像无法重定向apt-get的流量。 | |
# 解决方案 | |
sudo http_proxy="http://127.0.0.1:xxxx" apt-get install nodejs |
sudo apt-get install software-properties-common | |
sudo apt-add-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer | |
// Download teamcity file | |
// https://download-cf.jetbrains.com/teamcity/TeamCity-2017.1.2.tar.gz | |
// https://download-cf.jetbrains.com/charisma/youtrack-2017.2.33766.jar |
npm config set registry https://registry.npm.taobao.org |