Skip to content

Instantly share code, notes, and snippets.

View SpartakusMd's full-sized avatar

Marin Bînzari SpartakusMd

View GitHub Profile
@SpartakusMd
SpartakusMd / build_php.sh
Last active November 20, 2018 16:19
Build a new addition version of PHP + memcached
#!/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 / .gitconfig
Last active August 26, 2016 20:19
Default .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 / Readme.md
Created June 21, 2019 09:48
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
SpartakusMd / README.md
Created August 2, 2019 15:19 — forked from addyosmani/README.md
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
SpartakusMd / Readme.md
Last active November 22, 2022 08:51
Web server backup to S3 of files and databases

Web server backup to S3 of files and databases

Will do a backup of all the databases and for the following folders

  • /etc/
  • /var/www/
  • /var/spool/cron/

Runnning the script regularly