Skip to content

Instantly share code, notes, and snippets.

View alastair's full-sized avatar

Alastair Porter alastair

View GitHub Profile
I maeded u a lolcat
but ur all asskee.
Im in ur snippet, modifyin ur code.
#!/usr/bin/python
# This script generates URLs to add an AR linking disc n and disc n+1 on a release
# put in your albumidentify dir and run generate_rel.py /path/to/music/*disc*
# The source files need to have the musicbrainz albumid tag in them
import sys
import os
import tag
import albumidentify
alastair@dvorak:~/Projects/mbfs$ ./mbfs.py work/
alastair@dvorak:~/Projects/mbfs$ ls -lR work/
work/:
total 0
drwxr-xr-x 2 alastair alastair 0 2010-06-19 19:44 Eric Marienthal
drwxr-xr-x 2 alastair alastair 0 2010-06-19 19:44 The Beatles
work/Eric Marienthal:
total 0
drwxr-xr-x 2 alastair alastair 0 2010-06-19 19:44 Just Around the Corner
666938 18 655810 18 823343 18 987225 18 339594 18 376244 18 103334 37 889602 37 496505 37 127278 37 865214 37 764632 37 932946 56 906754 56 989016 56 22997 56 550708 56 269295 56 823343 94 339594 94 989016 94 34054 94 255728 94 632152 94 663288 132 673769 132 376244 132 47750 132 782224 132 508955 132 932946 169 22997 169 32696 169 863371 169 65936 169 701152 169 339594 207 926889 207 269295 207 37138 207 508955 207 246844 207 989016 245 550708 245 11316 245 777068 245 1010704 245 509214 245 932946 320 22997 320 550708 320 122582 320 623334 320 420481 320 339594 358 645927 358 193638 358 88525 358 556931 358 846459 358 824970 396 623334 396 381386 396 761087 396 6090 396 654874 396 32733 471 632090 471 381386 471 640595 471 467083 471 267581 471 550708 561 140593 561 394414 561 96773 561 957612 561 258804 561 894038 636 6346 636 739533 636 96773 636 957612 636 258804 636 209260 712 6346 712 739533 712 96773 712 957612 712 258804 712 142731 37 247610 37 674767 37 579546 37 259609 37 509331 37 142731 75 247610
<score>
<measure>
<note pitch="c"/>
<note pitch="c"/>
<note pitch="g"/>
<note pitch="g"/>
</measure>
<measure>
<note pitch="a"/>
<note pitch="a"/>
@alastair
alastair / 1-sin.jpg
Last active December 15, 2015 00:09
Matlab , upsampling sin waves
1-sin.jpg
@alastair
alastair / array.c
Created April 9, 2013 10:28
With some compilers, this will run forever. Why?
int main() {
int array[4];
int i;
for (i = 0; i < 10; i++) {
array[i] = 0;
printf("%d\n", array[i]);
}
}
@alastair
alastair / Untitled1.ipynb
Last active March 26, 2022 14:27
This ipython notebook can be viewed online rendered as HTML at http://nbviewer.ipython.org/5372239
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
static int addone(int a) {
return a + 1;
}
int addtwo(int a) {
return addone(addone(a));
}
[+] Allocated scratch page: 7f8d74a65000
[+] Looking up fds for tty in child.
[+] Resolved child tty: 8806
[+] Found an alias for the tty: 0
[+] Found an alias for the tty: 1
[+] Found an alias for the tty: 2
[+] Opened the new tty in the child: 6
[+] Target is not a session leader, attempting to setsid.
[+] Forked a child: 21409
[+] Change pgid for pid 1119