Skip to content

Instantly share code, notes, and snippets.

View athulmurali's full-sized avatar
🎯

Athul Muralidharan athulmurali

🎯
View GitHub Profile
@athulmurali
athulmurali / Connection.java
Last active October 21, 2018 21:01 — forked from jasoet/gist:3843797
Database Connection Singleton
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.secondstack.db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
@athulmurali
athulmurali / signal.c
Created February 8, 2018 21:07 — forked from aspyct/signal.c
Unix signal handling example in C, SIGINT, SIGALRM, SIGHUP...
/**
* More info?
* a.dotreppe@aspyct.org
* http://aspyct.org
* @aspyct (twitter)
*
* Hope it helps :)
*/
#include <stdio.h>
@athulmurali
athulmurali / merge_subtitles_with_video.py
Created February 27, 2017 10:40 — forked from altermarkive/merge_subtitles_with_video.py
Python script for merging video files (AVI, MP4, MKV) with subtitles (SRT) using ffmpeg (on Windows it will also handle font configuration)
# Have you ever saw this error while trying to merge/embed subtitles
# into a video file on Windows?
#
# Fontconfig error: Cannot load default config file
# [Parsed_subtitles_0 @ 0000000002bf1ee0] No usable fontconfig configuration # file
# found, using fallback.
# Fontconfig error: Cannot load default config file
#
# This scripts merges subtitles (if present) and transcodes video files
# to H.264 mp4 video files with similar quality level.