Skip to content

Instantly share code, notes, and snippets.

@mozzius
mozzius / happy-path.ts
Created October 18, 2024 20:48
Bluesky video upload - direct upload
import {
AppBskyEmbedVideo,
AppBskyVideoDefs,
AtpAgent,
BlobRef,
} from "npm:@atproto/api";
const userAgent = new AtpAgent({
service: prompt("Service URL (default: https://bsky.social):") ||
"https://bsky.social",
@anastasiarods
anastasiarods / index.ts
Last active November 21, 2024 06:17
Create Farcaster signer
//@ts-nocheck
/* eslint-disable eslint-comments/disable-enable-pair */
/* eslint-disable no-console */
import {
createWalletClient,
http,
toHex,
encodeAbiParameters,
type EncodeAbiParametersReturnType,
type Hex,
@danielml3
danielml3 / kernel-build.sh
Last active November 21, 2024 05:55
Build a QCOM GKI kernel with external modules and generate the module.load files
#!/bin/bash
set -e
KERNEL_TOOLS=/home/daniel/android/lineage-21.0/prebuilts/kernel-build-tools/linux-x86/bin/
CLANG_PATH=/home/daniel/android/lineage-21.0/prebuilts/clang/host/linux-x86/clang-r487747c/bin/
export PATH="$KERNEL_TOOLS:$CLANG_PATH:$PATH"
TARGET=$1
@fredrikasberg
fredrikasberg / btt canbus setup.md
Last active November 21, 2024 05:53
BTT Manta M8P v1.1 + BTT EBB 2209 Canbus setup
@sneal
sneal / inject-tasw.sh
Created November 19, 2024 20:56
BASH script replacement for tile-injector
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
# Crack the tile open into the tasw directory
tasw_tiles=(./pas-windows-*.pivotal)
tasw_tile="${tasw_tiles=[0]}"
unzip "$tasw_tile" -d ./tasw
@RobertTheSable
RobertTheSable / tpdp_for_penguins.md
Last active November 21, 2024 05:17
How to play Touhou Puppet Dance Performance on the Steam Deck

What's in the Guide

This is a guide for how to get Touhou Puppet Dance Performance on the Steam Deck.

These instructions can also be adapted to play on any Linux PC.

This guide will walk through the process to run any of the following:

  • Touhou Puppet Dance Performance (Including the English Patch)
  • Touhou Puppet Dance Performance: Shard of Dreams (Including the English Patch)
  • The Touhou Puppet Dance Performance: Shard of Dreams Extended mod.
@vejvarm
vejvarm / cuda_12.2_installation_on_Ubuntu_20.04
Last active November 21, 2024 05:01 — forked from MihailCosmin/cuda_11.8_installation_on_Ubuntu_22.04
Instructions for CUDA v12.2 and cuDNN 8.7 installation on Ubuntu 20.04 for PyTorch 2.0.0
#!/bin/bash
### steps ####
# verify the system has a cuda-capable gpu
# download and install the nvidia cuda toolkit and cudnn
# setup environmental variables
# verify the installation
###
### to verify your gpu is cuda enable check
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active November 21, 2024 04:24
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user