Skip to content

Instantly share code, notes, and snippets.

View iamnnort's full-sized avatar

Nikita Pavets iamnnort

View GitHub Profile
1. Open /xampp/apache/conf/extra/httpd-vhosts.conf
2. Add our host:
<VirtualHost *:80>
ServerAdmin admin@mysite.com
DocumentRoot "D:/xampp/htdocs/mysite/public"
ServerName mysite
ServerAlias www.mysite
<Directory "D:/xampp/htdocs/mysite/public">
AllowOverride All
Require all granted
1) Install Apache:
sudo apt-get install apache2 - install
sudo service apache2 restart - restart demon
sudo a2enmod <mod-name> - add mode from /etc/apache2/mods-available
sudo a2enconf <config-name> - add config from /etc/apache2/conf-available
sudo a2ensite <site-name> - add vhost from etc/apache2/sites-available
2) Add vhost to apache:
open /etc/hosts and add "127.0.0.1 host1.server1"
open /etc/apache2/sites-available/ and add
<VirtualHost *:80>
sudo npm install selenium-standalone@latest -g
sudo selenium-standalone install
sudo selenium-standalone start
$csv_strings = array_map('str_getcsv', file('./cut_2c.csv'));
$csv_string = array();
foreach ($csv_strings as $csv) {
if($csv['1']){
array_push($csv_string, $csv['1']);
}
}
$csv_line = implode($csv_string, ',');
1) open stype chat
2) /dumpmsnp
3) /msnp24
4) restart skype
ln -s /var/www/public /var/www/public_html
php artisan route:cache
php artisan route:clear
import React from 'react'
import { Route, IndexRedirect } from 'react-router'
import App from './containers/App'
import List from './components/List'
import Video from './components/Video'
import NotFound from './components/NotFound'
export const routes = (
<div>
@iamnnort
iamnnort / Magento: Event sales_order_place_before
Last active February 13, 2017 07:47
Magento: Event sales_order_place_before
class PAV_Insurances_Model_Observer
{
public function orderSaveBefore(Varien_Event_Observer $observer)
{
}
}