Skip to content

Instantly share code, notes, and snippets.

View dfischer's full-sized avatar
🔥
cooking

0x44 0x46 dfischer

🔥
cooking
View GitHub Profile
@dfischer
dfischer / single_page_twitter_archive.py
Created December 16, 2024 07:17 — forked from socketteer/single_page_twitter_archive.py
Public Single Page Twitter Archive Exporter
# The vast majority of this code was written by Mistral-large and
# is therefore public domain in the United States.
# But just in case, this script is public domain as set out in the
# Creative Commons Zero 1.0 Universal Public Domain Notice
# https://creativecommons.org/publicdomain/zero/1.0/
import argparse
import json
from datetime import datetime
import html
@dfischer
dfischer / base_chat.py
Created December 16, 2024 06:30 — forked from socketteer/base_chat.py
external_store
import anthropic
import sys
import os
import argparse
client = anthropic.Anthropic() # Will use ANTHROPIC_API_KEY from environment
DEFAULT_STORAGE_FILE = "/tmp/gist_files/continuation.txt"
def get_continuation(text):
#
#
# Instructions can be found https://github.com/ml-explore/mlx-examples/tree/main/lora
#
#
user@mbp lora % curl -O https://files.mistral-7b-v0-1.mistral.ai/mistral-7B-v0.1.tar
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13.4G 100 13.4G 0 0 29.1M 0 0:07:53 0:07:53 --:--:-- 31.6M
FFMPEG '-i', file, '-c:v', 'libopenjpeg', "jpeg2000\\" + name + ".jp2"\
Convert image to jpeg2000
ffmpeg -i in.png -c:v libopenjpeg out.jp2
Hex Edit out.jp2
ffmpeg -i in.jp2 -c:v png out.png
General Edit
ffmpeg -i input.avi -c:v mpeg2video -g 999 -q:v 1 output.avi
*edit in avidemux/whatever*
@dfischer
dfischer / TextEditor.cs
Created January 7, 2024 22:52 — forked from JotaRata/TextEditor.cs
A really really simple text editor for Unity
/*
This is a really simple text editor to be used within Unity
It's useful to write memos, notes or ideas inside your Unity Editor window
Kinda like Blender's Text Editor
*/
using UnityEngine;
using UnityEditor;
using System;
using System.IO;
wC4.....wC4..................................
.04T2073.04T1101.............................
.aV2.....eV1.................................
.............................................
....Ve....Ve....Ve...........................
.02X1..02X1..02X1............................
3I4...4I5...0I6..............................
.3Ad...4A7...3A1.............................
..g11Q..b11Q..411Q#0244902#..................
.....7....A8....a7#0357853#..................
@dfischer
dfischer / 2022-05-02.orca
Created August 22, 2023 05:10 — forked from moxuse/2022-05-02.orca
2022-05-02.orca
.wC8.............1C8.....................................................
..64T4422.........78T12535143.....wC4....................................
..aV2.bV3...........3..............24T5555...............................
..........Va......VaJ.....Va.......8V5...................................
...Va.....2A1.....2A3.....2A3.......0....................................
.sA2pA.VbkA3hA.VbcA59A.Vb4A51A.Vb..s.....................................
..u4OpA3..n4OhA3..h4O9A3..94O1A3.........................................
....0As.....2Ak.....5Ac.....5A4..........................................
.....s1O.....m1O.....h1O.....91O.........................................
.....cVD.....dVE.....eVG.....fVG.#CcDdEFfGgAaBCcDd#......................
@dfischer
dfischer / 2022-05-01.orca
Created August 22, 2023 05:10 — forked from moxuse/2022-05-01.orca
2022-05-01.orca
.gC8.............1C8..............wC4............................................
..68T44226611.....38T21134212......34T2122.......................................
..aV1.bV2...........3..............lV2...........................................
........3Ka.l.....VaJ.....Va.....................................................
...Va.....1A2.....1A3.....1A4....................................................
.sA1pA.VbkA3hA.VbcA49A.Vb4A51A.Vb................................................
..t4OpA2..n4OhA2..g4O9A2..94O1A2.................................................
....0Ar.....3Aj.....5Ab.....7A3..................................................
.....r1O.....m1O.....g1O.....a1O.................................................
.....cVc.....dVE.....eVf.....fVg.#CcDdEFfGgAaBCcDd#..............................
// Control Effects MIDI Guy sound module
// https://github.com/kinoshita-lab/MIDI-guy/
// Orca code
..........................................
....4Uw..R....6Uq..Rt...2Uq..Rt...........
......:022cf....:112af....:731af..........
..........................................
..........................................
@dfischer
dfischer / Orca custom operator
Created August 22, 2023 05:09 — forked from hsitz/Orca custom operator
custom operator for javascript Orca
/* this gist is javascript and goes in the library.js file */
/* that's part of Orca install. I had it between the */
/* 'OperatorMidi' and 'OperatorCC' functions, though that order */
/* is just for organization, not necessary. */
library['~'] = function OperatorMidiWithTranspose (orca, x, y, passive) {
Operator.call(this, orca, x, y, '~', true)
this.name = 'midiwithtranspose'
this.info = 'Sends MIDI note with note transpose'