Skip to content

Instantly share code, notes, and snippets.

@RupGautam
RupGautam / remove-lamp.txt
Last active August 31, 2015 06:40
Remove LAMPSTACK Ubuntu
apt-get purge apache mysql apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common \
libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libnet-daemon-perl \
libplrpc-perl libpq5 mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 php5-common \
php5-mysql
apt-get autoclean
apt-get autoremove
@RupGautam
RupGautam / lemp-ubuntu.sh
Last active October 21, 2016 21:18
Installing LEMP stack on Ubuntu 14.04
#!/bin/bash
echo '[quick-lemp] LEMP Stack Installation'
echo 'Configured for Ubuntu 14.04.'
echo 'Installs Nginx, MariaDB, PHP-FPM, and uWSGI.'
echo
read -p 'Do you want to continue? [y/N] ' -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo 'Exiting...'
exit 1
<!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="">
#
# 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.
@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'
@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 / 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 / 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 / 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 / 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