Skip to content

Instantly share code, notes, and snippets.

Vladimir AntoscencoVladimir

  • Chisinau, Moldova
Block or report user

Report or block AntoscencoVladimir

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
View install-docker-mint.sh
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 Mar 9, 2018
Install phantomjs/casperjs Linux
View install.sh
#!/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
View ubuntu-php7.2-zts-pthreads
#####################################################################################
# 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 Oct 23, 2017 — forked from mickaelandrieu/install.sh
Install phantomjs/casperjs on GNU/Linux
View install.sh
#!/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
View gist:9f102dae6475f303dd662d2f276918ba
# 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 — forked from Steven-Rose/gist:3943830
VI: Select all + delete, select all + copy
View gist:92a576e6197b827d86b09b39f732aa28
Select all and delete (actually move to buffer)
:%d
Select all and copy to buffer
:%y
Use p to paste the buffer.
View bootstrap-popover-visible.js
const isVisiblePopover = $(el).data('bs.popover').tip().is(':visible'); // true | false
View 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 Apr 1, 2017
Dynamically configured mass virtual hosting
View apache2.4.conf
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
View AddFulltextIndexesCommand.php
<?php
# xxx/yyyBundle/Command/AddFulltextIndexesCommand.php
/**
* AddFulltextIndexesCommand.php
*
* @author Jérémy Hubert <jeremy.hubert@infogroom.fr>
* @since lun. 26 sept. 2011 09:23:53
*/
namespace xxx\yyyBundle\Command;
You can’t perform that action at this time.