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 / .my.cnf
Last active Apr 20, 2020
Web server backup to S3 of files and databases
View .my.cnf
user = <user>
password = <password>
host = <host>
SpartakusMd /
Created Aug 2, 2019 — forked from addyosmani/
108 byte CSS Layout Debugger

CSS Layout Debugger

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

One-line version to paste in your DevTools

Use $$ if your browser aliases it:

~ 108 byte version

SpartakusMd /
Created Jun 21, 2019
P5 *Codding Flashmob* 2019.06.21

Hello dear P5 Mind,

Let's start a new P5 adventure, and call it simple P5 Codding Flashmob. There are 4 basic 'principles': 1. Fast result values most 2. Codding is learning 3. Being second means being better than third 4. Production is never impacted

'Event axioms': 1. It is a Friday event

SpartakusMd / .gitconfig
Last active Aug 26, 2016
Default .gitconfig
View .gitconfig
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
SpartakusMd / app.php
Created May 26, 2016
Replacement for default Symfony2 app.php
View app.php
use Symfony\Component\Debug\Debug;
use Symfony\Component\HttpFoundation\Request;
* @var Composer\Autoload\ClassLoader
$loader = require __DIR__ . '/../app/autoload.php';
// Use APC for autoloading to improve performance.
SpartakusMd /
Last active Nov 20, 2018
Build a new addition version of PHP + memcached
# Before using the script, run :
# sudo apt-get install build-essential libcurl4-openssl-dev libc-client2007e-dev
# sudo apt-get install libsqlite3-dev sqlite3 mysql-server libmysqlclient-dev libreadline-dev libzip-dev libxslt1-dev libedit-dev
# sudo apt-get install libicu-dev libmcrypt-dev libmhash-dev libpcre3-dev libjpeg-dev libpng12-dev libfreetype6-dev libbz2-dev libxpm-dev
# Sources : /usr/local/src/php5-build
# usage - 5.6.18
SpartakusMd / jiraTimelogReport.js
Last active Aug 26, 2016
View jiraTimelogReport.js
var s=document.createElement('script');
var issues = {};
var issuetable = jQuery('#issuetable');
issuetable.find('tbody > .issuerow').each(function() {
var $row = jQuery(this);
SpartakusMd / wp-disable-update.php
Created Dec 7, 2015
Disable Wordpress plugin update (ex: WPPUM)
View wp-disable-update.php
function filter_plugin_updates( $value ) {
unset( $value->response['wp-popup-magic/wp-popup-magic.php'] );
return $value;
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );
SpartakusMd / .maintenance
Created Nov 3, 2015
Enable Worpress Maintenance mode
View .maintenance
$upgrading = time() + 100;
SpartakusMd / ajax_queue.js
Created Aug 5, 2015
Run queued AJAX requests
View ajax_queue.js
$(function () {
//setup an array of AJAX options, each object is an index that will specify information for a single AJAX request
var ajaxes = [{ url : '<url>', dataType : 'json' }, { url : '<url2>', dataType : 'xml' }],
current = 0;
//declare your function to run AJAX requests
function do_ajax() {
//check to make sure there are more requests to make
if (current < ajaxes.length) {
You can’t perform that action at this time.