Note: on legacy intel system the path may be /usr/local/etc/clamav instead of /opt/homebrew/etc/clamav/
$ brew install clamav
$ cd /opt/homebrew/etc/clamav/
$ cp freshclam.conf.sample freshclam.conf| import dotenv from 'dotenv' | |
| import Eleventy from '@11ty/eleventy' | |
| import express from 'express' | |
| import morgan from 'morgan' | |
| import memoize from 'lodash/memoize.js' | |
| import path from 'path' | |
| import fs from 'fs' | |
| const ENV = process.env.NODE_ENV || 'development' | |
| const PORT = process.env.PORT || 3001 |
| """ | |
| Convert YouTube subtitles(vtt) to human readable text. | |
| Download only subtitles from YouTube with youtube-dl: | |
| youtube-dl --skip-download --convert-subs vtt <video_url> | |
| Note that default subtitle format provided by YouTube is ass, which is hard | |
| to process with simple regex. Luckily youtube-dl can convert ass to vtt, which | |
| is easier to process. |
| const fs = require('fs') | |
| // input format: | |
| // 25 The Innovator’s Dilemma The simultaneous need and danger to reinvent oneself and one's business is the dilemma. Do we disrupt ourselves or do we double-down on core competencies? A dilemma indeed! http://i.imgur.com/exW4j8F.jpg 2014-08-20 2014-11-28 19:05:28.153598 2014-11-28 19:05:28.153598 Craig Christensen http://www.amazon.com/gp/product/B00E257S86/ref=as_li_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=B00E257S86&linkCode=as2&tag=jaktre-20&linkId=5CDH2BHJK7TZT52R | |
| const separateColumns = line => line.split('\t') | |
| const nameColumns = line => ({ | |
| id: line[0], | |
| title: line[1], | |
| description: line[2], | |
| coverUrl: line[3], |
| # POST a JSON file and redirect output to stdout | |
| wget -q -O - --header="Content-Type:application/json" --post-file=foo.json http://127.0.0.1 | |
| # Download a complete website | |
| wget -m -r -linf -k -p -q -E -e robots=off http://127.0.0.1 | |
| # But it may be sufficient | |
| wget -mpk http://127.0.0.1 | |
| # Download all images of a website |
| ### Instructions source http://tumblr.intranation.com/post/766290743/using-dropbox-git-repository #### | |
| -- make empty repo on dropbox: | |
| cd ~/Dropbox/RipeApps/Git | |
| mkdir -p newname.git | |
| cd !$ | |
| git --bare init | |
| -- push your junk into it | |
| cd ~/Projects/myrepo |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
---------- Forwarded message ----------
From: Mark S. Miller <[email protected]>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: [email protected]
| component { | |
| public function init() output="false" { | |
| return this; | |
| } | |
| public function parse(data) output="false" { | |
| local.links = []; | |
| //loop over each line in the file |
| echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
| . ~/.bashrc | |
| mkdir ~/local | |
| mkdir ~/node-latest-install | |
| cd ~/node-latest-install | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| ./configure --prefix=~/local | |
| make install # ok, fine, this step probably takes more than 30 seconds... | |
| curl https://www.npmjs.org/install.sh | sh |