Skip to content

Instantly share code, notes, and snippets.

🌏
Somewhere between home and Hogwarts School of Witchcraft and Wizardry

Tim Joosten Tjoosten

🌏
Somewhere between home and Hogwarts School of Witchcraft and Wizardry
  • Polar Youth
  • Antwerp, BE
Block or report user

Report or block Tjoosten

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View meh.md

PHP Security checklist

Basic

  • Strong passwords are used.
  • Passwords stored safely.
  • register_globals is disabled.
  • Magic_quotes is disabled.
  • display_errors is disabled.
View gist:077882c0e5e46b2057e9f6f044a54c88
Department of Homeland Security (DHS)
Federal Emergency Management Agency (FEMA)
Coast Guard (USCG)
Customs and Border Protection (CBP)
Border Patrol
Secret Service (USSS)
National Operations Center (NOC)
Homeland Defense
Immigration Customs Enforcement (ICE)
Agent
View app.scss
// Bootstrap
@import '~bootstrap/scss/bootstrap';
@import '~shards-ui/src/scss/shards';
View refactor.php
$csv = Reader::createFromPath(database_path('seeds/sources/belgian-cities.csv'), 'r');
$csv->setHeaderOffset(0);
foreach ($stmt->process($csv) as $city) {
// Create a new province if not exists
$province = $provinces->firstOrCreate(['name' => $city['province']]);
// Create a new city in the database if not exists
$cityInformation = $cities->firstOrCreate([
// City information
View log
[2018-08-31 14:33:01] production.ERROR: Undefined class constant 'HEADER_CLIENT_IP' {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Undefined class constant 'HEADER_CLIENT_IP' at /home/activi1q/config/trustedproxy.php:66)
[stacktrace]
#0 /home/activi1q/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(71): require()
#1 /home/activi1q/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php(39): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->loadConfigurationFiles(Object(Illuminate\\Foundation\\Application), Object(Illuminate\\Config\\Repository))
#2 /home/activi1q/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(206): Illuminate\\Foundation\\Bootstrap\\LoadConfiguration->bootstrap(Object(Illuminate\\Foundation\\Application))
#3 /home/activi1q/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(297): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#4 /home/
@Tjoosten
Tjoosten / view.blade.php
Last active Jun 22, 2018
Vraag omtrent line lenght: Hoe jij deze lijn opbreken zodat die in een max width van 85 past?
View view.blade.php
<input type="text" class="form-control form-control-sm @error('firstname', 'is-invalid')" @input('lastname') id="inputFirstname" placeholder="{{ __('starter-translations::users.placeholders.firstname') }}">
@Tjoosten
Tjoosten / repo.php
Created Jun 6, 2018
BUG: Method name must be a string
View repo.php
class SocialRepository
{
public function shareCrowdfund()
{
$social = Share::load('test', 'http://www.goolde.cla')->services(config('social.services'));
dd($social);
}
}
View error-stack.txt
<!--
Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: in file C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php on line 255
Stack trace:
1. Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException-&gt;() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:255
2. Illuminate\Routing\RouteCollection-&gt;methodNotAllowed() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:242
3. Illuminate\Routing\RouteCollection-&gt;getRouteForMethods() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php:176
4. Illuminate\Routing\RouteCollection-&gt;match() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Routing\Router.php:613
5. Illuminate\Routing\Router-&gt;findRoute() C:\Users\Gebruiker\Desktop\bloailer\vendor\laravel\framework\src\Illuminate\Ro
View controller.php
<?php
namespace Misfits\Http\Controllers\Admin\Helpdesk;
use Illuminate\Http\RedirectResponse;
use Illuminate\View\View;
use Misfits\Http\Controllers\Controller;
use Misfits\Http\Requests\Admin\Helpdesk\CategoryEditValidator;
use Misfits\Http\Requests\Admin\Helpdesk\CategoryValidator;
use Misfits\Repositories\CategoryRepository;
View dijkstra.psuedo
foreach v
{\displaystyle \in }
\in V(G) do d(v) =
{\displaystyle \infty }
You can’t perform that action at this time.