Skip to content

Instantly share code, notes, and snippets.

@kconner
kconner / macOS Internals.md
Last active November 13, 2024 07:51
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@yoavg
yoavg / LLMs.md
Last active October 30, 2024 08:38

Some remarks on Large Language Models

Yoav Goldberg, January 2023

Audience: I assume you heard of chatGPT, maybe played with it a little, and was imressed by it (or tried very hard not to be). And that you also heard that it is "a large language model". And maybe that it "solved natural language understanding". Here is a short personal perspective of my thoughts of this (and similar) models, and where we stand with respect to language understanding.

Intro

Around 2014-2017, right within the rise of neural-network based methods for NLP, I was giving a semi-academic-semi-popsci lecture, revolving around the story that achieving perfect language modeling is equivalent to being as intelligent as a human. Somewhere around the same time I was also asked in an academic panel "what would you do if you were given infinite compute and no need to worry about labour costs" to which I cockily responded "I would train a really huge language model, just to show that it doesn't solve everything!". We

@cirrusUK
cirrusUK / d0cum3ntaries.m3u
Created October 2, 2022 23:29
934 documentaries m3u plsylist
#EXTM3U
# Playlist created by SMPlayer 22.7.0 (revision 10091)
#EXTINF:0,https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.PROPER.WEBRip.x264-ION10_www.Downloadha.com_.mp4
https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.PROPER.WEBRip.x264-ION10_www.Downloadha.com_.mp4
#EXTINF:0,https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.REPACK.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTb_www.Downloadha.com_.mkv
https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.REPACK.1080p.AMZN.WEB-DL.DDP2.0.H.264-NTb_www.Downloadha.com_.mkv
#EXTINF:0,https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.REPACK.720p.AMZN.WEBRip.DDP2.0.x264-NTb_www.Downloadha.com_.mkv
https://doc.downloadha.com/Behnam/Documentaries/February2018/Animals.with.Cameras.S01E01.REPACK.720p.AMZN.WEBRip.DDP2.0.x264-NTb_www.Downloadha.com_.mkv
#EXTINF:0,https://doc.downloadha.com/B
@smitelli
smitelli / ti250tool.py
Created May 31, 2022 19:51
Klein Tools TI250 image tool
# Klein Tools TI250 image tool by Scott Smitelli. Public domain.
# Requires at least Python 3.6 (developed and tested on 3.9)
# See https://www.scottsmitelli.com/articles/klein-tools-ti250-hidden-worlds
import argparse
import numpy as np
import re
import struct
from PIL import Image, ImageDraw

How to make a small tweak to free software

The target audience for this is people who are beginners at software engineering and using linux. A lot of the information here may be obvious or already known to you. The language involved is C but you do not need to know any C to read this tutorial. I used mg to write this blog post. I used vs code to edit the source code.

This post is also available on gopher://tilde.team:70/0/~river/tweak-free-software

If you use a piece of free software and it's 99% perfect but there's just this one thing it does that annoys the hell out of you.. you can in theory just fix it! Here's a look at what doing that is like. Hopefully it inspires you, or you pick up a could tricks on the way!

Step 0: Have a problem

@moyix
moyix / neox_20B_math.txt
Created February 10, 2022 16:16
Results of asking GPT-NeoX-20B some math questions
Question Real Guess Correct?
What is 28142 + 16738? 44880 45180 No
What is 9690 - 18711? -9021 -9321 No
What is 10365 - 11572? -1207 -1207 Yes
What is 12420 + 20678? 33098 32998 No
What is 17051 + 29637? 46688 46488 No
What is 10052 * 6572? 66061744 65655584 No
What is 9276 - 28689? -19413 -18213 No
What is 7924 - 12216? -4292 -4292 Yes
What is 1867 * 23864? 44554088 4427444 No
@amandaghassaei
amandaghassaei / golden_angle_animation.md
Last active January 3, 2024 01:11
Golden Angle Animation using ffmpeg

Golden Angle Animation using ffmpeg

Update: I've turned this into a web app!

This is a single line command to generate a "golden angle" animation by rotating an image in increments of 137.5 degrees. Try this out on images of pinecones, succulents, flowers, fruits, and vegetables – anything that exhibits fibonacci spirals. I'll post some examples in the comments below.

I came across this idea while reading about the artist John Edmark, who creates hypnotizing zoetrope sculptures. He said in an interview that you could take a pineapple or pinecone and put it on a turntable with a strobe light for the same effect, and I wanted to test it out.

Steps To Use:

@befinitiv
befinitiv / cam.py
Created September 21, 2021 13:19
Super 8 camera code
#!/usr/bin/python
import glob
import socket
import time
from threading import Timer
import picamera
import RPi.GPIO as GPIO
@0xabad1dea
0xabad1dea / copilot-risk-assessment.md
Last active September 11, 2023 10:21
Risk Assessment of GitHub Copilot

Risk Assessment of GitHub Copilot

0xabad1dea, July 2021

this is a rough draft and may be updated with more examples

GitHub was kind enough to grant me swift access to the Copilot test phase despite me @'ing them several hundred times about ICE. I would like to examine it not in terms of productivity, but security. How risky is it to allow an AI to write some or all of your code?

Ultimately, a human being must take responsibility for every line of code that is committed. AI should not be used for "responsibility washing." However, Copilot is a tool, and workers need their tools to be reliable. A carpenter doesn't have to

@ssokolow
ssokolow / strip_emoji.py
Created March 17, 2021 21:09
Simple script to rename non-BMP Unicode characters out of file and folder names, recursively
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Strip emoji and other non-BMP codepoints from paths to make them compatible
with mkisofs/genisoimage"""
# Prevent Python 2.x PyLint from complaining if run on this
from __future__ import (absolute_import, division, print_function,
with_statement, unicode_literals)
__author__ = "Stephan Sokolow (deitarion/SSokolow)"