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, ...)
Verifying my Blockstack ID is secured with the address 1H4VjTzySeQtanLYu1kWib4bAvnsGWMAj9 https://explorer.blockstack.org/address/1H4VjTzySeQtanLYu1kWib4bAvnsGWMAj9
package main
import (
"log"
)
func main() {
test := []int{1, 2, 3, 4, 5}
log.Println(test)
id,name,description
1,bob,"Bob is amazing"
2,jim,"Jim is just as amazing as Bob"

Keybase proof

I hereby claim:

  • I am aranw on github.
  • I am aranw (https://keybase.io/aranw) on keybase.
  • I have a public key whose fingerprint is AEF5 4791 7C1B BB93 AA15 6DDD E2CA 29CF 18AB 5998

To claim this, I am signing this object:

@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();