Acesse o seu arquivo app/Providers/AppServiceProvider.php
, e no método register
adicione o seguinte :
/**
* Register any application services.
*
* @return void
*/
echo Preparando...... | |
sudo mkdir /home/downloads | |
cd /home/downloads | |
sudo chmod -R 777 /home/downloads | |
#echo Google Chrome | |
get https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i ./google-chrome-stable_current_amd64.deb | |
sudo rm ./google-chrome-stable_current_amd64.deb |
<?php | |
namespace App\Http\Controllers\Api; | |
use App\Model; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use Illuminate\Pagination\LengthAwarePaginator as Paginator; | |
#!/usr/bin/env sh | |
# ASCII: http://patorjk.com/software/taag/#p=display&f=Graffiti&t=Docker%20Setup%20Script | |
# SOURCE: https://gist.github.com/Gerst20051/bf1341448bd43f430761c1f8150fb1b7 | |
function double_echo { | |
echo && echo | |
} | |
function newline { |
<?php | |
// Your goal is to count how many items exist that have an age equal to or greater than 50, and print this final value. | |
$ch = curl_init('https://coderbyte.com/api/challenges/json/age-counting'); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
$data = curl_exec($ch); | |
curl_close($ch); |
# preparation | |
## OpenID Connect library(use only http client) | |
$ pear install openpear/Akita_OpenIDConnect-alpha | |
## RSA Crypt and X.509 handling library | |
$ pear channel-discover phpseclib.sourceforge.net | |
$ pear install phpseclib/Crypt_RSA | |
$ pear install phpseclib/File_X509 | |
# PHP Source | |
$ cat signatureverification.php |
<?php | |
// bin2hex(random_bytes($length)) | |
$token = bin2hex(random_bytes(64)); | |
/* | |
Examples: | |
39e9289a5b8328ecc4286da11076748716c41ec7fb94839a689f7dac5cdf5ba8bdc9a9acdc95b95245f80a00d58c9575c203ceb541507cce40dd5a96e9399f4a | |
1c46538c712e9b5bf0fe43d692147004f617b494d004e29daaf33e4528f253db5d911a690856f0b77cfa98103c8231bffff869f179125d17d28e52bfadb9f205 | |
... |
#!/bin/sh | |
curlExists=$(command -v curl) | |
echo "Testing Postman version" | |
targetName="" | |
if [ -z $curlExists ]; then | |
targetName=$(wget -S --spider "https://dl.pstmn.io/download/latest/linux64" 2>&1 | grep "Content-Disposition" | awk -F '=' '{ print $2 }') | |
else |
class Script { | |
/** | |
* @params {object} request | |
*/ | |
process_incoming_request({ request }) { | |
let color = "#00FF00"; // green | |
switch(request.content.state) { | |
case 'ok': | |
color = '#00FF00'; | |
break; |
#!/bin/bash | |
### Variáveis | |
PROGRAMAS_APT=( | |
git | |
git-flow | |
google-chrome-stable | |
deepin-terminal | |
deepin-screen-recorder | |
gnome-tweak-tool |