Skip to content

Instantly share code, notes, and snippets.

@gpshead
gpshead / Dockerfile
Last active May 14, 2024 21:38
Build a Linux 4 Tegra with CUDA Ubuntu 22.04 docker image for the nVidia Jetson Nano using its final JetPak 4.6.3
# Make an Ubuntu 22.04 Docker image supporting CUDA and Linux 4 Tegra stuff on
# the nVidia Jetson Nano. I ran this from the final nano Linux 4 Tegra JetPak
# image aka jetson-nano-jp461-sd-card-image.zip which I updated to 4.6.3
# using apt. -- @gpshead
#
# Is there any real point to doing this? I have no idea. :P
# If you don't care about toying with the GPU stuff, just go install Armbian.
#
# This is based off of the instructions on
# https://github.com/NVIDIA/nvidia-docker/wiki/NVIDIA-Container-Runtime-on-Jetson
@mwaskom
mwaskom / SDT_Tutorial.ipynb
Last active May 14, 2024 21:37
Translation of Justin Gardner's Signal Detection Theory tutorial from MATLAB into Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HomemadeToast57
HomemadeToast57 / AnimalWell.py
Created June 10, 2022 00:33
Animal Well Puzzle
# Python code written by @HomemadeToast57 (twitter) for the Animal Well puzzle :). Thank you to the devs and the community for this wonderful experience!
import numpy as np
# string given at https://animalwell.net/fountain
string = "amtmc xumuacm fcze mtnd ysi wehlnd vtgowqkw oqsaa diqgewa hhrpsi cq pf pftqd uh gijdugr"
# key found in trailer for the game
key = "waterfall"
@saratrajput
saratrajput / mujoco_py_install_instructions.md
Created January 27, 2022 08:26
Mujoco and Mujoco-py Installation Instructions

Mujoco and Mujoco-py Installation Instructions

The steps are taken from this video and document with some small changes.

Steps

  1. Install Anaconda. Download it from this link.
cd Downloads/
sudo chmod +x Anaconda3-2021.11-Linux-x86_64.sh
./Anaconda3-2021.11-Linux-x86_64.sh
@Artefact2
Artefact2 / README.md
Last active May 14, 2024 21:35
GGUF quantizations overview

Which GGUF is right for me? (Opinionated)

Good question! I am collecting human data on how quantization affects outputs. See here for more information: ggerganov/llama.cpp#5962

In the meantime, use the largest that fully fits in your GPU. If you can comfortably fit Q4_K_S, try using a model with more parameters.

llama.cpp feature matrix

See the wiki upstream: https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix

@cmer81
cmer81 / cloudflareddns6.sh
Last active May 14, 2024 21:35
dynamic dns IPV6 script for Synology
#!/bin/sh
# cloudflareddns6.sh - dynamic dns IPV6 updater module for Synology
#
# Author:
# Cedric Mercier
#
# Version:
# 0.1
#
@jerrysu
jerrysu / cloudflare.php
Last active May 14, 2024 21:33
Cloudflare DDNS Provider for Synology DiskStation
#!/usr/bin/php -d open_basedir=/usr/syno/bin/ddns
<?php
/**
* This script is used to add Cloudflare as a service provider to DDNS settings on a Synology DiskStation.
*
* This file goes in `/usr/syno/bin/ddns/cloudflare.php`. Edit `/etc.defaults/ddns_provider.conf` and add
* the Cloudflare for it to appear in the "Service provider" list:
*
* [Cloudflare]
@modyari
modyari / VectorExtensions.cs
Created September 13, 2021 16:14
(Unity) Modifies a Vector's component and returns it
using UnityEngine;
public static class VectorExtensions
{
/// <summary>
/// Returns a modified version of the vector with one or more components modified
/// </summary>
/// <param name="x">X component to modify</param>
/// <param name="y">Y component to modify</param>
/// <returns>A modified version of the vector with the passed component configurations</returns>
@gtrabanco
gtrabanco / object-group-by.js
Last active May 14, 2024 21:30
Object.groupBy polyfill
if(typeof Object.groupBy === typeof undefined) {
Object.groupBy = (arr, callback) => {
return arr.reduce((acc = {}, ...args) => {
const key = callback(...args);
acc[key] ??= []
acc[key].push(args[0]);
return acc;
}, {})
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Clickable Swedish Keyboard Layout</title>
<style>
body {
display: flex;
justify-content: center;