Relative positioned, border-based CSS arrows generated by a LESS mixin. Parameters: size, stroke, color, hover-color and radius.
A Pen by Peter Varga on CodePen.
<?php ini_set('display_errors', 1);error_reporting(E_ALL); | |
$h=$_GET['d'];$d=isset($h)?urldecode($h):dirname(__FILE__); | |
if(is_file($d)&&(header('Content-disposition: attachment; filename='.end(explode("/",$d)))||readfile($d)))exit(); | |
foreach(scandir($d)as$f)echo'<li><a href="?d='.urlencode(realpath($d)."/$f")."\">$f</a></li>"; |
asd |
<?php | |
date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php | |
/** | |
* The root directory where the repos live. | |
* | |
* @var string | |
*/ | |
$root_dir = '/your/root/dir/'; |
#a# | |
# Host Database | |
# | |
# localhost is used to configure the loopback interface | |
# when the system is booting. Do not change this entry. | |
## | |
127.0.0.1 localhost | |
255.255.255.255 broadcasthost | |
::1 localhost | |
fe80::1%lo0 localhost |
#MYSQL DB DUMP FROM REMOTE SERVER | |
mysqldump -h host_ip -u username -p --databases xxx_db > xxx.sql | |
#MYSQL DB DUMP RESTORE TO REMOTE SERVER | |
mysql -h host_ip -u username -p xxx_db < xxx.sql | |
#MySQL TIMESTAMP TO DATE Update | |
UPDATE table SET col_to=DATE_FORMAT(FROM_UNIXTIME(col_from),"%Y-%m-%d %H:%i:%s"); | |
#MYSQL UPDATE "ME" |
// UMD dance - https://github.com/umdjs/umd | |
!function(root, factory) { | |
if (typeof define === 'function' && define.amd) { | |
define(['jquery'], factory); | |
} else { | |
factory(root.jQuery); | |
} | |
}(this, function($) { | |
'use strict'; |
Relative positioned, border-based CSS arrows generated by a LESS mixin. Parameters: size, stroke, color, hover-color and radius.
A Pen by Peter Varga on CodePen.
#!/usr/bin/env ruby | |
# | |
# Convert PyroCMS blog posts to jekyll posts | |
# | |
# Basic Usage | |
# ----------- | |
# | |
# ruby ./import_pyro_to_jekyll.rb feed_url | |
# | |
# where `feed_url` can have the following format: |
This is my Jekyll-based Curriculum vitae 'generator' |
# biggest files | |
du --max-depth=5 /* | sort -n |