Skip to content

Instantly share code, notes, and snippets.


moein rahimi moeinrahimi

View GitHub Profile
moeinrahimi /
Last active Mar 27, 2020 — forked from bradtraversy/
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info


Keybase proof

I hereby claim:

  • I am moeinrahimi on github.
  • I am moeinrahimi ( on keybase.
  • I have a public key ASDuEzxfiu5Fz5QK_b3NaylE6ga1oRbhPf7TvszbFGrWiAo

To claim this, I am signing this object:

moeinrahimi / Matrix.js
Last active Jul 15, 2020
using matrix-js-sdk on react-native
View Matrix.js
import React, { Component } from 'react';
import Promise from 'bluebird';
warnings: false
import {
moeinrahimi / cloudSettings
Last active Jun 23, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
moeinrahimi / index.js
Created Feb 14, 2019
extract texts from webpage and save as a json file
View index.js
function save(data,filename){
if(!data) {
console.error(' No data')
if(!filename) filename = 'console.json'
if(typeof data === "object"){
moeinrahimi / regex.js
Last active Jan 23, 2019
handy regex statements for iran datasets
View regex.js
// اعتبار سنجی شماره همراه
var mobileNumber = '989407422058'
var checkMobile = mobileNumber.match(/0?9[0-9]{9}/i)
/* output
["9893510000", index: 0, input: "989351000000", groups: undefined]
// اعتبار سنجی کد ملی
moeinrahimi / vue-loader extract styles into one file
Created May 10, 2017
Extract all your css styles including require files and component's style into one css file
View vue-loader extract styles into one 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 /
Created Jul 28, 2016
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 /
Last active May 23, 2016
Use Public Key Authentication with SSH

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

generate rsa-auth key


optional : increase security by changing size of the key

  ssh-keygen -b 4096
You can’t perform that action at this time.