Skip to content

Instantly share code, notes, and snippets.

View theorigin's full-sized avatar

Andy Robinson theorigin

View GitHub Profile
@adtac
adtac / README.md
Last active April 7, 2025 12:59
Using your Kindle as an e-ink monitor

3.5 fps, Paperwhite 3
@adtac_

step 1: jailbreak your Kindle

mobileread.com is your best resource here, follow the instructions from the LanguageBreak thread

I didn't really follow the LanguageBreak instructions because I didn't care about most of the features + I was curious to do it myself, but the LanguageBreak github repo was invaluable for debugging

@mocella
mocella / azure-pipelines.yml
Created November 9, 2022 13:37
Azure Pipeline Step to Scan for .NET Dependency CVEs
- task: PowerShell@2
displayName: "NuGet packages vulnerabilities scan"
continueOnError: false
inputs:
filePath: '$(Build.SourcesDirectory)/nuget-vunerability-build-fail-report.ps1'
arguments: '''$(Build.SourcesDirectory)'' ''$(SolutionName)'''
pwsh: true
@secretGeek
secretGeek / FileStashy.cs
Last active November 27, 2024 13:52
FileStashy (and IStashy)
// Below is an implementation of "IStashy" that saves/loads your objects as Json, in files, in a subfolder named after the type of the Object.
// First, here's the IStashy Interface itself:
public interface IStashy<K>
{
void Save<T>(T t, K id);
T Load<T>(K id);
IEnumerable<T> LoadAll<T>();
void Delete<T>(K id);
K GetNewId<T>();
@nathonius
nathonius / Startup.cs
Last active May 15, 2020 14:32
UseWebpackDevMiddleware
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
if (Dependencies.DevOptions.UseWebpackDevMiddleware) // comes from appsettings
{
#pragma warning disable CS0618 // Type or member is obsolete
app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
{
@straker
straker / README.md
Last active April 10, 2025 10:58
Basic Tetris HTML and JavaScript Game

Basic Tetris HTML and JavaScript Game

This is a basic implementation of the game Tetris, but it's missing a few things intentionally and they're left as further exploration for the reader.

Further Exploration

@RickardAhlstedt
RickardAhlstedt / Exit.cs
Created July 24, 2019 07:17 — forked from IronMonk-UK/Exit.cs
The C# code for the Text Adventure
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TextAdventure
{
class Exit
{
@aleofreddi
aleofreddi / cognito_get_all_users.sh
Last active September 20, 2024 16:13
AWS Cognito: list all users
#!/bin/sh
#
# Dump AWS Cognito users as CSV output.
#
# Thu Jun 20 15:31:10 CEST 2019, Andrea Leofreddi
#
me="`basename $0`"
if [ $# != 1 ]; then
echo Usage: "$me" pool_id >&2
@kjnilsson
kjnilsson / async_consumer.cs
Last active December 17, 2024 10:07
RabbitMQ .NET client async consumer example
using System;
using System.Threading.Tasks;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
namespace ConsoleApplication
{
public class Program
{
public static void Main(string[] args)
@IronMonk-UK
IronMonk-UK / Exit.cs
Created March 7, 2016 13:13
The C# code for the Text Adventure
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TextAdventure
{
class Exit
{