Skip to content

Instantly share code, notes, and snippets.

View aranw's full-sized avatar

Aran Wilkinson aranw

View GitHub Profile
error: hash mismatch in fixed-output derivation '/nix/store/qg02m7rc2qvklrqd7pv6iasq08ax3lmm-source.drv':
specified: sha256-//OI5dJL8qtOGzda2RwHp3vB/icaYjUBpmLyB5pHeog=
got: sha256-wlRKGZBG07F8qldUJHBMKs/5mQj28exU5VbR8gVkHRc=
error: 1 dependencies of derivation '/nix/store/w3x0skh1cv89x8yad3r2c044mxr9glm7-home-manager-files.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4qq0yinpjprv8mgz0jd3g1qky50r72yw-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/makssz15svqx3b46qqv4alg00rnqzf0g-activation-aranw.drv' failed to build
error: 1 dependencies of derivation '/nix/store/dax1fpv1nds531qdsk38q15mhvbi25gk-darwin-system-22.05.20220210.1882c6b+darwin4.bcdb602.drv' failed to build
Function panic: runtime error: invalid memory address or nil pointer dereference
goroutine 20 [running]:
runtime/debug.Stack(0xc000132f20, 0x9070c0, 0xdd12d0)
/go/src/runtime/debug/stack.go:24 +0xa7
main.executeFunction.func1(0xa3e620, 0xc0002421c0)
/tmp/sgb/staging/srv/worker.go:116 +0x6e
panic(0x9070c0, 0xdd12d0)
/go/src/runtime/panic.go:513 +0x1b9
extractor.F(0x2aba25e19080, 0xc0001a50e0, 0xc000023510, 0xe, 0xc000024ee0, 0x17, 0xc000023520, 0xf, 0xc000023508, 0x8, ...)
<?php namespace PatrickMaciel;
class BaseController extends \Controller {
/**
* Setup the layout used by the controller.
*
* @return void
*/
protected function setupLayout()
@aranw
aranw / PageController.php
Created November 24, 2012 12:24
Caching issue
<?php
class PageController extends Controller {
/**
* Blog Posts
*
* @var array
**/
protected $posts;
Verifying my Blockstack ID is secured with the address 1H4VjTzySeQtanLYu1kWib4bAvnsGWMAj9 https://explorer.blockstack.org/address/1H4VjTzySeQtanLYu1kWib4bAvnsGWMAj9
@aranw
aranw / filters.php
Last active December 26, 2015 18:19
<?php
//Needs refactoring I guess into one, but thats a topic for another day
Route::filter('user', function() {
if (! Session::has('User')) {
return Redirect::to('/');
}
});
<?php
class StatsdEventHandler {
public function increment($metrics, $delta, $sampleRate, $event)
{
}
public function subscribe($events)
{
@aranw
aranw / gist:5992199
Created July 13, 2013 21:01
Nesting Route Groups
<?php
Route::group(array('prefix' => 'api/v1'), function()
{
// URL => api/v1/
Route::get('auth', function() {
// URL => api/v1/auth
});
public function processReset($token)
{
$credentials = array('email' => Input::get('email'));
return Password::reset($credentials, function($user, $password)
{
$user->password = Hash::make($password);
$user->save();
Exception
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'token' in 'where clause' (SQL: select * from `users` where `token` = ? and `email` = ? limit 1) (Bindings: array ( 0 => '', 1 => '', ))