Skip to content

Instantly share code, notes, and snippets.

View dmsysop's full-sized avatar

Douglas M. dmsysop

  • Gazin Tech
  • Umuarama / Maringá - PR
  • X @dmsysop
View GitHub Profile
##################################################
# 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 ❤️
@dmsysop
dmsysop / Comando do Agendador
Last active November 29, 2023 12:07
Monitoramento ativo do ManagerEdoc
powershell -ExecutationPolicy Bypass -File C:\Users\nfe\Desktop\MonitorManagerEdoc.ps1 -WindowStyle Hidden
@dmsysop
dmsysop / Dockerfile
Created September 30, 2022 15:07
Dockerfile and docker-compose NestJS + PostgreSQL application
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
@dmsysop
dmsysop / docker-cmd.txt
Last active July 12, 2022 12:19
Docker Commands
# ![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
@dmsysop
dmsysop / php-docker-ext
Created May 12, 2022 19:19 — forked from hoandang/php-docker-ext
Complete list of php docker ext
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/
THE CREATION:
In the beginning there was the computer. And God said
c:\>Let there be light!
Enter user id.
c:\>God
public function store(AulasRulesRequest $request)
{
$input = $request->all();
$tags = $request['hidden-tags'];
$input['tags'] = $tags;
unset($request->tags);
if (!is_null($request->video)) {
@dmsysop
dmsysop / gist:1dfd696553a948a338bdbb441c36ef4d
Created January 7, 2021 12:29
GoogleYoutubeService.php
<?php
namespace App\Services;
use Illuminate\Http\Request;
use App\Models\{Professor, Video};
use Youtube;
class GoogleYoutubeService
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'],
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,