Skip to content

Instantly share code, notes, and snippets.

@oxycoder
oxycoder / AuthController.php
Last active April 27, 2019 06:58
Laravel 5.4 Customize Password Reset with DingoApi
<?php
use Illuminate\Support\Facades\Password;
use Illuminate\Contracts\Hashing\Hasher as HasherContract;
class AuthController extends BaseController
{
protected $hasher;
public function __construct(HasherContract $hasher)
{
$this->hasher = $hasher;
@oxycoder
oxycoder / Octal2Char.php
Last active August 25, 2023 20:01
Decode!
<?php
/*
Simple script to convert from Octal to character and character to Octal
Author: Oxycoder
Sample Octal: 127 150 141 164 040 160 150 171 163 151 143 151 163 164 040 162 145 155 141 162 153 145 144 072 040 042 107 157 144 040 151 163 040 163 165 142 164 154 145 054 040 142 165 164 040 150 145 040 151 163 040 156 157 164 040 155 141 154 151 143 151 157 165 163 042 077
Sample Char: W h a t p h y s i c i s t r e m a r k e d G o d i s s u b t l e b u t h e i s n o t m a l i c i o u s
*/