Skip to content

Instantly share code, notes, and snippets.

View akjprajapaty's full-sized avatar
🇮🇳
Linux, AWS, GCP, Azure, Ansible, Jenkins, Bash & Python, Docker, Kubernetes.

ASHISH KUMAR akjprajapaty

🇮🇳
Linux, AWS, GCP, Azure, Ansible, Jenkins, Bash & Python, Docker, Kubernetes.
View GitHub Profile
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu_jammy_jellyfish.box"
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y apache2 vim git net-tools
SHELL
config.vm.provision "shell", inline: <<-JEKYLL
apt-get update
apt-get install -y apache2 vim git net-tools
@samiujan
samiujan / download_vagrant_direct.txt
Last active May 11, 2022 19:54
Download a virtualbox image directly from vagrant
Problem:
I need to download a Virtualbox imaage using vagrant.
The image is very large (around 5 GB)
However, my internet connection is slow and flaky and I need to be able to resume in case of a break
Solution:
1. Install a download manager like https://www.freedownloadmanager.org/
2. Open "Vagrantfile" and locate the config.vm.box param - in my case, it's:
config.vm.box = "aalkilani/spark-kafka-cassandra-applying-lambda-architecture"
@widdowquinn
widdowquinn / emacs_python_ide.md
Last active May 13, 2025 17:53
Turning Emacs into a Python IDE

Turning emacs into a Python IDE

## Create a new config/initialisation file

Create a user-level initialisation file init.el:

touch .emacs.d/init.el
@rotemtam
rotemtam / add_cname_route53.py
Created August 3, 2016 16:36
Add a CNAME record in Route53 using python boto3
import boto3
client = boto3.client('route53')
def add_cname_record(source, target):
try:
response = client.change_resource_record_sets(
HostedZoneId='<hosted zone id>',
ChangeBatch= {
'Comment': 'add %s -> %s' % (source, target),
@vrypan
vrypan / dyndns53.py
Last active August 12, 2021 21:43
Python script to add/update an A record at amazon area53 DNS service, using current IP. (ie, dyndns replacement)
from area53 import route53
from boto.route53.exception import DNSServerError
import requests
import sys
from datetime import datetime
# Modified from https://markcaudill.me/blog/2012/07/dynamic-route53-dns-updating-with-python/
domain = 'domain.tld'
subdomain = 'subdomain_name'