Skip to content

Instantly share code, notes, and snippets.

Marin Bînzari SpartakusMd

Block or report user

Report or block SpartakusMd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@SpartakusMd
SpartakusMd / vhost.sh
Last active Jan 23, 2017
VHost generator
View vhost.sh
#!/bin/bash
# Colors
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
undred='\e[4;31m' # Red
undgrn='\e[4;32m' # Green
undylw='\e[4;33m' # Yellow
@SpartakusMd
SpartakusMd / template
Last active Aug 29, 2015
VHost template
View template
<VirtualHost *:80>
ServerName template.url
ServerAlias www.template.url
ServerAdmin template.email
DocumentRoot template.webroot
<Directory template.webroot/>
Options +FollowSymLinks
AllowOverride All
@SpartakusMd
SpartakusMd / backup.sh
Last active Dec 24, 2016
Wordpress Backup
View backup.sh
#!/bin/bash
# Usage
# backup.sh path-to-wordpress-folder
WPDIR=${1:-www}
echo "Making files backup"
CurrentDir=${PWD##*/}
FILENAME="$CurrentDir ($(date '+%F'))"
@SpartakusMd
SpartakusMd / .gitignore
Last active May 17, 2016
.gitignore for Wordpress
View .gitignore
### WordPress template
*.log
.htaccess
.htpasswd
/license.txt
/readme.html
/robots.txt
sitemap.xml
sitemap.xml.gz
wp-config.php
@SpartakusMd
SpartakusMd / wp-plugins.js
Last active May 17, 2016
Print Wordpress plugin list with their versions & download them
View wp-plugins.js
(function($) {
var timeout = 0;
var plugins = [];
$('#the-list').find('tr').each(function() {
if($(this).is('.plugin-update-tr')) {
plugins[plugins.length - 1].update = ($(this).find('.update-message').text().match(/(.* version )([0-9\.]+)(.*)/) || [])[2]
} else {
var slug = $(this).data('slug');
var p = {};
p.id = slug ? slug : $(this).attr('id');
You can’t perform that action at this time.