Skip to content

Instantly share code, notes, and snippets.

View erichowey's full-sized avatar

Eric Howey erichowey

  • Talkroute Inc.
  • Las Vegas
View GitHub Profile
@paul-vd
paul-vd / readme.md
Last active March 19, 2024 04:11
GPU Passthrough Fedora
@sam-ngu
sam-ngu / CollectionHelper.php
Last active September 22, 2023 01:49
Laravel Collection Helper: paginate collection
<?php
namespace App\Helpers\General;
use Illuminate\Container\Container;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Collection;
@h1k3r
h1k3r / hostname.lua
Created June 25, 2014 19:52
Lua - get hostname
local _M = {}
function _M.getHostname()
local f = io.popen ("/bin/hostname")
local hostname = f:read("*a") or ""
f:close()
hostname =string.gsub(hostname, "\n$", "")
return hostname
end
return _M