Skip to content

Instantly share code, notes, and snippets.

@andygeorge
andygeorge / steamdeck_ssh_instructions.md
Last active September 5, 2025 17:21
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
@dublado
dublado / admin.py
Created April 28, 2022 20:40 — forked from alexisskodak/admin.py
DJANGO ADMIN Add_view, save_model, and change_view override example django admin
from .models import Post, Picture
from .forms import PostForm
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
...
def add_view(self, request, form_url="", extra_context=None):
extra_context = extra_context or {}
@alexisskodak
alexisskodak / admin.py
Last active March 21, 2023 20:18
Add_view, save_model, and change_view override example
from .models import Post, Picture
from .forms import PostForm
@admin.register(Post)
class PostAdmin(admin.ModelAdmin):
...
def add_view(self, request, form_url="", extra_context=None):
extra_context = extra_context or {}
@rmiyazaki6499
rmiyazaki6499 / deploy-django.md
Last active June 29, 2025 06:35
Deploying a Production ready Django app on AWS

Deploying a Production ready Django app on AWS

In this tutorial, I will be going over to how to deploy a Django app from start to finish using AWS and EC2. Recently, my partner Tu and I launched our app Hygge Homes (a vacation home rental app for searching and booking vacation homes based off Airbnb) and we wanted to share with other developers some of the lessons we learned along the way.

Following this tutorial, you will have an application that has:

  • An AWS EC2 server configured to host your application
  • SSL-certification with Certbot
  • A custom domain name
  • Continuous deployment with Github Actions/SSM Agent
@justinschuldt
justinschuldt / raspberry-pi-zero_as_webcam.md
Last active November 26, 2024 19:18
Directions for setting up a RaspberryPi to act as a generic USB webcam

hardware/software

Webcam parts:

  • Raspberry Pi Zero W Rev 1.1
  • Raspberry Pi Camera v2 (8-megapixel)
  • Raspberry Pi High Quality Camera (12.3-megapixel)
  • Raspbian Buster Lite 2020-02-13

Webcam works with:

  • Windows 10
  • Windows 10 "Camera" app
@pai911
pai911 / _helpers.tpl
Created April 28, 2020 03:30
Add Init Script to Solr Helm chart
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "solr.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{/*
Create a default fully qualified app name.
@raysan5
raysan5 / custom_game_engines_small_study.md
Last active October 12, 2025 19:14
A small state-of-the-art study on custom engines

CUSTOM GAME ENGINES: A Small Study

a_plague_tale

WARNING: Article moved to separate repo to allow users contributions: https://github.com/raysan5/custom_game_engines

A couple of weeks ago I played (and finished) A Plague Tale, a game by Asobo Studio. I was really captivated by the game, not only by the beautiful graphics but also by the story and the locations in the game. I decided to investigate a bit about the game tech and I was surprised to see it was developed with a custom engine by a relatively small studio. I know there are some companies using custom engines but it's very difficult to find a detailed market study with that kind of information curated and updated. So this article.

Nowadays lots of companies choose engines like [Unreal](https:

@KenneyNL
KenneyNL / CircularMenu.cs
Last active June 23, 2022 19:41
Circular menu sample code for Unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CircularMenu : MonoBehaviour{
public float radius = 100.0f;
public float offset = 0.0f;
void Start(){
@gentunian
gentunian / network-order.sh
Last active February 13, 2019 20:31
Prove that docker network order is dict based and compose order is not respected
#!/bin/bash
# autogenerate compose file avoiding file name colisions in the current directory
COMPOSE_FILE_NAME=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 10).xml
cat << EOF > ${COMPOSE_FILE_NAME}
version: "3.4"
services:
alpine:
image: alpine
@pbugnion
pbugnion / 01-install-theia-on-sherlockml.md
Last active June 19, 2019 19:58
Installing theia-ide on SherlockML

Installing Theia on SherlockML

Theia is an IDE that emulates VS code, but with a browser client-server model, rather than a native app. This makes it a natural fit for SherlockML.