Skip to content

Instantly share code, notes, and snippets.

View demiankatz's full-sized avatar

Demian Katz demiankatz

  • Villanova University
  • Villanova, PA
View GitHub Profile
@demiankatz
demiankatz / Guide.php
Created July 4, 2023 14:55
VuFind "Subject Guide" Recommendation Module
<?php
/**
* Guide Recommendations Module
*
* PHP version 7
*
* Copyright (C) Villanova University 2010.
*
* This program is free software; you can redistribute it and/or modify
@demiankatz
demiankatz / update_token.php
Last active January 18, 2023 18:28
PHP script to update access tokens in all Git remotes
<?php
/**
* Script to update all remotes in a Git repo to use a new access token -- run from within the repository you wish to update.
*/
$username = $argv[1] ?? null;
$token = $argv[2] ?? null;
if (empty($token)) {
die("Usage: {$argv[0]} [username] [new GitHub token]\n");
}
class IndexController extends AbstractActionController
{
public function indexAction()
{
return $this->forward()->dispatch('Application\Controller\Index', array('action' => 'test'));
}
public function testAction()
{
$x = new ViewModel();