網路黑手的呢喃 Lastest Articles 👇 網路黑手的呢喃 #19 元宇宙的世界,真的還沒到… 網路黑手的呢喃 #18 OpenJS World 2022 速記 網路黑手的呢喃 #17 【推薦】Big Timber(台譯:終極伐木達人) 最近掉進樂高的坑 網路黑手的呢喃 #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* cloudflare-worker-youtube-dl.js | |
* Get direct links to YouTube videos using Cloudflare Workers. | |
* | |
* Usage: | |
* GET /?v=dQw4w9WgXcQ | |
* -> Returns a JSON list of supported formats | |
* | |
* GET /?v=dQw4w9WgXcQ&f=251 | |
* -> Returns a stream of the specified format ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! name: No Pixnet | |
! description: Rerank results to remove pages / threads hosted on Pixnet. | |
! public: true | |
! author: siygle | |
$discard,site=pixnet.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:14 | |
WORKDIR /usr/src/app | |
ARG NPM_TOKEN | |
COPY .npmrc .npmrc | |
COPY package*.json ./ | |
RUN npm install | |
COPY . . |
I hereby claim:
- I am ferrari on github.
- I am ferrari (https://keybase.io/ferrari) on keybase.
- I have a public key ASBECMk7tyvqoMc-kTTSRhCbMCWsfXFUez0GIyih3-boxAo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const parse = require('csv-parse') | |
const fs = require('fs') | |
const transform = require('stream-transform') | |
const isEmail = require('is-email') | |
const input = fs.createReadStream('./input.csv') | |
const output = fs.createWriteStream('./output.csv') | |
const parser = parse({ delimiter: ',' }) | |
const transformer = transform((record, callback) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 16, | |
// font family with optional fallbacks | |
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. npm install sitemapper r2 cheerio p-each-series delay github | |
// 2. USERNAME=GITHUB_ACCOUNT REPO=GITHUB_REPO TOKEN=GITHUB_TOKEN SITEMAP=YOUR_SITEMAP_URL node initial-comment.js | |
#!/usr/bin/env node | |
const util = require('util') | |
const Sitemapper = require('sitemapper') | |
const sitemap = new Sitemapper() | |
const r2 = require('r2') |
husky - Git hooks made easy
npm install husky --save-dev
// Edit package.json
{
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:8.6.0-alpine | |
LABEL maintainer="https://github.com/verdaccio/verdaccio" | |
RUN apk --no-cache add openssl && \ | |
wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 && \ | |
chmod +x /usr/local/bin/dumb-init | |
# If you want "dokku enter" don't forget install bash | |
# https://github.com/dokku/dokku/issues/2572 | |
RUN apk update && \ |
NewerOlder