Skip to content

Instantly share code, notes, and snippets.

{
"linux-x64-prod": {
"readme": "Second release",
"update": "https://github.com/exzeo/choreographer-console/blob/poc/dists/dist/poc-dists-electron-1.0.0-x86_64.AppImage",
"install": "https://github.com/exzeo/choreographer-console/blob/poc/dists/dist/poc-dists-electron-1.0.0-x86_64.AppImage",
"version": "1.0.0"
}
}
@dhruvr
dhruvr / Gulpfile.js
Created February 21, 2017 13:56 — forked from webdesserts/Gulpfile.js
Automatically reload your node.js app on file change with Gulp (https://github.com/wearefractal/gulp).
// NOTE: I previously suggested doing this through Grunt, but had plenty of problems with
// my set up. Grunt did some weird things with scope, and I ended up using nodemon. This
// setup is now using Gulp. It works exactly how I expect it to and is WAY more concise.
var gulp = require('gulp'),
spawn = require('child_process').spawn,
node;
/**
* $ gulp server
* description: launch the server. If there's a server already running, kill it.
@dhruvr
dhruvr / Vagrant provision block
Created May 21, 2017 11:33 — forked from tinkerware/Vagrant provision block
Install Latest Java 7 and Java 8 on Ubuntu 14.04 LTS
config.vm.provision "shell", inline: <<-SHELL
apt-get -y -q update
apt-get -y -q upgrade
apt-get -y -q install software-properties-common htop
add-apt-repository ppa:webupd8team/java
apt-get -y -q update
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
apt-get -y -q install oracle-java8-installer
apt-get -y -q install oracle-java7-installer

To get list fo all queues

rabbitmqctl list_queues
FFmpeg has been removed from Ubuntu 14.04 and was replaced by Libav. This decision has been reversed so that FFmpeg is available now in Ubuntu 15.04 again, but there is still no official package for 14.04. In this tutorial, I will show you how to install FFmpeg from mc3man ppa. Add the mc3man ppa:
sudo add-apt-repository ppa:mc3man/trusty-media
And confirm the following message by pressing <enter>:
Also note that with apt-get a sudo apt-get dist-upgrade is needed for initial setup & with some package upgrades
More info: https://launchpad.net/~mc3man/+archive/ubuntu/trusty-media
Press [ENTER] to continue or ctrl-c to cancel adding it
Update the package list.
@dhruvr
dhruvr / introrx.md
Created June 30, 2017 07:24 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@dhruvr
dhruvr / gist:04f3ed4a3529a79fab5f12f2182f4695
Created July 4, 2017 14:35 — forked from Frozenfire92/gist:3627e38dc47ca581d6d024c14c1cf4a9
Install Scala and SBT using apt-get on Ubuntu 16.04 or any Debian derivative using apt-get
## Java
sudo apt-get update
sudo apt-get install default-jdk
## Scala
sudo apt-get remove scala-library scala
sudo wget http://scala-lang.org/files/archive/scala-2.12.1.deb
sudo dpkg -i scala-2.12.1.deb
sudo apt-get update
sudo apt-get install scala
@dhruvr
dhruvr / redis-no-persistence.conf
Created November 16, 2017 06:36 — forked from ndelitski/redis-no-persistence.conf
redis without persistence config
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
# 1gb => 1024*1024*1024 bytes
#
@dhruvr
dhruvr / redis-no-persistence.conf
Created November 16, 2017 06:36 — forked from ndelitski/redis-no-persistence.conf
redis without persistence config
# Note on units: when memory size is needed, it is possible to specify
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes
# 1mb => 1024*1024 bytes
# 1g => 1000000000 bytes
# 1gb => 1024*1024*1024 bytes
#