Skip to content

Instantly share code, notes, and snippets.

View ssakone's full-sized avatar
🏠
Working from home

0xEnokas ssakone

🏠
Working from home
View GitHub Profile
@ssakone
ssakone / m2
Created October 26, 2025 12:41
~/.local/bin/m2
#!/bin/bash
export ANTHROPIC_BASE_URL=https://api.minimax.io/anthropic
export ANTHROPIC_AUTH_TOKEN="$M2_TOKEN"
export ANTHROPIC_MODEL=MiniMax-M2
export ANTHROPIC_DEFAULT_SONNET_MODEL=MiniMax-M2
export ANTHROPIC_DEFAULT_OPUS_MODEL=MiniMax-M2
export ANTHROPIC_DEFAULT_HAIKU_MODEL=MiniMax-M2
claude $@
import os
import openai
import sys
import json
import os
openai.organization = ""
openai.api_key = ""
_reset = [{"role": "system", "content": "Your are my assistant in my terminal environment and you print your response according macos terminal good visibility"}]
unique = False
chat = json.loads(open("/tmp/openai.txt", "r").read())
@ssakone
ssakone / wawanimes.py
Last active July 26, 2022 11:52
Wawanime last episode, fetch script
import requests
from tabulate import tabulate
from bs4 import BeautifulSoup as soup;
print(tabulate([[item.article.a.h3.text,item.article.a.div.figure.figcaption.span.text, item.article.a.span.text, "https://wawanimes.tv/" + item.article.a['href']] for item in soup(requests.get("https://wawanimes.tv/").text, features="lxml").find('ul',{'class':'MovieList Rows BX B06 C04 E03 NoLmtxt Episodes'}).find_all('li')]
, headers=["Titre", "Episode", "Date","Lien"], tablefmt="grid"))
@ssakone
ssakone / F680.py
Last active July 17, 2023 19:12
F680 This script auto reset dns configuration.
class OO0O00OOO00O00OO0 :
def __init__ (O0OO0OO00O000O0O0 ):
O0OO0OO00O000O0O0 .__O0OO0OOO0OO0OO00O ()
O0OO0OO00O000O0O0 .__OOO0O00O00OOO00OO ()
O0OO0OO00O000O0O0 .__OOO000O0O00000OO0 ()
O0OO0OO00O000O0O0 .__OO0OOOO000000OOO0 ()
O0OO0OO00O000O0O0 .__O00OO00OO00OO000O ()
O0OO0OO00O000O0O0 .__O000000O000000O0O ()
O0OO0OO00O000O0O0 .__O0OO000OOO000OO0O ()
O0OO0OO00O000O0O0 .__O0O0OOO0OOOO0O000 ()

How to setup environ to build MLPack in C++ wasm project.

  1. Install emscripten Emscripten is a complete compiler toolchain to WebAssembly, using LLVM, with a special focus on speed, size, and the Web platform.

Create wasm folder first in user home folder

after go inside