Skip to content

Instantly share code, notes, and snippets.

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

Mohammad ghanbari

🏠
Working from home
View GitHub Profile
@ghanbari
ghanbari / mdb_to_sql
Created March 7, 2024 20:03 — forked from hunzai/mdb_to_sql
mdb to mysql
Excellent - you saved alot of my time.
Just one adjustment to the script, you have to add database type with -I option.
mdb-export -I 'mysql' -R ';' $mdb $table >> $sql
mdb=$1
sql=$2
if [ -z "$2" ]; then
; Start a new pool named 'www'.
; the variable $pool can be used in any directive and will be replaced by the
; pool name ('www' here)
[www]
; Per pool prefix
; It only applies on the following directives:
; - 'access.log'
; - 'slowlog'
; - 'listen' (unixsocket)
/*!
* css-sans.css v1.0.0
* (c) 2015 Yusuke Sugomori
* MIT License | http://yusugomori.com/license/mit
*/
.A {
position: relative;
left: 30px;
width: 60px;
@ghanbari
ghanbari / AclFilter.php
Created February 14, 2019 08:10 — forked from rejsmont/AclFilter.php
ACL filter for Doctrine QueryBuilder and Query. Supports multiple filters applied to a single query, entity inheritance and role hierarchies.
<?php
/*
* Copyright 2013 Radoslaw Kamil Ejsmont <[email protected]>
*
* Original code by mailaneel is available at
* https://gist.github.com/mailaneel/1363377
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ghanbari
ghanbari / Install-php7.md
Created April 6, 2017 20:05 — forked from hollodotme/Install-php7.md
Installing php7-fpm with phpredis and xdebug extension on Ubuntu 14.04

Install php7.0-fpm

# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.0 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.0-fpm with needed extensions
Python 2.7 Regular Expressions
Special characters:
\ escapes special characters.
. matches any character
^ matches start of the string (or line if MULTILINE)
$ matches end of the string (or line if MULTILINE)
[5b-d] matches any chars '5', 'b', 'c' or 'd'
[^a-c6] matches any char except 'a', 'b', 'c' or '6'
R|S matches either regex R or regex S.