Skip to content

Instantly share code, notes, and snippets.

View wufe's full-sized avatar

Simone Bembi wufe

View GitHub Profile
@adtac
adtac / README.md
Last active April 26, 2025 09:06
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

How to install game-porting-toolkit (aka proton for macOS)

You also might wanna just use Whisky which does this automatically

This guide works on macOS 13.4+ using Command Line Tools for XCode 15 Beta!

What is this?

In the recent WWDC, Apple announced and released the "game porting toolkit", which upon further inspection this is just a modified version of CrossOver's fork of wine which is a "compatibility layer" that allows you to run Windows applications on macOS and Linux.

@sim2kid
sim2kid / Unity Stadia Controller Input.md
Last active October 21, 2024 19:48
Google Stadia Controller Support in Unity's New Input System (1.2+) With full button mapping. Haptics not supported. You should be able to drag and drop this in your project for Stadia controller support

Unity Stadia Controller Input

This gist has been moved to a repo for better maintainability. Please visit sim2kid/UnityStadiaController for package details and installation.

About

This package adds definition for the Google Stadia Controller to Unity's Input System allowing for the use of a Stadia Controller natively with Unity.

@koshatul
koshatul / README.md
Last active April 26, 2025 02:19
use Apple Keychain to store GPG Passphrases

gpg-agent setup

Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)

$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *
@thejmazz
thejmazz / docker-compose.yml
Last active February 21, 2022 22:46
Example using docker compose v2 health check depends on and tmpfs to store Vault secrets ephemeral with container
version: '2.3'
services:
init:
image: vault
container_name: minio_init
environment:
VAULT_ADDR: https://10.110.1.9:8200
VAULT_CACERT: /run/secrets/chain.pem
volumes:
package main
import (
"fmt"
"github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/crypto"
)
@nerdyman
nerdyman / resolve-tsconfig-path-to-webpack-alias.js
Last active March 26, 2025 13:00
Convert TypeScript tsconfig paths to webpack alias paths
const { resolve } = require('path');
/**
* Resolve tsconfig.json paths to Webpack aliases
* @param {string} tsconfigPath - Path to tsconfig
* @param {string} webpackConfigBasePath - Path from tsconfig to Webpack config to create absolute aliases
* @return {object} - Webpack alias config
*/
function resolveTsconfigPathsToAlias({
tsconfigPath = './tsconfig.json',
@arranbartish
arranbartish / protractor.conf.js
Created March 17, 2017 11:51
Protractor + mocha config for typescript
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
exports.config = {
allScriptsTimeout: 11000, // Timeout of each script
specs: [
'./e2e/**/*.e2e-spec.ts' // pattern for your tests
],
baseUrl: 'http://localhost:4200/', // URL of your SUT
capabilities: {
@nathankerr
nathankerr / Info.plist
Last active September 28, 2024 00:41
Registering a Go app as a protocol handler under Mac OS X
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>myapp</string>
<key>CFBundleIdentifier</key>
<string>com.pocketgophers.myapp</string>
<key>CFBundleURLTypes</key>
<array>
@vquaiato
vquaiato / startup_extension.cs
Created October 7, 2016 12:41
Extension for ASP.NET Core Startup to return 401 on unauthorized API calls
public static IApplicationBuilder Use401ForUnauthorizedApiCalls(this IApplicationBuilder app)
{
app.Use(async (context, next) =>
{
if (context.Request.Path.Value.Contains("/api") &&
(context.User == null ||
context.User.Identity == null ||
!context.User.Identity.IsAuthenticated))
{
context.Response.StatusCode = 401;