Skip to content

Instantly share code, notes, and snippets.

View viperfx's full-sized avatar

Tharshan Muthulingam viperfx

View GitHub Profile
@viperfx
viperfx / juketube_api.py
Created February 14, 2015 12:36
JukeTube API server
from flask import Flask, jsonify, request, Response, send_file
import youtube_dl
import eyed3
"""
Workflow script: https://workflow.is/workflows/7b80d0daa48847ff867882bed7df8032
Requires python installed with packages Flask, youtube_dl and eyed3 installed through pip
Required FFmpeg for mp3 conversion
"""
class SimpleYDL(youtube_dl.YoutubeDL):
def __init__(self, *args, **kargs):
@viperfx
viperfx / server.sh
Created June 22, 2014 18:48
Linode Server Setup
#!/bin/bash
# APT Packages
apt-get -y update
apt-get install -y aptitude
aptitude install -y unattended-upgrades
aptitude install -y build-essential libssl-dev libexpat1-dev pkg-config
aptitude install -y git-core nginx
aptitude install -y monit
@viperfx
viperfx / gist:7515736
Created November 17, 2013 17:22
mpi segfault
d1021358@labx13:~/Documents/mpi$ mpirun -n 4 -machinefile machines.txt a.out
0.170508
*** glibc detected *** a.out: free(): invalid next size (normal): 0x00000000011cde20 ***
[labx02:29507] *** Process received signal ***
======= Backtrace: =========
[labx02:29507] Signal: Segmentation fault (11)
[labx02:29507] Signal code: Address not mapped (1)
[labx02:29507] Failing at address: 0x3e00000047
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7fd26faedb96]
[labx03:25102] *** Process received signal ***
@viperfx
viperfx / test.txt
Created April 5, 2013 10:56
asdasdasdasasdasd
adsasdasdasdasdasd
as
dasdasdasd
@viperfx
viperfx / test.txt
Created April 5, 2013 10:56
asdasdasdasasdasd
adsasdasdasdasdasd
as
dasdasdasd
@viperfx
viperfx / sxdsdasd.txt
Created April 5, 2013 10:56
asdasdasdasasdasd
adsasdasdasd
@viperfx
viperfx / sxdsdasd
Created April 5, 2013 10:56
asdasdasdasasdasd
adsasdasdasd
@viperfx
viperfx / sxdsdasd
Created April 5, 2013 10:56
asdasdasdas
adsasdasdasd
@viperfx
viperfx / sdsd
Created April 5, 2013 10:56
asdasdasdas
sadadasdasdasdasd
@viperfx
viperfx / gist:5318419
Created April 5, 2013 10:56
asdasdasdas
adsasdasd