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 | |
| resources=("ClusterRole" "Role" "Namespace") | |
| for i in ${resources[@]} do; | |
| done |
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
| --- | |
| - name: Install SSSD for active directory | |
| ansible.builtin.package: | |
| name: 'openssh-server' | |
| state: present | |
| with_items: | |
| - realmd | |
| - sssd | |
| - oddjob | |
| - oddjob-mkhomedir |
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 Net::Ping; | |
| use autodie; | |
| my $host; | |
| my $my_addr="<ip>"; | |
| my $ping; | |
| my @reportlist; | |
| chomp(my $date = `date +%a%d%m%y%k%M`); |
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
| - name: Install base packages | |
| become: true | |
| become_user: root | |
| become_method: sudo | |
| package: | |
| name: '{{ item }}' | |
| state: present | |
| with_items: | |
| - 'youtube-dl' | |
| - 'numlockx' |
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
| phpcs: | |
| # This file is a template, and might need editing before it works on your project. | |
| # Select image from https://hub.docker.com/_/php/ | |
| image: rubemlrm/php-docker:7.1-apache | |
| # Select what we should cache between builds | |
| cache: | |
| paths: | |
| - vendor/ |
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
| # Apache Server Configs v2.11.0 | MIT License | |
| # https://github.com/h5bp/server-configs-apache | |
| # (!) Using `.htaccess` files slows down Apache, therefore, if you have | |
| # access to the main server configuration file (which is usually called | |
| # `httpd.conf`), you should add this logic there. | |
| # | |
| # https://httpd.apache.org/docs/current/howto/htaccess.html. | |
| # ###################################################################### |
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
| 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: |
NewerOlder