Skip to content

Instantly share code, notes, and snippets.

View un1tz3r0's full-sized avatar
🕶️
acting natural

Victor Condino un1tz3r0

🕶️
acting natural
View GitHub Profile
@sbusso
sbusso / resume.json
Last active October 26, 2023 15:24
resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Stéphane BUSSO",
"label": "Tech Leader | Architect | Developer | Web3 | Blockchain | SaaS",
"image": "",
"email": "[email protected]",
"phone": "+642108923834",
"summary": "As an experienced engineering manager and technical leader, I enjoy helping companies grow their teams, design and develop better software solutions, be agile, and deliver quality products and services faster.",
"location": {
@un1tz3r0
un1tz3r0 / clipfetch.py
Last active August 15, 2022 01:53
clipfetch
#!/usr/bin/python3
#%pip install click clip-retrieval img2dataset aiomultiprocess aiohttp aiofile
from clip_retrieval.clip_client import ClipClient, Modality
import json, pathlib, functools
import aiomultiprocess, asyncio, aiohttp, aiofile
from aiohttp import request, ClientTimeout
from aiomultiprocess import Pool
import click
@un1tz3r0
un1tz3r0 / stylegan3_fine_tuning_with_colab_2022_01_01.ipynb
Last active July 30, 2024 20:46
stylegan3_training_and_inference_2024_07_30_updated.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shawwn
shawwn / since2010.md
Created May 11, 2021 09:46
"What happened after 2010?"

This was a response to a Hacker News comment asking me what I've been up to since 2010. I'm posting it here since HN rejects it with "that comment is too long." I suppose that's fair, since this ended up being something of an autobiography.

--

What happened after 2010?

@un1tz3r0
un1tz3r0 / kmeans_elbow.py
Last active July 27, 2021 04:13
kmeans in pure python
# -------------------------------------------------------------------------------
# a very basic k-means/elbow clustering
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# "wrote this up one day while sitting on the terlet. i do some of my best
# thinking there" - Author - Victor M. Condino - Wednesday, Feb. 3rd, 2020
#
# this is some code to find the optimal clustering of points in a n-dimensional
# dataset, when the number of clusters is not known uses the elbow-method.
#
# (I'd like to dedicate this to my mom, Martha, who knows way more about
@un1tz3r0
un1tz3r0 / youtubemusicdownloader.py
Last active December 28, 2024 10:44
This script uses ytmusicapi and pytube together to download your playlists, history or 'liked' songs as high-quality audio-only streams from Youtube Music.
''' This script uses ytmusicapi and pytube together to download your playlists, history or 'liked' songs as
high-quality audio-only streams from Youtube Music, which are protected by a "signatureCipher" obfuscation scheme.
To use it, first install [ytmusicapi] and [pytube] using pip, then follow the instructions for creating the auth
file from the response in an authenticated session to a watch-page request as found in your browser's dev-tools.
The downloaded files are placed in ~/Music, named with the artist and track metadata, and will be skipped instead
of downloaded again next time it is run, based on the videoIds of the downloaded songs.
Merry Xmas - V.
@bellbind
bellbind / index-40.html
Created May 25, 2020 04:41
[js-ipfs][browser] Pubsub chatroom with js-libp2p in js-ipfs node
<!doctype html>
<html>
<head>
<title>Pubsub on libp2p (js-ipfs-0.40)</title>
<script type="module" src="./main-40.js"></script>
</head>
<body>
<h3 id="myid"></h3>
<div>
id: <input id="id" type="text" size="40"/>
@Integralist
Integralist / Python coroutine comparison functions.py
Last active June 4, 2025 16:52
Coroutine comparison functions #python
"""the results aren't what you might expect."""
import asyncio
@asyncio.coroutine
def old_style_coroutine():
yield from asyncio.sleep(1)
async def main():
await old_style_coroutine()
@un1tz3r0
un1tz3r0 / authorized_keys_cmd.py
Created August 31, 2019 16:02
Script for use as sshd authorized_keys command on DigitalOcean droplets. It pulls the list of public ssh keys from your account profile using DigitalOcean's API, so that you can manage your authorized_keys in one convenient place.
#!/usr/bin/python3
import requests
import json
import os
def get(path):
url = "https://api.digitalocean.com/v2/{}".format(path)
apikey = os.environ['DIGITALOCEAN_API_KEY']
headers = {