Skip to content

Instantly share code, notes, and snippets.

@matt-desmarais
matt-desmarais / eliza&openai.py
Created February 28, 2023 02:23
OpenAI Therapy
import openai
import time
import random
import os
import eliza
eliza = eliza.Eliza()
eliza.load('doctor.txt')
# API key for OpenAI API
@LambdAurora
LambdAurora / optifine_alternatives_fabric.md
Last active August 5, 2025 13:20
Recommended OptiFine alternatives on Fabric

The list is moving out!

If you share this list, please use this link instead: https://lambdaurora.dev/optifine_alternatives

It may still be only a redirection link, but it will have a better web display of the list soon. And the list being on GitHub/GitHub pages improves load times.

The gist version of this list will stop being updated.

Why?

@fbaierl
fbaierl / ForkMITLicensedProject.md
Created November 6, 2018 14:17
HOWTO fork a MIT licensed project

No, you are not allowed to change the copyright notice. Indeed, the license text states pretty clearly:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

But you are allowed to add a copyright notice.

If you want to keep the MIT license, which is what I would advise you to do, you only need to add a single line to the license file, before or after Copyright (c) 2012 Some Name with your own copyright notice. The final LICENSE file will look like this:

The MIT License (MIT)

@mu-lippy
mu-lippy / midipipe-youtube-midi-control-advanced-with-seek.applescript
Created February 2, 2018 04:42 — forked from nbogie/midipipe-youtube-midi-control-advanced-with-seek.applescript
Applescript (for Midipipe) to control playback of youtube, vimeo, netflix, etc (in chrome), via MIDI device. Allows control of playback position, volume, playback speed, as well as play/pause, from midi messages.
#returns true if the message represents a positive change of
# the given controller number, as will happen when depressing buttons a midi keyb.
# We ignore messages with value bytes 0, as those are sent on button releases.
on isMidiButtonPressed(msg, controllerNumber)
return (isControlChange(msg, controllerNumber) and (item 3 of msg > 0))
end isMidiButtonPressed
on isControlChange(msg, controllerNumber)
return ((item 1 of msg = 191) and (item 2 of msg = controllerNumber))
end isControlChange
@cimi
cimi / transparent-octocat.html
Last active January 16, 2023 12:24
Transparent octocat outline in SVG
<!-- modified version of github-corners with transparent octocat -->
<a href="https://github.com/cimi/color-automata" class="github-corner" aria-label="View source on Github">
<svg width="80" height="80" viewBox="0 0 250 250" style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
<defs>
<mask id="octomask">
<path fill="white" d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path fill="black" d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 2
@Dinnerbone
Dinnerbone / minecraft_commands.txt
Last active August 29, 2024 17:22
Minecraft Java Edition 1.13 changes
advancement grant <targets> everything
advancement grant <targets> from <advancement>
advancement grant <targets> only <advancement>
advancement grant <targets> only <advancement> <criterion>
advancement grant <targets> through <advancement>
advancement grant <targets> until <advancement>
advancement revoke <targets> everything
advancement revoke <targets> from <advancement>
advancement revoke <targets> only <advancement>
advancement revoke <targets> only <advancement> <criterion>
@dlublin
dlublin / ffmpeg-hap-readme.md
Created April 18, 2017 13:40
Encoding to Hap from the command line using FFmpeg

Encoding to Hap from the command line using FFmpeg

For users who prefer working with a command line or need to access advanced encoding settings for Hap the popular FFmpeg library can be used to work with Hap movies.

  1. If this is your first time using FFmpeg you may need to install it on your system, or compile it from source. In either case be sure that Snappy is enabled as part of the binary. If you already have FFmpeg on your system with Snappy enabled, you can skip this step.

    You can check that your version of FFmpeg can encode Hap using

    ffmpeg -encoders | grep hap
    
@cramsay
cramsay / tem.sh
Last active January 8, 2017 06:28
Undertale's Temmie Village "tem pay 4 colleg" script
#!/bin/bash
#Have Undertale running. Be in shop in Temmie Village with cursor over "Buy".
#This script will buy lots of "tem flake (ON SALE,)" and sell them for 1 more money per piece.
#We do this not for profit, but for tem colleg fund :3
xdotool windowactivate --sync $(xdotool search "UNDERTALE" | head -n 1); for i in {1..100}; do xdotool key --delay 120 z Down z z z z z z z z z z z z z z z z x Down z z z z z z z z z z z z z z z z z Up; done
@rockhymas
rockhymas / minecraftseeds.txt
Last active May 5, 2020 02:47
Minecraft seeds that generate all biomes within 5000 blocks
Over the last year or so, I've been using MineAtlas to compile a nice long list of seeds that have all biomes within 5000 blocks.
Specifically, I looked to make sure each seed has ice spikes, jungle, mega taiga, mushroom island, and mesa biomes within 5000
blocks of 0, 0. I do this so that when I want to start a new world, I can pick one of these, trusting that it
will be a good world to explore, but without having just seen a map. That way I don't know where everything is, just that it's all
close enough to make it worth it.
243091048059118
-828131664763204
-761676406782751
-376708943228782
@wboykinm
wboykinm / index.html
Created May 24, 2016 00:37 — forked from pgiraud/index.html
D3js save SVG file
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {