Skip to content

Instantly share code, notes, and snippets.

View philippeback's full-sized avatar
👽
Hackin'

Philippe Back philippeback

👽
Hackin'
View GitHub Profile
@philippeback
philippeback / Hakai39.md
Created June 27, 2026 11:14
Hakai Firmware 3.9

@everyone

Hakai v2026-06-21:

This will give you MPC firmware 3.9.0 + All of the Hakai Mojo.


Trouble shooting: If your MPC doesn't want to update with this Hakai firmware please make sure that you are not running the Hakai driver, if so unplug your external midi controller and reboot and try again. If you're not running the Hakai driver just reboot and try again. If it still not working than check your USB Drive/SD card name it anything but not "HAKAI" and try again. As a last resort do the official Akai update by using a PC tethered with a USB cable. After doing so try this firmware again, this will surely work.


class Solution:
def wanted(this, number, target):
return target - number
def twoSum(self, nums: List[int], target: int) -> List[int]:
wanted_dict = {}
for i in range(0, len(nums)):

Eliot Miranda Eliot Miranda, Author of the Cog and BrouHaHa Smalltalk VMs. Ex tech lead for VisualWorks Smalltalk ('99 - '06). Updated Dec 6

I’m not qualified to answer this question; I’m a very experienced and quite strong programmer but I’ve not studied the development and maintenance of large programs, I’ve not managed teams, and I’ve not invented a programming methodology. That said, my experience tells me that the following (none of which are mine) are the rules to live by

KISS, Keep It Simple, Stupid.

When possible, use a simple approach. Adapting Einstein, programs should be as simple as possible, but no simpler. In the absence of perfect optimizers this principle may have to be violated if one is producing a system whose performance is critical and which is run many more times than it is written (such as in an optimizer).

Make it run, make it right, make it fast. In that order.

@philippeback
philippeback / fixpackages.sh
Created January 9, 2019 17:29
Fix Spark Course VM for packages install
#
# To be able to install packages in the VM (since the Linux version used is not supported anymore)
#
# (I wanted vim and mc in there)
#
# Run this as root / sudo
cd /etc/apt
cp sources.list sources.list.backup
sed -i -- 's/\/security/\/old-releases/g' sources.list
s := World instVarNamed: #worldState.
l := s instVarNamed: #stepList.
morphs := l collect: #receiver thenSelect: [ :e | e isKindOf: TransferMorph ].
morphs do: [ :each | s stopStepping: each ].
morphs := nil.
Transcript announcer initialize.
Smalltalk garbageCollect.
SystemWindow allInstances
@philippeback
philippeback / PharoAndStrings.st
Created December 13, 2018 21:53
Pharo and strings fun
words := #('Peek' 'Geek' 'Coke' 'Poke' 'Meaning' 'Zapping' 'Delta' 'force' 'GEEK' 'CoKE' 'ORCa').
forbiddenWords := #('ok' 'eek' 'orc').
words
select: [ :word |
(forbiddenWords
inject: 0
into: [ :sum :forbidden |
sum + (word
findString: forbidden
@philippeback
philippeback / clearwin.st
Created December 11, 2018 21:03
Clear SystemWindows
RubFindReplaceService cleanUp.
EditorFindReplaceDialogWindow cleanUp.
SystemWindow allSubInstances do: [ :each | (each privateOwner: World) ].
SystemWindow allInstances do: [ :w | w openInWorld ].
100 timesRepeat: [ World doOneCycle ].
SystemWindow allInstances do: [ :w | Halt now. w delete ].
100 timesRepeat: [ World doOneCycle ].
SystemWindow allInstances.
Smalltalk garbageCollect
http://ws.stfx.eu/ETS1OXWPQIXK
a) Spec
~~~~~~~~~~~
tm := TextModel new.
tm autoAccept: true. "otherwise you would have to pres ctrl+s to 'save' the result in memory"
tm openWithSpec. "this will open text window
"and then you can do"
tm text. "retrieve current text from the TextModel (returns an instance of Text)"
tm text: 'new content' "set a new content"

Cleaning Audio from Lecture

  • Noise removal
  • Limiter (-8,21.5) (need to install)
  • Normalize
  • Compressor
  • Low pass filter 8000
  • Hi pass filter 100