Skip to content

Instantly share code, notes, and snippets.

@tmehlinger
tmehlinger / run.sh
Last active February 21, 2023 12:02
gstreamer RTP to RTMP
#!/bin/bash
# tested on Ubuntu 16.04
apt-get install -y \
gstreamer1.0-libav \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-tools
@ketanhwr
ketanhwr / icpc-rank-notifier.py
Created May 24, 2017 16:05
Gives a notification along with rank whenever an Indian team solves a new problem in ICPC World Finals!
from bs4 import BeautifulSoup
import requests
import pynotify
import time
def sendmessage(title, message):
pynotify.init("Test")
notice = pynotify.Notification(title, message)
notice.show()
return
@abhikandoi2000
abhikandoi2000 / ama-alumni-iitr.md
Last active May 26, 2024 13:26
We are alumni of IIT Roorkee - ask us anything

If you are not currently studying at IIT Roorkee, this post is not for you.

Hi. My name is Abhishek Kandoi and I'm an alumnus of IIT Roorkee.

I'm doing a little experiment. I'm trying to reduce the friction that you juniors face while reaching out to your alumni. I want you guys to know that we(your alumni) would be glad to respond to your genuine doubts. This is something I wish had existed while I was in college. There is a lot of bad advice that accumulates over time - most of the good advice goes away with the passouts. Let's change this.

For this, I reached out to a couple of my close friends. Apparently they're all happy to help and think this is a good idea. Below is a brief description for each of them.

@asutoshpalai
asutoshpalai / go_back_n.c
Last active August 5, 2016 15:57
Sliding window protocol
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <signal.h>
#include <time.h>
#include <fcntl.h>
#include <string.h>
#include <stdio.h>
#define PACKET_DROP_PROBABILITY 4 // Inverse of the probability
@leemeichin
leemeichin / README.md
Created April 12, 2012 12:02
Modulo Liquid filter for Jekyll

Modulo Liquid filter for Jekyll

Got nested columns in your grid-based Jekyll site?

Wondered why you didn't have a way to calculate the modulo inside your posts loop to open and close your 'rows' containing those nested columns?

Add this filter to your _plugins directory, and use it like so:

{{ x | mod:y }}