Skip to content

Instantly share code, notes, and snippets.

View moeinrahimi's full-sized avatar
💪

Moein Rahimi moeinrahimi

💪
View GitHub Profile
@moeinrahimi
moeinrahimi / vue-loader extract styles into one file
Created May 10, 2017 09:47
Extract all your css styles including require files and component's style into one css file
var path = require('path')
var webpack = require('webpack')
const ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
entry: './src/main.js',
output: {
path: path.resolve(__dirname, './dist'),
publicPath: '/dist/',
filename: 'build.js'
@moeinrahimi
moeinrahimi / index.md
Created July 28, 2016 06:53
Removing index.php from url in your codeigniter project

First of all make sure to remove index.php from $config['index_page'] = ''; in your config.php then turn on readwrite_mode and add this to your htaccess file

    RewriteEngine on
    RewriteBase /
    # Hide the application and system directories by redirecting the request to index.php
    RewriteRule ^(application|system|\.svn) index.php/$1 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
# Keywoard Targeting
  • استفاده از کلمه کلیدی مورد نظر در عنوان صفحه و همینطور تا جای ممکنه در اول جمله

Image of Yaktocat

عنوان صفحه مهم است

  • استفاده از تگهای هدینگ نزدیک به جست و جویی که کاربر انجام میدهد, حتما نباید عنوان صفحه با عنون سرچ کاربر یکسان باشد و همینطور نباد عنوان صفحه بی ربط به متن سرچ شده کاربر باشد

h1 title

@moeinrahimi
moeinrahimi / help.md
Last active May 23, 2016 19:19
Use Public Key Authentication with SSH

#how to generate RSA key to use Public Authentication in SSH

generate rsa-auth key

ssh-keygen

optional : increase security by changing size of the key

 ssh-keygen -b 4096