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 / README.md
Created Aug 2, 2019 — forked from addyosmani/README.md
108 byte CSS Layout Debugger
View README.md

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
SpartakusMd / Readme.md
Created Jun 21, 2019
P5 *Codding Flashmob* 2019.06.21
View Readme.md

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
SpartakusMd / build_php.sh
Last active Nov 20, 2018
Build a new addition version of PHP + memcached
View build_php.sh
#!/bin/bash
# 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 - build_php.sh 5.6.18
@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 / 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 / jiraTimelogReport.js
Last active Aug 26, 2016
jiraTimelogReport.js
View jiraTimelogReport.js
var s=document.createElement('script');
s.setAttribute('src','https://code.jquery.com/jquery.js');
document.getElementsByTagName('body')[0].appendChild(s);
var issues = {};
(function($){
var issuetable = jQuery('#issuetable');
issuetable.find('tbody > .issuerow').each(function() {
var $row = jQuery(this);
@SpartakusMd
SpartakusMd / .gitconfig
Last active Aug 26, 2016
Default .gitconfig
View .gitconfig
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
@SpartakusMd
SpartakusMd / app.php
Created May 26, 2016
Replacement for default Symfony2 app.php
View app.php
<?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
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.