網路黑手的呢喃 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
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 && \ |
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 . . |
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
var GAPI = require('node-gcs').gapitoken; | |
var GCS = require('node-gcs'); | |
var fs = require('fs'); | |
var path = require('path'); | |
var format = require('util').format; | |
var config = require('../res/config.js').GCS; | |
const STATIC_URL = "https://storage.googleapis.com"; | |
const BUCKET = config.BUCKET_NAME; | |
const FILENAME = "rock-cloud.png"; |
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
function processInboxToSheet() { | |
//var threads = GmailApp.getInboxThreads(); | |
// Have to get data separate to avoid google app script limit! | |
var start = 0; | |
var threads = GmailApp.getInboxThreads(start, 100); | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
var result = []; | |
for (var i = 0; i < threads.length; i++) { | |
var messages = threads[i].getMessages(); |
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
var sync = require('child_process').spawnSync; | |
console.log('start ls'); | |
var ls = sync('ls', ['-lh', '/usr']); | |
console.log('end ls'); | |
console.log('start grep'); | |
var grep = sync('grep', ['local'], { | |
input: ls.stdout | |
}) |
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) => { |
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
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)', |
NewerOlder