Skip to content

Instantly share code, notes, and snippets.

Avatar
🎮
Focusing

moein rahimi moeinrahimi

🎮
Focusing
View GitHub Profile
@moeinrahimi
moeinrahimi / docker-help.md
Last active Mar 27, 2020 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips
View docker-help.md

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

View keybase.md

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 / 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';
Promise.config({
warnings: false
});
import {
TextInput,
Button,
StyleSheet,
@moeinrahimi
moeinrahimi / cloudSettings
Last active Jun 23, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-06-23T15:21:31.893Z","extensionVersion":"v3.4.3"}
@moeinrahimi
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('Console.save: No data')
return;
}
if(!filename) filename = 'console.json'
if(typeof data === "object"){
@moeinrahimi
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
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
moeinrahimi / index.md
Created Jul 28, 2016
Removing index.php from url in your codeigniter project
View index.md

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

Image of Yaktocat

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

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

h1 title

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

#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
You can’t perform that action at this time.