Skip to content

Instantly share code, notes, and snippets.

View yashodhank's full-sized avatar
🎯
Manifesting

Yashodhan yashodhank

🎯
Manifesting
View GitHub Profile
#!/bin/bash
#
# AUTHOR: zoite
# DATE: 02.29.2012
# PURPOSE: An automated migration script to do a 1:1 server migration
# completey independent of drive size and configuration
# Note: Supports software (mdadm) RAID
#
exec 3> /dev/tty
#!/bin/bash
#Plesk to cPanel
echo ""
echo "Plesk To Cpanel Migration Script \n=======================================\n"
echo "Make sure that the cPanel user has shell access enabled and an sshe key is setup for the same. \nAdd the private key in the location where the script is executing with name key\n=================================================================================================\n"
echo "Before executing this script, create three files in the directory where your are executing the script \nThe file names should be 'dblist', 'emaillist', 'sdomainlist' dblist \nshould contain the name of all dbs, emaillist should contain all the email account without @ and domain name, \nsdomain list should contain the subdomain name individual names should be written in sperate lines\n=====================================================================\n\n"
echo "Enter the domain domain name in the source server:"
read d;
echo "Enter the domain domain name in the destination server:"
read d2;
@yashodhank
yashodhank / gist:742edb5d5cccfaef7fb5c6aa4a82228f
Created July 20, 2018 19:35 — forked from maciakl/gist:5033614
Windows batch files - date and time formatting:
@echo off
rem System provided date and time
echo %DATE%
echo %TIME%
rem Capture Hour
set hour=%time:~0,2%
rem Remove leading space if single digit
if "%hour:~0,1%" == " " set hour=0%hour:~1,1%
@yashodhank
yashodhank / gist:a9364520a77acc0069e6a38515966984
Created February 16, 2018 05:46 — forked from afeld/gist:4952991
good APIs for mashups
@yashodhank
yashodhank / unbrew.rb
Created October 10, 2017 00:39 — forked from SteveBenner/unbrew.rb
Homebrew uninstall script
#!/usr/bin/env ruby
#
# CLI tool for locating and removing a Homebrew installation
# http://brew.sh/
#
# Copyright (C) 2014 Stephen C. Benner
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@yashodhank
yashodhank / install-docker.sh
Created October 3, 2017 08:56 — forked from frgomes/install-docker.sh
Debian - install docker in Debian Jessie
#!/bin/bash
# compiled from https://docs.docker.com/engine/installation/linux/debian/#/debian-jessie-80-64-bit
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install apt-transport-https ca-certificates -y
sudo sh -c "echo deb https://apt.dockerproject.org/repo debian-jessie main > /etc/apt/sources.list.d/docker.list"
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
@yashodhank
yashodhank / Python3, Pip3, Virtualenv and Virtualenvwrapper Setup
Created October 2, 2017 20:18 — forked from IamAdiSri/Python3, Pip3, Virtualenv and Virtualenvwrapper Setup
Setting up and using Python3, Pip3, Virtualenv (for Python3) and Virtualenvwrapper (for Python3)
First install pip for Python2. Download the get-pip.py file from https://bootstrap.pypa.io/get-pip.py
$ cd <download location>
$ sudo -H ./get-pip.py
Use pip to install pip3
$ sudo -H pip install pip3
Installing pip3 also installs Python3
To run Python3
$ python3
@yashodhank
yashodhank / disposable-email-provider-domains
Created October 1, 2017 00:43 — forked from lcherone/disposable-email-provider-domains
List of disposable email provider domains
0815.ru
0815.ru0clickemail.com
0815.ry
0815.su
0845.ru
0clickemail.com
0-mail.com
0wnd.net
0wnd.org
10mail.com