Skip to content

Instantly share code, notes, and snippets.

View meaku's full-sized avatar

Michael Jaser meaku

View GitHub Profile
@meaku
meaku / AI_CLOUD_SUSTAINABILITY.md
Last active July 22, 2025 11:00
AI_CLOUD_SUSTAINABILITY.md

How to use popular closed LLMs with a focus on data privacy and sustainability

Most of the LLM traffic is handled by the hyperscalers (GCP, Azure, AWS) and we can only guess where they host their models.

Based on strategic investments and agreements, we assume that:

Let's take a look the hypescalers and their respe

(()=>{var Kt=Object.create;var lt=Object.defineProperty,zt=Object.defineProperties,Yt=Object.getOwnPropertyDescriptor,Qt=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertyNames,kt=Object.getOwnPropertySymbols,ee=Object.getPrototypeOf,At=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;var Pt=(t,o,r)=>o in t?lt(t,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[o]=r,k=(t,o)=>{for(var r in o||(o={}))At.call(o,r)&&Pt(t,r,o[r]);if(kt)for(var r of kt(o))ne.call(o,r)&&Pt(t,r,o[r]);return t},H=(t,o)=>zt(t,Qt(o));var re=(t,o)=>()=>(o||t((o={exports:{}}).exports,o),o.exports);var oe=(t,o,r,i)=>{if(o&&typeof o=="object"||typeof o=="function")for(let a of te(o))!At.call(t,a)&&a!==r&&lt(t,a,{get:()=>o[a],enumerable:!(i=Yt(o,a))||i.enumerable});return t};var ie=(t,o,r)=>(r=t!=null?Kt(ee(t)):{},oe(o||!t||!t.__esModule?lt(r,"default",{value:t,enumerable:!0}):r,t));var Mt=(t,o,r)=>{if(!o.has(t))throw TypeError("Cannot "+r)};var T=(t,o,r)=>(Mt(t,o,"read from private field"),r?r.call(t):o
@meaku
meaku / test.js
Created October 6, 2021 09:58
test.js
Hello2();
@meaku
meaku / params.js
Created April 21, 2020 18:51
something qs.stringify with indice style for UrlSearchParams
function appendObject(params, obj, prefix) {
for (let key of Object.keys(obj)) {
if (typeof obj[key] === "object") {
appendObject(params, obj[key], prefix ? `${prefix}[${key}]` : key);
} else {
params.append(prefix ? `${prefix}[${key}]` : key, obj[key]);
}
}
return params;
//PIN 12 (BCM18)
const ws281x = require("rpi-ws281x-native");
const numLeds = 10;
ws281x.init(numLeds);
let pixelData = new Uint32Array(numLeds);
pixelData = [
[255,0,0],
# set default Maildir
MAILDIR="$HOME/Maildir"
# check if we're called from a .qmail-EXT instead of .qmail
import EXT
if ( $EXT )
{
# does a vmailmgr user named $EXT exist? if yes, deliver mail to his Maildir instead
CHECKMAILDIR = `dumpvuser $EXT | grep '^Directory' | awk '{ print $2 }'`
if ( $CHECKMAILDIR )
@meaku
meaku / pi-temp.js
Last active February 6, 2017 16:31
"use strict";
//hardware modules
const Raspi = require("raspi-io");
const five = require("johnny-five");
const board = new five.Board({
io: new Raspi()
});
//networking modules
@meaku
meaku / sim
Created November 4, 2016 16:17
"use strict";
const performance = window.performance;
function streamedPolling(baseUrl, onItem) {
return fetch("https://" + baseUrl + "/streamed-polling")
.then(response => {
const decoder = new TextDecoder();
const reader = response.body.getReader();
let buffer = "";
"use strict";
/**
* convert blueprint to a postman collection
* pretty much a dirty port of https://github.com/pixelfusion/blueman
*/
var fs = require("fs"),
path = require("path"),
inspect = require("util").inspect,
function failing() {
return new Promise((resolve, reject) => {
setTimeout(function() {
reject(new Error("failed"));
},10);
});
}