Skip to content

Instantly share code, notes, and snippets.

View shavidzet's full-sized avatar
👀
Learning

Tornike Shavidze shavidzet

👀
Learning
  • Tbilisi, Georgia
View GitHub Profile
@shavidzet
shavidzet / 000-abc.markdown
Last active November 17, 2015 16:10 — forked from bvancea/xdg-open
Patched /usr/bin/xdg-open script for Lubuntu to open magnet and sublime links.

Ubuntu xdg-open file for magnetlinks

@shavidzet
shavidzet / 000-abc.markdown
Last active November 2, 2015 20:46
Assets-codeigniter.php

Manage custom assets on CodeIgniter

@shavidzet
shavidzet / 000-abc.markdown
Last active November 22, 2015 14:36
The following algorithm help us to handle directory files whole content

The following algorithm help us to handle directory files whole content

just print contents variable where you want.
@shavidzet
shavidzet / duplicate.sql
Last active March 13, 2016 15:47
Detect duplicate entries
SELECT
code, COUNT(*)
FROM
customer_codes
GROUP BY
code
HAVING
COUNT(*) > 1
@shavidzet
shavidzet / Apache
Last active April 4, 2016 18:16
Apache vs Node Benchmark
This is ApacheBench, Version 2.3 <$Revision: 1638069 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Server Software: Apache/2.4.12
Server Hostname: localhost
Server Port: 80
@shavidzet
shavidzet / 000-abc.markdown
Last active April 29, 2016 00:01
Set date limit for particular product

Date differences and limiter

I have developed this gist to make easy your tasks when you need to work on times function in php

You can simply make a limit where you want and what you want.

For example:
If you have shopping web-site and you want to make a date limit for specific product, Yeaaah, I have already developed this function for you!
@shavidzet
shavidzet / 000-abc.markdown
Last active May 11, 2016 11:47
Detect if device is mobile

Detect if device is mobile using javascript

@shavidzet
shavidzet / 000-abc.markdown
Created May 11, 2016 13:15
On focus without pop up keyboard on mobile

On focus without pop up keyboard on mobile

@shavidzet
shavidzet / 000-abc.markdown
Created May 12, 2016 07:42
Detect enter keypress on mobile and desktop

Detect enter keypress on mobile and desktop

@shavidzet
shavidzet / .htaccess
Last active May 13, 2016 11:02
Deny all ip except list during development mode
order deny,allow
deny from all
allow from my_ip