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
| #!/usr/bin/perl | |
| use warnings; | |
| use strict; | |
| use Data::Validate::IP qw(is_ipv4 is_ipv6); | |
| use Data::Validate::Domain qw(is_domain); | |
| #Global Vars | |
| my $nfsconf = "/etc/exports"; | |
| &main(); |
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
| #custom development | |
| mariadb: | |
| image: mariadb:latest | |
| container_name: mariadb | |
| env_file: ./database/.env | |
| ports: | |
| - "3306:3306" | |
| volumes: | |
| - /home/user/data/mariadb:/var/lib/mysql |
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
| public static function saveImage($file,$height = null, $width = "400"){ | |
| if ($file) { | |
| $destinationPath = public_path() . '/uploads/images/'; | |
| $ext = $file->getClientOriginalExtension(); // Get real extension according to mime type | |
| $fullname = $file->getClientOriginalName(); // Client file name, including the extension of the client | |
| $hashname = md5($fullname . time()) . '.' .$ext; // Hash processed file name, including the real extension | |
| $uploadSuccess = $file->move($destinationPath, $hashname); |
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
| Verifying that +rubemlrm is my blockchain ID. https://onename.com/rubemlrm |
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
| before_script: | |
| - composer install --prefer-dist > /dev/null | |
| - export APP_ENV=testing | |
| unitTesting: | |
| script: | |
| - echo "Running PHP Unit tet" | |
| - php vendor/bin/phpunit --colors --debug --coverage-text | |
| codeSniffer: | |
| script: |
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
| set nocompatible " Disable vi-compatibility | |
| set t_Co=256 | |
| colorscheme xoria256 | |
| set guifont=menlo\ for\ powerline:h16 | |
| set guioptions-=T " Removes top toolbar | |
| set guioptions-=r " Removes right hand scroll bar | |
| set go-=L " Removes left hand scroll bar | |
| set linespace=15 |
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
| $(document).ready(function() { | |
| $.get(BASE, function(data) { | |
| $.each(data,function(key,value){ | |
| if(value.draft == 1){ | |
| var draft ='<span class="label label-success">Yes</span>'; | |
| }else{ | |
| var draft = '<span class="label label-important">No</span>'; | |
| } |
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
| This is one example to create one auto join script to irc . | |
| <code> | |
| on *:START:{ | |
| .server irc.tik-t0k.net:+6697 -i <nick> | |
| .server -m irc.network -i <nick> (this is the syntax that you have to your script connect to other networks.) | |
| } | |
| on *:NOTICE:*This nickname is registered and protected*:*:{ | |
| if ($nick == NickServ && $network == TiK-T0K ) { |
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 | |
| namespace Dojo\Models; | |
| use \Laravel\Database\Eloquent\Model as Eloquent; | |
| class Article extends Eloquent{ | |
| public static $timestamps = true; | |
| public function author(){ | |
| return $this->belongs_to('Dojo\Models\User','author_id'); |
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 | |
| use Dojo\Models\Article, Dojo\Models\Tag; | |
| class Dojo_Article_Controller extends Dojo_Base_Controller{ | |
| /** | |
| * Get the list of articles to show in admin paneel , with optional sorting and filter search | |
| * @param string $type type of filter (index/draft/published) | |
| * @param string $id type of values we want search (all|0|1) |