Skip to content

Instantly share code, notes, and snippets.

View RWOverdijk's full-sized avatar
🤠
What's going on!?

Roberto Wesley Overdijk RWOverdijk

🤠
What's going on!?
View GitHub Profile
@RWOverdijk
RWOverdijk / steamdeck_ssh_instructions.md
Created February 1, 2024 08:59 — forked from andygeorge/steamdeck_ssh_instructions.md
Steam Deck `ssh` instructions

These are manual instructions on enabling SSH access on your Steam Deck, adding public key authentication, and removing the need for a sudo password for the main user (deck).

This gist assumes the following:

  • you have a Steam Deck
  • you have a home PC with access to a Linux shell that can ssh, ssh-keygen, and ssh-copy-id
  • your Steam Deck and home PC are on the same local network, with standard SSH traffic (tcp/22) allowed over that network from the PC to the Steam Deck

NOTE: @crackelf on reddit mentions that steamOS updates blow away everything other than /home, which may have the following effects:

  • removing the systemd config for sshd.service, which would prevent the service from automatically starting on boot
  • removing the sudoers.d config, which would reenable passwords for sudo
@RWOverdijk
RWOverdijk / app.html
Last active April 18, 2017 10:07 — forked from jdanyow/app.html
Aurelia Gist
<template>
<h1>${message}</h1>
<select
value.bind="value"
class="form-control ${classes}"
name.bind="name"
autofocus.bind="autofocus"
required.bind="required"
>
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min)) + min;
}
var assert = require('chai').assert,
userId,
Thread;
describe('Thread', function () {
describe('performance', function () {
/**
* sails-jwt-auth configuration and devdocs
*
*
*/
/**
public function setStreamUrl(url:String):void
{
// Trololo
var l:int = 14;
var k:int = 3;
var j:int = 7;
var i:int = Math.pow(k - 1, j) - l++;
var tmp:String = '';
var f:Function = function():void {
@RWOverdijk
RWOverdijk / bug-insert-session-destructor.php
Created September 30, 2012 23:53 — forked from microlancer/bug-insert-session-destructor.php
Seems like a bug in ZF2, fatal error on destruct
<?php
include 'init_autoloader.php';
use Zend\Authentication\Storage\Session as SessionStorage;
use Zend\Session\SessionManager;
use Zend\Db\TableGateway\TableGateway;
use Zend\Session\SaveHandler\DbTableGateway;
use Zend\Session\SaveHandler\DbTableGatewayOptions;
@RWOverdijk
RWOverdijk / JsonModel
Created May 22, 2012 19:24 — forked from basz/JsonModel
Inside my controller, as long as result is Traversable or is an object with public props it works...
public function getTransactionDataAction()
{
try {
if ($this->transaction == false || $this->transaction->getStatus() != Transaction::STATUS_COMPLETED) {
return $this->envelopeResult(false, sprintf(self::ERR_INCORRECT_TRANSACTION, $this->_transaction));
}
return $this->envelopeResult(true, $this->transaction->toArray());
} catch (\Exception $e) {
return $this->envelopeResult(false, $e->getMessage());
@RWOverdijk
RWOverdijk / gittyup.sh
Created February 9, 2012 20:07 — forked from EvanDotPro/gittyup.sh
Easily keep master in sync with upstream.
####################################################################################
## ##
## gittyup() - Easily keep master in sync with upstream. ##
## ##
## Author: Evan Coury, http://blog.evan.pro/ ##
## URL: https://gist.github.com/1506822 ##
## ##
## This bash function is a simple shortcut for keeping your local (and public ##
## fork / origin remote) master branch up to date and in sync with the upstream ##
## master. To use gittyup(), simply drop this in your ~/.bashrc. ##