Skip to content

Instantly share code, notes, and snippets.

@zaxebo1
zaxebo1 / submit_acoustid_fingerprint.py
Created September 28, 2020 17:52 — forked from pirtleshell/submit_acoustid_fingerprint.py
Easily create a musical fingerprint from an MP3 and submit it to AcoustId with musicbrainz recording id (must be embedded in MP3).
import acoustid # the library for creating the fingerprints
import urllib.request # for sending the request to AcoustId's server
from mutagen.id3 import ID3 # for extracting the musicbrainz recording id
def main():
api_key = YOUR_API_KEY # find it at https://acoustid.org/api-key
path = '/path/to/directory/of/music'
songs = ['song1.mp3', 'anothersong.mp3'] # an array of the songs in that path
paths = [path + song for song in songs]
for i,song in enumerate(paths):
@zaxebo1
zaxebo1 / Gtk3Demo.kt
Created September 26, 2020 05:21 — forked from kropp/Gtk3Demo.kt
GTK+ Demo Application in Kotlin/Native rewritten in OO-style
/*
* Copyright 2010-2017 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@zaxebo1
zaxebo1 / A.markdown
Created September 6, 2020 23:45 — forked from larrybotha/A.markdown
Merge wiki updates that are on a fork of your repo.

Merge Wiki Changes From A Forked Github Repo

This is inspired (or basically copied) from How To Merge Github Wiki Changes From One Repository To Another, by Roman Ivanov, and serves to ensure that should something happen to the original article, the information remains nice and safe here.

Terminology

OREPO: original repo - the repo created or maintained by the owner

FREPO: the forked repo that presumably has updates to its wiki, not yet on the OREPO

@zaxebo1
zaxebo1 / jinjava.md
Created July 14, 2020 02:32 — forked from raprasad/jinjava.md
jinjava example
  • pom.xml
 <dependency>
               <groupId>com.hubspot.jinjava</groupId>
               <artifactId>jinjava</artifactId>
               <version>2.2.0</version>
             </dependency>
@zaxebo1
zaxebo1 / include.asciidoc.txt
Created July 13, 2020 13:42 — forked from mojavelinux/include.asciidoc.txt
A sample AsciiDoc file for testing Asciidoctor.
== Included Section
Look, I came from out of the [blue]#blue#!
--
I'm keepin' it open.
An 'open block', like this one, can contain other blocks.
It can also act as any other block. (TODO)
@zaxebo1
zaxebo1 / Main.hx
Created July 4, 2020 08:43 — forked from YellowAfterlife/Main.hx
Simplistic .properties parser
class Main {
static function parseProperties(text:String):Map<String, String> {
var map:Map<String, String> = new Map(),
ofs:Int = 0,
len:Int = text.length,
i:Int, j:Int,
endl:Int;
while (ofs < len) {
// find line end offset:
endl = text.indexOf("\n", ofs);
@zaxebo1
zaxebo1 / Console.hx
Created June 26, 2020 14:19 — forked from jasononeil/Console.hx
A really simple proof of concept for a haxe interactive shell
/**
A super basic interactive console for haxe.
Done because someone on the mailing list asked and I got distracted :)
Consider this code Public Domain.
Jason O'Neil
Run using:
haxe -lib hscript -x Console.hx
(you will need hscript installed via haxelib)
@zaxebo1
zaxebo1 / build-static-python.sh
Created September 26, 2018 10:47 — forked from maddouri/build-static-python.sh
A simple script that builds static versions of Python and LibPython using musl-libc
#!/bin/bash
# set -eux
# This a simple script that builds static versions of Python and LibPython using musl-libc
# Find the associated article at: http://general-purpose.io/2015/12/06/compiling-python-and-libpython-statically-using-musl-libc/
WORKING_DIR="/code/static-python"
MUSL_PREFIX="/code/static-python/musl"
PY_PREFIX="/code/static-python/python"
@zaxebo1
zaxebo1 / scrdec18-VC8.exe
Created September 20, 2018 02:40 — forked from bcse/scrdec18-VC8.exe
Windows Script Decoder 1.8 (Decoding JScript.Encoded)
@zaxebo1
zaxebo1 / README.md
Created September 10, 2018 06:09 — forked from tyrcho/README.md
Scala from (Windows) command line

A sample batch file running a scala script with process to call external commands.

The same can be done for *nix systems.