Update Homebrew’s package database.
brew update
To install the MongoDB binaries, issue the following command in a system shell:
brew install rabbitmq
Update Homebrew’s package database.
brew update
To install the MongoDB binaries, issue the following command in a system shell:
brew install rabbitmq
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
var amqp = require('amqplib/callback_api'); | |
// if the connection is closed or fails to be established at all, we will reconnect | |
var amqpConn = null; | |
function start() { | |
amqp.connect(process.env.CLOUDAMQP_URL + "?heartbeat=60", function(err, conn) { | |
if (err) { | |
console.error("[AMQP]", err.message); | |
return setTimeout(start, 1000); | |
} |
#!/bin/bash | |
# args: browser | |
# example: ./getOpenTabs.sh "Brave Browser" | |
# credits: | |
# https://gist.github.com/samyk/65c12468686707b388ec43710430a421 | |
# TODO: | |
# validate args | |
# don't open app if not already open |
# shows all url+titles of Chrome along with front window+tab url+title | |
set titleString to "" | |
tell application "Google Chrome" | |
set window_list to every window # get the windows | |
repeat with the_window in window_list # for every window | |
set tab_list to every tab in the_window # get the tabs | |
repeat with the_tab in tab_list # for every tab |
# To extract the sound from a video and save it as MP3: | |
ffmpeg -i <video.mp4> -vn <sound>.mp3 | |
# To convert frames from a video or GIF into individual numbered images: | |
ffmpeg -i <video.mpg|video.gif> <frame_%d.png> | |
# To combine numbered images (frame_1.jpg, frame_2.jpg, etc) into a video or GIF: | |
ffmpeg -i <frame_%d.jpg> -f image2 <video.mpg|video.gif> | |
# To quickly extract a single frame from a video at time mm:ss and save it as a 128x128 resolution image: |
DevonThink Search operators | |
In the toolbar search field, as well as in both the interactive and the simple web interface, you can use standard and extended Boolean operators, parenthesis, and more to fine tune your search. | |
The syntax of the operators is compatible to DEVONagent and EasyFind, the Finder, Spotlight, common search engines as well as common programming languages such as C, C++, Objective-C, Java, and JavaScript. The complexity of the query is unlimited. | |
Case | |
All terms are case-insensitive. You may, if you wish, use capitalization for proper names in a query, but DEVONthink Pro Office will ignore case in interpreting the query. |
Arq stores backup data in a format similar to that of the open-source version | |
control system 'git'. | |
Content-Addressable Storage | |
--------------------------- | |
At the most basic level, Arq stores "blobs" using the SHA1 hash of the | |
contents as the name, much like git. Because of this, each unique blob is only | |
stored once. If 2 files on your system have the same contents, only 1 copy of | |
the contents will be stored. If the contents of a file change, the SHA1 hash is | |
different and the file is stored as a different blob. |