Skip to content

Instantly share code, notes, and snippets.

View x22element's full-sized avatar
🏠
Working from home

Anton Metronome x22element

🏠
Working from home
View GitHub Profile
#!/bin/bash
echo -e "
#!/bin/sh
init_error() {
local ret=1
[ -z "$1" ] || printf "%s\n" "$1"
[ -z "$2" ] || ret=$2
exit $ret
<?php
namespace App\Http\Controllers;
use Carbon\Carbon;
use FreeKassa;
use Auth;
use App\Balance;
use Illuminate\Http\Request;
server {
listen 7777;
server_name localhost;
root C:\fastdl\;
location / {
deny all;
location ~* "\.(wad|bsp|spr|mdl|tga|wav)" {
allow all;
}
location ~ "/$" {
let mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
<?php
private function response($aData,$isError = false, $redirectTo = false){
$aResult = [
'success' => $isError ? 'false' : 'true',
'data' => []
];
if(is_array($aData))
<?php
namespace App\Http\Controllers;
use App\ReaccessAccount;
use App\User;
use App\UserInfo;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Session;
use Validator;