Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Working from home

Anil Wadghule anildigital

:octocat:
Working from home
View GitHub Profile
@anildigital
anildigital / run_languagetool_with_docker.md
Created Feb 24, 2021
How to replace Grammarly with LanguageTool for free!
View run_languagetool_with_docker.md

Steps

Install LanguageTool Docker container

docker run -d --rm -p 8010:8010 erikvl87/languagetool

Install LanguageTool browser extension

@anildigital
anildigital / install_janus.sh
Created Apr 7, 2017
Install Janus WebRTC Gateway on macOS
View install_janus.sh
brew install jansson libnice openssl libusrsctp libmicrohttpd libwebsockets cmake rabbitmq-c sofia-sip opus libogg glib pkg-config gengetopt
wget https://github.com/cisco/libsrtp/archive/v1.5.4.tar.gz
tar xvf v1.5.4.tar.gz
cd libsrtp-1.5.4
./configure --prefix=/usr/local/libsrtp
make
sudo make install
git clone git@github.com:meetecho/janus-gateway.git
@anildigital
anildigital / gist:862675ec1b7bccabc311
Created Jul 26, 2014
Remove dangling docker images
View gist:862675ec1b7bccabc311
docker rmi $(docker images -q -f dangling=true)
@anildigital
anildigital / README
Created May 4, 2020 — forked from mremond/README
Phoenix Elixir framework with ejabberd - Tutorial
View README
Please read original blog post for reference:
http://blog.process-one.net/embedding-ejabberd-into-an-elixir-phoenix-web-application/
@anildigital
anildigital / cleanup_swap.md
Last active Apr 27, 2020
Cleanup swap space on macOS
View cleanup_swap.md

To see current swap usage

sysctl -a | grep swap

Use only when when your system is in a very bad shape

$ sudo pkill -HUP -u _windowserver 
View DefaultKeyBinding.dict
{
"\UF729" = moveToBeginningOfParagraph:; // home
"\UF72B" = moveToEndOfParagraph:; // end
"$\UF729" = moveToBeginningOfParagraphAndModifySelection:; // shift-home
"$\UF72B" = moveToEndOfParagraphAndModifySelection:; // shift-end
// Emacs keybindings
"^ " = "setMark:";
"~d" = "deleteWordForward:";
"~w" = "copy:"; /* M-w */
"^w" = "deleteWordBackward:";
View janus-packer.json
{
"variables": {
"aws_access_key": "",
"aws_secret_key": "",
"region": "us-east-1"
},
"builders": [
{
"access_key": "{{user `aws_access_key`}}",
"ami_name": "packer-linux-janus-{{timestamp}}",
View List of companies using Ruby on Rails.md

List of companies using Ruby on Rails

  • figma.com
  • tesla.com (Tesla motors)
  • meetup.com
  • dribbble.com
  • fiverr.com
  • basecamp.com
  • notonthehighstreet.com
  • goodreads.com
@anildigital
anildigital / dynamic_supervisor_example.ex
Created Feb 18, 2018
Simple Example for Dynamic Supervisor
View dynamic_supervisor_example.ex
defmodule Worker1 do
def start_link() do
Task.start_link(fn ->
Stream.repeatedly(fn -> :rand.uniform(1000) end)
|> Stream.each(&:timer.sleep/1)
|> Stream.each(fn _ -> IO.puts("worker 1") end)
|> Stream.run()
end)
end
end
@anildigital
anildigital / client.js
Created Apr 9, 2011
Twitter streaming API example twitter-node and socket.io
View client.js
<!DOCTYPE HTML>
<head>
<title>Codesnippit NodeJS Twitter Tracker Client</title>
</head>
<body>
<ul></ul>
<script>
(function() {
var script = document.createElement("script");
script.src = "http://code.jquery.com/jquery.min.js";