Skip to content

Instantly share code, notes, and snippets.

View sagarrakshe's full-sized avatar
🎯
Focusing

Sagar Rakshe sagarrakshe

🎯
Focusing
View GitHub Profile
@rohitkothari
rohitkothari / ParameterizeHashicorpNomadJob.md
Created July 15, 2017 16:02
How to parameterize a Hashicorp's Nomad Job for user-defined variables?

How to parameterize a Hashicorp's Nomad Job for user-defined variables?

Description

This sample Nomad job attempts to clone a github repository from a github account, and then perform ls command to verify if it downloaded.

However, the cool thing is, it uses parameterized construct to parameterize the repository name so I can re-use this nomad job to clone any repository at runtime.

Motivation for writing

@ericelliott
ericelliott / essential-javascript-links.md
Last active March 22, 2025 17:28
Essential JavaScript Links
@pinge
pinge / ubuntu_14.04_macbook_pro_retina_15_inch_mid_2014.md
Last active March 10, 2021 03:05
How to install Ubuntu 14.04.1 LTS on a MacBook Pro Retina 15" Mid 2014 (11,3)
@dctrwatson
dctrwatson / nginx.conf
Last active April 28, 2024 10:26
Caching PyPi packages locally with nginx
user www-data;
worker_processes 4;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@quiver
quiver / new_task.py
Created October 6, 2012 12:15
rabbitmq : dead letter exchange example with python/pika
#!/usr/bin/env python
# http://www.rabbitmq.com/tutorials/tutorial-two-python.html
import pika
import sys
connection = pika.BlockingConnection(pika.ConnectionParameters(
host='localhost'))
channel = connection.channel()
message = ' '.join(sys.argv[1:]) or "Hello World!"
@sagarrakshe
sagarrakshe / InternetUp-InternetDown
Last active October 8, 2015 03:29
Build your own command to connect/disconnect to mobile broadband.
nmcli - is a command tool for controlling Network Manager.
1. Create a file called Internet-up.
2. Copy the following line in it
lsusb | (grep -i <string identifying your mobile> &) && (nmcli con up id "<your connection name>" ) && ((ps -el | grep -i firefox ) || firefox &)
[eg. lsusb | (grep -i nokia &) && (nmcli con up id "Idea Mobile" ) && ((ps -el | grep -i firefox ) || firefox &)]