Skip to content

Instantly share code, notes, and snippets.

View AntoscencoVladimir's full-sized avatar
💭
Deja vu

Vladimir AntoscencoVladimir

💭
Deja vu
  • Chisinau, Moldova
View GitHub Profile
@AntoscencoVladimir
AntoscencoVladimir / install-docker-mint.sh
Created June 12, 2018 10:40 — forked from Simplesmente/install-docker-mint.sh
Install docker Linux Mint 18.2
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates -y
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo deb https://apt.dockerproject.org/repo ubuntu-xenial main >> /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get purge lxc-docker
sudo apt-get install linux-image-extra-$(uname -r) -y
sudo apt-get install docker-engine cgroup-lite apparmor -y
sudo usermod -a -G docker $USER
sudo service docker start
@AntoscencoVladimir
AntoscencoVladimir / install.sh
Last active March 9, 2018 20:00
Install phantomjs/casperjs Linux
#!/bin/bash
# `` sudo sh install.sh ``
echo Phantomjs
cd /usr/local/share
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
sudo tar -xvf phantomjs-2.1.1-linux-x86_64.tar.bz2
sudo mv phantomjs-2.1.1-linux-x86_64 phantomjs-2.1.1
sudo ln -s /usr/local/share/phantomjs-2.1.1/ /usr/local/share/phantomjs
@AntoscencoVladimir
AntoscencoVladimir / ubuntu-php7.2-zts-pthreads
Created February 24, 2018 17:02 — forked from 0xfff/ubuntu-php7.2-zts-pthreads
Installing php-zts on ubuntu 16.04
#####################################################################################
# INSTALL isolated PHP 7.2 ZTS (Thread-safe) with pthreads on Ubuntu 14.04 &16.04 ###
#####################################################################################
0) Possible dependencies
sudo apt-get install libxml2-dev
1) Install necessary bison version
wget http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb
@AntoscencoVladimir
AntoscencoVladimir / install.sh
Created October 23, 2017 15:26 — forked from mickaelandrieu/install.sh
Install phantomjs/casperjs on GNU/Linux
#!/bin/bash
# `` sudo sh install.sh ``
# Developement environnement
# Important: use 'i686' instead of 'x86_64'
#
# For stable environnement see also : https://gist.github.com/mickaelandrieu/6312724
echo Installation de Phantomjs
cd /usr/local/share
sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2
@AntoscencoVladimir
AntoscencoVladimir / gist:9f102dae6475f303dd662d2f276918ba
Created June 13, 2017 00:55
Install docker Linux mint 18 Cinnamon
# First import the GPG key
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 \
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
# Next, point the package manager to the official Docker repository
sudo apt-add-repository 'deb https://apt.dockerproject.org/repo ubuntu-xenial main'
# Update the package database
@AntoscencoVladimir
AntoscencoVladimir / gist:92a576e6197b827d86b09b39f732aa28
Created May 25, 2017 14:54 — forked from Steven-Rose/gist:3943830
VI: Select all + delete, select all + copy
Select all and delete (actually move to buffer)
:%d
Select all and copy to buffer
:%y
Use p to paste the buffer.
@AntoscencoVladimir
AntoscencoVladimir / bootstrap-popover-visible.js
Created May 14, 2017 13:59
If Bootstrap popover is visible
const isVisiblePopover = $(el).data('bs.popover').tip().is(':visible'); // true | false
@AntoscencoVladimir
AntoscencoVladimir / Gulp multiple servers
Last active April 6, 2017 07:14
Gulp multiple servers
const browserSync = require('browser-sync'),
bs1 = browserSync.create(),
bs2 = browserSync.create(),
bs3 = browserSync.create();
gulp.task('browser-sync', function () {
bs1.init({
server: "app",
port: 3010,
@AntoscencoVladimir
AntoscencoVladimir / apache2.4.conf
Last active April 1, 2017 23:26
Dynamically configured mass virtual hosting
UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
<VirtualHost *:80>
# Store sites in yourPath/sites/others
# example.loc , example2.loc etc.
ServerAlias *.loc
@AntoscencoVladimir
AntoscencoVladimir / AddFulltextIndexesCommand.php
Created February 2, 2017 14:39 — forked from yobud/AddFulltextIndexesCommand.php
MATCH AGAINST for Doctrine DQL queries
<?php
# xxx/yyyBundle/Command/AddFulltextIndexesCommand.php
/**
* AddFulltextIndexesCommand.php
*
* @author Jérémy Hubert <[email protected]>
* @since lun. 26 sept. 2011 09:23:53
*/
namespace xxx\yyyBundle\Command;