Skip to content

Instantly share code, notes, and snippets.

{"lens": {"monitoring_agent": "grafana_agent"}}
@rajat404
rajat404 / space.html
Last active April 30, 2023 22:46
Hugo shortcode for adding `N` spaces in your markdown
{{ range $_, $__ := ( .Get 0 | seq) }} {{ end }}
<!-- For detailed usage refer to: https://www.rajat404.com/blog/hugo-shortcode-space -->
{"run_list": ["recipe[foundation@1.1.8]", "recipe[kafka_mirror_maker@1.6.3]"]}
{"telegraf":{"influx_enabled":"false"}}
@rajat404
rajat404 / download_spotify.py
Last active September 8, 2022 16:05
Script to download songs from Spotify
#!/usr/bin/env python
# Based on: https://github.com/SathyaBhat/spotify-dl
# Please install spotipy, youtube_dl before running this
import os
import json
import spotipy
import spotipy.util as util
youtube_options = "--extract-audio --audio-format mp3 --no-playlist --no-overwrites --no-part --title --audio-quality 0"

Checklist for PyCon India 2017

A list of suggestions to improve PyCon India. To be used as a checklist for next year.

Disclaimer: All things mentioned is this post, are the opinions/suggestions/views of the author, and in no way depict/endorse the views of any group/community.

Tshirts

  • Make 'Tshirt size' a mandatory field in the explara form. Also mention that tshirt sizes won't be changed later, for any reason whatsoever.
  • Request all speakers/sponsors for their respective tshirt sizes beforehand on mail.
  • Make 3 to 4 queues for Tshirt distribution. DONOT make queues based on names; that approach doesn't work with Tshirts. Each queue should be entirely independent, and volunteers will have a complete list of names.
#! /bin/bash
# Installs Tmux 2.2 on Ubuntu 14.04
sudo apt-get install -y libutempter0
echo "Downloading tmux 2.2"
FILE=`mktemp`
URL="http://ftp.us.debian.org/debian/pool/main/t/tmux/tmux_2.2-1~bpo8+1_amd64.deb"
wget $URL -O $FILE
echo "Installing tmux 2.2"
sudo dpkg -i $FILE
@rajat404
rajat404 / logo-making-competition.md
Last active August 29, 2015 17:44
Details of the Logo Making Competition by PyDelhi [ http://pydelhi.org/ ]

#Logo Making Competition

Hi folks,

This goes out to the artists in our midst, we are looking for a Logo for our first PyDelhi Conference. PyDelhi Conference is an annual conference with experts from various fields giving talks on their respective subjects.

Since PyDelhi Conference is a volunteer driven event, it would be apt if the new logo comes from the community itself. Thus, we are organising a Logo Making Competition.

The agenda is simple, make a logo for 'PyDelhi Conference'. The logo should relate to Python. Be as creative as you can.

{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@rajat404
rajat404 / phase2
Last active August 29, 2015 14:13
dedup project-phase2
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{