Skip to content

Instantly share code, notes, and snippets.

View virajkanwade's full-sized avatar

Viraj Kanwade virajkanwade

View GitHub Profile
@virajkanwade
virajkanwade / install-redis-virtualenv
Last active September 22, 2018 23:52
Script to install redis inside virtualenv. Adds a wrapper script redis-server-ve. Downloads stable version by default. Else you can pass the version as an argument.
#!/bin/bash
########################################
# AUTHOR: Viraj Kanwade #
# http://viraj-workstuff.blogspot.com/ #
########################################
# Inspired from https://gist.github.com/pterk/3923177
set -e
@virajkanwade
virajkanwade / get-celery-initd
Last active August 29, 2015 14:26
Script to download init.d scripts (celeryd and celerybeat) for your celery version. Also pass your app name to get the files as celeryd-<APP_NAME> and celerybeat-<APP_NAME>
#!/bin/bash
########################################
# AUTHOR: Viraj Kanwade #
# http://viraj-workstuff.blogspot.com/ #
########################################
set -e
CELERYD_INITD=celeryd
#EXTM3U
#EXTINF:-1,9x Tashan
rtsp://46.249.213.93/broadcast/9xmtashan-tablet.3gp
#EXTINF:-1,asianet-middle-east-live/
rtmp://$OPT:rtmp-raw=rtmp://50.7.175.251/base2 playpath=asia1.stream swfUrl=http://www.turbotv.in/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf live=1 pageUrl=http://www.turbotv.in//HasBahCa/HasBahCa_IPTV.php
#EXTINF:-1,asianet-movies-live/
rtmp://$OPT:rtmp-raw=rtmp://50.7.175.251/base2 playpath=asia15.stream swfUrl=http://www.turbotv.in/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf live=1 pageUrl=http://www.turbotv.in//HasBahCa/HasBahCa_IPTV.php
#EXTINF:-1,asianet-news-live/
rtmp://$OPT:rtmp-raw=rtmp://50.7.175.251/base2 playpath=asia0.stream swfUrl=http://www.turbotv.in/wp-content/uploads/jw-player-plugin-for-wordpress/player/player.swf live=1 pageUrl=http://www.turbotv.in//HasBahCa/HasBahCa_IPTV.php
#EXTINF:-1,B4U
@virajkanwade
virajkanwade / git_reset_branch.sh
Last active August 31, 2015 15:31
git_reset_branch.sh
# DO NOT MAKE THIS EXECUTABLE
# USER COULD LOSE CODE
# SHOULD ALWAYS BE MANUALLY RUN AS "bash git_reset_branch.sh"
# LICENSE: GPL3
# AUTHOR: Viraj Kanwade
# URL: https://github.com/virajkanwade
set -e
# BRNCH="$(git branch | grep '^\*' | awk '{ print $2 }')"
@virajkanwade
virajkanwade / mouse_select.tmux.conf
Created August 31, 2015 15:42
Add the lines to .tmux.conf to enable switching windows/ panes with mouse
set -g mode-mouse on
set -g mouse-select-window on
set -g mouse-select-pane on
@virajkanwade
virajkanwade / NewsIPTV.m3u
Last active February 5, 2016 16:18
News IPTV
#EXTM3U
#EXTINF:-1,DD News
http://164.100.49.24:8080/hls-live/livepkgr/_definst_/ddnewslive.m3u8
#EXTINF:-1,Zee News
http://zeeapp-lh.akamaihd.net/i/zeenews_1@336222/master.m3u8?hdnea=st=1454688268~exp=1454689768~acl=/*~hmac=ea855053b89176e31b9746d822360e9f39c81a70b8898e14f92520298cb64f7f
@virajkanwade
virajkanwade / DisplayProfileSwitcher.scpt
Last active October 23, 2016 07:02
Quick display profile switcher for Mac (tested on el capitan)
-- Author: Viraj Kanwade
-- Initial inspiration was iOS 'Night Shift' like feature on Mac
-- Hacked together from various code snippets on forums
-- Tested only on El Capitan for main display
(*
Pre-steps:
Create display profiles
System Preferences > Dispalys > Color
@virajkanwade
virajkanwade / linuxium-create-android-sdcard-split
Created January 25, 2018 22:27
linuxium-create-android-sdcard-split
#!/bin/bash
# Linuxium's script to create a bootable SD card with Android for RK3188 devices
SDCARD="/dev/sdc"
SOURCE_DIR='~'
WORKING_DIR=`pwd`
ANDROID_DIR=${WORKING_DIR}/Android
IMAGE_DIR=${ANDROID_DIR}/Image
@virajkanwade
virajkanwade / ls_build.sh
Created October 27, 2018 17:48
ls -R Build
#!/bin/bash
pwd
ls -R Build
@virajkanwade
virajkanwade / requirements_mac.txt
Created April 18, 2020 23:35
Spyder-ide requirements_mac.txt - Created this gist since spyder is not interested https://github.com/spyder-ide/spyder/pull/12387
# We can not refer to an environment.yml file from another
# So to get performant launches on mybinder.org, we have copied
# the contents of this file to binder/environment.yml. If you
# make changes here, please copy them over there too.
applaunchservices >=0.1.7
atomicwrites >=1.2.0
chardet >=2.0.0
cloudpickle >=0.5.0
diff-match-patch >=20181111
intervaltree