Skip to content

Instantly share code, notes, and snippets.

View dfischer's full-sized avatar

0x44 0x46 dfischer

View GitHub Profile
#
#
# 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'

A Hacker's Guide to learning rhythm and lead guitar FAST!

I've been playing guitar for over 30 years. I never took formal lessons - only ocassional ones targeted to a specific topic. I love the discovery process and the relationship I've created with the instrument.

Five years ago or so, I had an a-ha moment, which fundamentaly changed the way I approach my learning of the guitar. After internalizing all the content I consumed, I thing I've come up with a formula for learning both rhythm and lead guitar in a very streamlined and systematic fashion. This method will teach you how to find chords across the entire fretboard so you can create chord progresssions for your own songs, or to make it easier to figure out the chords of your favorite songs.

However, what I like the most about it is that it gets you ready to play lead guitar, without putting too much emphasis on the pentatonic scale. Also, it teaches the guitar from the standpoint of understanding its symetry, and dare I say, the mathematics

program dither
integer :: status,unit,readwrite,blocksize,naxes(2),nfound
integer :: group,npixels,bitpix,naxis,i,j,fpixel,un
real :: nullval,diff_mat(3,2),perr
real, allocatable :: image(:,:), error(:,:)
integer, allocatable :: seed(:)
logical :: anynull,simple,extend
character(len=80) :: filename
call random_seed(size=Nrand)