Skip to content

Instantly share code, notes, and snippets.

View moeinrahimi's full-sized avatar
💪

Moein Rahimi moeinrahimi

💪
View GitHub Profile
@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
# Keywoard Targeting
  • استفاده از کلمه کلیدی مورد نظر در عنوان صفحه و همینطور تا جای ممکنه در اول جمله

Image of Yaktocat

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

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

h1 title

@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
@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 / regex.js
Last active January 23, 2019 06:05
handy regex statements for iran datasets
// اعتبار سنجی شماره همراه
var mobileNumber = '989407422058'
var checkMobile = mobileNumber.match(/0?9[0-9]{9}/i)
/* output
["9893510000", index: 0, input: "989351000000", groups: undefined]
*/
// اعتبار سنجی کد ملی
@moeinrahimi
moeinrahimi / index.js
Created February 14, 2019 09:04
extract texts from webpage and save as a json file
function save(data,filename){
if(!data) {
console.error('Console.save: No data')
return;
}
if(!filename) filename = 'console.json'
if(typeof data === "object"){
@moeinrahimi
moeinrahimi / cloudSettings
Last active June 23, 2020 15:21
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-06-23T15:21:31.893Z","extensionVersion":"v3.4.3"}
@moeinrahimi
moeinrahimi / Matrix.js
Last active June 20, 2023 03:35
using matrix-js-sdk on react-native
import React, { Component } from 'react';
import Promise from 'bluebird';
Promise.config({
warnings: false
});
import {
TextInput,
Button,
StyleSheet,

Keybase proof

I hereby claim:

  • I am moeinrahimi on github.
  • I am moeinrahimi (https://keybase.io/moeinrahimi) on keybase.
  • I have a public key ASDuEzxfiu5Fz5QK_b3NaylE6ga1oRbhPf7TvszbFGrWiAo

To claim this, I am signing this object:

@moeinrahimi
moeinrahimi / docker-help.md
Last active March 27, 2020 09:38 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info