Skip to content

Instantly share code, notes, and snippets.

View PHLAK's full-sized avatar
Coffee... always coffee...

Chris Kankiewicz PHLAK

Coffee... always coffee...
View GitHub Profile
@adamwathan
adamwathan / 1-add-macros.php
Last active June 11, 2022 19:55
Multiformat Endpoints in Laravel
<?php
namespace App\Providers;
use Illuminate\Http\Request;
use Illuminate\Routing\Route;
use Illuminate\Support\ServiceProvider;
use App\Http\Middleware\CaptureRequestExtension;
class AppServiceProvider extends ServiceProvider
anonymous
anonymous / scan.sh
Created May 9, 2011 16:11
scan.sh - quickly scan your surroundings
#!/bin/bash
# scan.sh
for i in $(/var/root/bin/map | grep "scan report" | awk '{print $5}'); do
nmap -sC -F $i | tee -a scan_output.txt
done
anonymous
anonymous / map.sh
Created May 9, 2011 16:01
map.sh - quickly see what's up
#!/bin/bash
# map.sh
IP_RANGE=$(ifconfig | grep "inet " | grep -v "127.0.0.1" | awk '{print $2}' | awk -F. '{print $1"."$2"."$3".1-254"}')
echo
echo "Scanning $IP_RANGE..."
nmap -sP $IP_RANGE
@PHLAK
PHLAK / autoexec.cfg
Last active July 5, 2022 17:01
L4D2 autoexe.cfg
// ---------------------------------------------------------------------------------------------- //
// -----| NETCODE OPTIMIZATIONS |---------------------------------------------------------------- //
// ---------------------------------------------------------------------------------------------- //
cl_cmdrate "30" // Command packets sent to server per second (Default 30)
cl_updaterate "30" // Packets per second you request from the server (Default 20)
cl_interp "0.067" // Interpolation value to match updaterate 30 (Default 0.1)
rate "30000"; // Max bytes/sec the host can receive data (Default 10000)
@jwage
jwage / SplClassLoader.php
Last active April 9, 2024 21:04
Add MIT license.
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,