This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Order Deny,Allow | |
Deny from all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LOGOPTS= | |
END_AND_BEGIN= | |
#https://github.com/esc/git-stats | |
#argument parsing | |
while [ -n "$1" ]; do | |
case "$1" in | |
"-s") | |
shift | |
END_AND_BEGIN="$END_AND_BEGIN --after=$1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "${1}" = "--uninstall" ]; then | |
/bin/rm -rf /usr/bin/gisto /usr/bin/nw.pak /usr/share/applications/gisto.desktop usr/share/menu/gisto /usr/share/pixmaps/gisto.png /usr/share/pixmaps/gisto.xpm | |
echo -e '\n\n\n\e[44m \e[0m Congrats! Gisto removed from your machine.\n\n\n' | |
exit 1 | |
fi | |
is_root() { | |
if [[ $EUID -ne 0 ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$myData = array( | |
['name' => 'dimitrios' , | |
['address' => 'SomeAddress' , 'country' => 'Greece' , ['phone'=> 4568765 , 'mobile' => 76599585]]] , | |
['name' => 'Jhon' ,'address' => 'Alimos' , 'country' => 'France' , 'phone' => 6577474] , | |
['name' => 'Justin' , 'address' => 'Sint Johnson ' , 'country' => 'UK' , 'phone' => '8875775'] | |
); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CustomFilterIterator extends FilterIterator | |
{ | |
protected $filterKey ; | |
protected $filterValue ; | |
public function __construct($iter, $key , $value ) | |
{ | |
parent::__construct($iter); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Illuminate\Routing\UrlGenerator | |
__construct(RouteCollection $routes, Request $request) Both parameter ar from Symfony | |
full() // Get the full URL for the current request. | |
current() // Get the current URL for the request. | |
previous() // Get the URL for the previous request. | |
to($path, $parameters = array(), $secure = null) // Generate a absolute URL to the given path. | |
secure($path, $parameters = array()) // Generate a secure, absolute URL to the given path. | |
asset($path, $secure = null) // Generate a URL to an application asset. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Start by setting display:none to make this hidden. | |
Then we position it in relation to the viewport window | |
with position:fixed. Width, height, top and left speak | |
speak for themselves. Background we set to 80% white with | |
our animation centered, and no-repeating */ | |
.modal { | |
display: none; | |
position: fixed; | |
z-index: 1000; | |
top: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// One line installation of Laravel with composer | |
composer create-project laravel/laravel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
php artisan migrate:make create_user_table | |
// app/database/migrations folder | |
<?php | |
use Illuminate\Database\Migrations\Migration; | |
class CreateUserTable extends Migration { | |
public function up() | |
{ |