Skip to content

Instantly share code, notes, and snippets.

View RupGautam's full-sized avatar

Rup Gautam RupGautam

View GitHub Profile
ack
aircrack-ng
ant
apr
apr-util
archey
autoconf
automake
bash
bash-completion2
@RupGautam
RupGautam / icon-gen.sh
Last active November 9, 2015 00:14
Generates required xcode icons for development.
#!/bin/bash
# Auto generates required ios icons including splash images for development.
#______________________________________________________________________________#
# Copyright (C) 2014 Wenva <lvyexuwenfa100@126.com>
#______________________________________________________________________________#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@RupGautam
RupGautam / check.sh
Last active November 3, 2015 05:28
Check Adobe Applications Status
#!/bin/sh
# List any CS5 or higher products.
# Collected from : https://jamfnation.jamfsoftware.com/discussion.html?id=2380
if [ -d /Library/Application\ Support/regid.1986-12.com.adobe/ ] ; then
# Read each each found file and add its product to a list
@RupGautam
RupGautam / index.html
Created October 28, 2015 03:09
VideoJS Responsive Video Player.
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title>BlankPage</title>
<meta
content="width=device-width initial-scale=1.0,maximum-scale=1.0,user-scalable=no"
name="viewport">
<link
href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"
@RupGautam
RupGautam / LEMP
Last active September 21, 2016 18:22
LEMP
#Require: Ubuntu 14.04 or Above.
#nginx
sudo apt-get update
sudo apt-get install nginx
sudo service nginx start
#Timezone
sudo dpkg-reconfigure tzdata
@RupGautam
RupGautam / RTMPDUMP Save Live-streaming
Created August 31, 2015 06:35
Save RTMP Live-Streaming Mac
rtmpdump -v -r "rtmp://example.com:1935/path/file" -s http://example.com/play.swf -b:a 4100k -o test.mp4
@RupGautam
RupGautam / RTMP to M3U8
Created August 31, 2015 06:31
RTMP to M3U8
ffmpeg -re -i "rtmp://example.com/path/file live=1" -hls_time 10 -hls_wrap 7 -hls_list_size 3 -f hls play.m3u8
@RupGautam
RupGautam / hhvm+nginx+wordpress.sh
Created August 30, 2015 20:08
HHVM + Nginx + Wordpress
#!/bin/bash
# Authors: @kernelcurry, @chuckreynolds
# URLs: http://github.com/kernelcurry, http://github.com/chuckreynolds
# Retrieve Ubuntu version name
VERSION=`lsb_release -c -s`
# Variables for colored output
COLOR_INFO='\e[1;34m'
#
# This is an example VCL file for Varnish.
#
# It does not do anything by default, delegating control to the
# builtin VCL. The builtin VCL is called when there is no explicit
# return statement.
#
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/
# and http://varnish-cache.org/trac/wiki/VCLExamples for more examples.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="pragma" content="no-cache">
<meta name="description" content="">
<meta name="author" content="">