Skip to content

Instantly share code, notes, and snippets.

View MHM5000's full-sized avatar
🏠
Working from home

Mohammad Hossein Mojtahedi MHM5000

🏠
Working from home
View GitHub Profile
#rtl-support .tt-dropdown-menu {
text-align: right;
}
@MHM5000
MHM5000 / emoji_test.rb
Created November 30, 2015 13:38 — forked from holman/emoji_test.rb
A snapshot of the tests we use internally at GitHub to help edit our blog posts before they go out to everybody. For more information, take a peek at http://zachholman.com/posts/how-github-writes-blog-posts
require_relative "test_helper"
require "open-uri"
require "net/http"
class EmojiTest < Blog::Test
def test_no_emoji
posts.each do |post|
content = File.read(post)
refute_match /:[a-zA-Z0-9_]+:/, content,
@MHM5000
MHM5000 / callback.php
Last active May 10, 2016 15:40
Mellat Bank PHP wsdl
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>BP PGW Test</title>
<link href="Css/Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<table width="100%" cellspacing="0" cellpadding="0" align="center">
<tr>
@MHM5000
MHM5000 / Error message.md
Last active October 3, 2016 12:03
buttercup v0.2.0 error on debian

The package is of bad quality

The installation of a package which violates the quality standards isn't allowed. This could cause serious problems on your computer. Please contact the person or organisation who provided this package file and include the details beneath.

[ OK ] | [ Ignore and install ]

@MHM5000
MHM5000 / django_install_apache.md
Created February 12, 2017 15:34 — forked from fduran/django_install_apache.md
Django Install - Apache

Django Install - Apache

Once per server:

apt-get update && apt-get upgrade
apt-get install libapache2-mod-wsgi
apt-get install python-setuptools python-dev build-essential
easy_install -U pip

@MHM5000
MHM5000 / allah-names
Last active July 20, 2017 14:20
Allah names ready to be used in JavaScript or any other language
الرَّحْمَنُ
الرَّحِيمُ
الْمَلِكُ
الْقُدُّوسُ
السَّلاَمُ
الْمُؤْمِنُ
الْمُهَيْمِنُ
الْعَزِيزُ
الْجَبَّارُ
الْمُتَكَبِّرُ
@MHM5000
MHM5000 / flexbox-lite.less
Last active September 26, 2017 12:43 — forked from jayj/flexbox.less
CSS3 Flexbox - LESS Mixins
.flex-display(@display: flex) {
display: @display;
}
.flex(@columns: initial) {
flex: @columns;
}
.flex-direction(@direction: row) {
flex-direction: @direction;

Keybase proof

I hereby claim:

  • I am mhm5000 on github.
  • I am mojtahedi (https://keybase.io/mojtahedi) on keybase.
  • I have a public key ASC7FNLkW3_SOV02hM4exeHgbnWI3tJIlZ0noBFPZDD2wQo

To claim this, I am signing this object:

@MHM5000
MHM5000 / SeleniumGridTutorial.md
Created January 29, 2019 09:52 — forked from dzitkowskik/SeleniumGridTutorial.md
A simple tutorial of using selenium grid in python unittests

Prepare files & libraries

  1. Download selenium standalone server from: http://goo.gl/rQhaxb, Create local folder at ~/selenium and copy or move jar to that path:
$ mkdir ~/selenium
$ cd ~/selenium
$ wget http://goo.gl/rQhaxb
$ mv selenium-server-standalone-2.49.1.jar ~/selenium/
@MHM5000
MHM5000 / nginx.conf
Created April 8, 2019 14:11 — forked from roman01la/nginx.conf
Node.js Express Nginx
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://127.0.0.1:3000;
}
location ~ ^/(images/|scripts/|styles/|robots.txt|humans.txt|favicon.ico) {
root /your/app/public/folder;