Skip to content

Instantly share code, notes, and snippets.

Travis Rowland Theaxiom

View GitHub Profile
Theaxiom /
Created Jan 30, 2020 — forked from nbonfire/
MySubaru python samples
import requests, json
from subarucreds import username,password,pin # just a "" that has some variables i didn't want to share
import datetime
s=requests.Session()'', data = {'username':username,'password':password})
#should return a response 200
#Where's my subaru?
View Hacknet

Hacknet Speedrun Any% Notes by Pastillage

Update History:

  • v1.2.0 update new CSEC Route, this should be the fastest route now.
  • v1.3.0 update Found a way to skip Naix's hack
  • v1.3.5 Route updates to skip getting eosdevicescanner and Faster Sequencer
  • v1.4.0 2 Optimisations to the route, Route changes have been marked by [Route Change]
Theaxiom / AppController.php
Created Apr 12, 2017
How to automatically protect actions
View AppController.php
* @param null $user
* @return bool
public function isAuthorized($user = null)
// Admin can access every action
if ($user && isset($user['is_admin']) && $user['is_admin']) {
Theaxiom / ApiAppController.php
Created Apr 11, 2017
Remapping new CRUD actions
View ApiAppController.php
namespace App\Controller\Api;
use Cake\Controller\Controller;
class ApiAppController extends Controller
use \Crud\Controller\ControllerTrait;
View ReleasesController.php
namespace App\Controller\Api;
* Releases Controller
* @property \App\Model\Table\ReleasesTable $Releases
class ReleasesController extends ApiAppController
Theaxiom / yn.php
Created Mar 20, 2017
PHP yes/no function
View yn.php
* @param $bool
* @return string
function yn($bool)
return ($bool)?'Yes':'No';
Theaxiom / nameCallback.php
Created Nov 3, 2016
nameCallback not renaming photos
View nameCallback.php
$this->addBehavior('Josegonzalez/Upload.Upload', [
// You can configure as many upload fields as possible,
// where the pattern is `field` => `config`
// Keep in mind that while this plugin does not have any limits in terms of
// number of files uploaded per request, you should keep this down in order
// to decrease the ability of your users to block other requests.
'photo' => [
'fields' => [
// if these fields or their defaults exist
Theaxiom / unicentapos-export.php
Last active Oct 14, 2015
Export from unicentapos
View unicentapos-export.php
mysql_connect("localhost", "root", "") or
die("Could not connect: " . mysql_error());
$limit = 100;
if (!empty($_GET["limit"])) {
$limit = $_GET["limit"];
Theaxiom / gist:85fb9c19cd5965c7f9b7
Last active Nov 19, 2016 — forked from chrisgilbert/gist:58f57c82f74162ed5c0f
Run Ansible or Ansible-Playbook from Rundeck
View gist:85fb9c19cd5965c7f9b7
# Interpret whether the input needs to go to ansible, or ansible-playbook and run appropriately
# First update the git repos for each project
Theaxiom / nginx.config
Last active Aug 29, 2015
nginx alias php config
View nginx.config
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
# rewrite ^(.*) http://localhost$1 permanent;
root /var/www;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
You can’t perform that action at this time.