This file contains 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
################################################## | |
# Packages | |
# $ sudo apt install -y xclip grc gobuster rlwrap evil-winrm powercat seclists peass | |
# Install flatpak | |
# -> https://www.kali.org/docs/tools/flatpak/ | |
# urlencode: | |
# $ sudo apt install gridsite-clients | |
# Python2 pip | |
# $ sudo sh -c "curl https://bootstrap.pypa.io./pip/2.7/get-pip.py | python2" | |
# Cool Hollywood screensaver ❤️ |
This file contains 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
powershell -ExecutationPolicy Bypass -File C:\Users\nfe\Desktop\MonitorManagerEdoc.ps1 -WindowStyle Hidden |
This file contains 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
FROM node:12.19.0-alpine3.9 AS development | |
WORKDIR /usr/src/app | |
COPY package*.json ./ | |
RUN npm install glob rimraf | |
RUN npm install --only=development |
This file contains 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
# ![Docker](https://user-images.githubusercontent.com/6461792/109390363-f782e680-78ef-11eb-9e79-a9e47d96e700.png) | |
# Comandos docker | |
Uma lista com alguns comandos do docker para o dia a dia :) | |
## Manupulando containers | |
- `docker ps -a` Lista containers | |
- `docker ps` Lista todos os containers em execução |
This file contains 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
RUN apt update | |
RUN apt upgrade -y | |
RUN apt install -y apt-utils | |
RUN a2enmod rewrite | |
RUN apt install -y libmcrypt-dev | |
RUN docker-php-ext-install mcrypt | |
RUN apt install -y libicu-dev | |
RUN docker-php-ext-install -j$(nproc) intl | |
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev | |
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ |
This file contains 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
THE CREATION: | |
In the beginning there was the computer. And God said | |
c:\>Let there be light! | |
Enter user id. | |
c:\>God |
This file contains 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 function store(AulasRulesRequest $request) | |
{ | |
$input = $request->all(); | |
$tags = $request['hidden-tags']; | |
$input['tags'] = $tags; | |
unset($request->tags); | |
if (!is_null($request->video)) { |
This file contains 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 App\Services; | |
use Illuminate\Http\Request; | |
use App\Models\{Professor, Video}; | |
use Youtube; | |
class GoogleYoutubeService |
This file contains 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 function rules() | |
{ | |
switch ($this->method()) { | |
case 'POST': | |
$rules = [ | |
'name' => ['required'], | |
'email' => ['required', 'email', 'min:4', 'max:100', Rule::unique('admins')], | |
'password' => ['required', 'string', 'min:6', 'max:100'], | |
'password_confirmation' => ['required', 'string', 'min:6', 'max:100', 'same:password'], | |
'image' => ['image'], |
This file contains 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 configure($token, $marketplace, $seller = null, $is_zend = null) | |
{ | |
$auth = array('token' => $token); | |
is_null($seller) ?: $auth += array('on_behalf_of' => $seller); | |
$configurations = [ | |
'marketplace' => $marketplace, | |
'gatway' => 'zoop', | |
'base_url' => 'https://api.zoop.ws', | |
'auth' => $auth, |
NewerOlder