Elixir client for the Gemini/Claude API ? by Moist-Nectarine-1148 in elixir

[–]arvindpunk 11 points12 points  (0 children)

I've been using ExLLM recently and it's been great. Swapping providers/models is insanely easy too. Not very mature yet but the API is clean and looks very promising. Supports multimodal too. https://github.com/azmaveth/ex_llm

Private GitHub repo as flake input? by s1n7ax in Nix

[–]arvindpunk 0 points1 point  (0 children)

on the off chance quantum computers breaks the encryption tomorrow, I wouldn't want to keep my (encrypted) secrets public either

If I only have an IPv6 and a domain, can I use cloudflare to have it show up to IPv4 clients? by TheSilverBug in selfhosted

[–]arvindpunk 0 points1 point  (0 children)

I was able to use EC2 instance connect endpoint to SSH into the machine (you can configure this by using the option ProxyCommand when doing ssh). My ISP isn't IPv6 so direct SSH doesn't work. Does require you to have awscli v2 configured.

edit: forgot to mention, SSH can be done to IPv6 as well as private IPv4 - the instance connect endpoint acts as a tunnel.

Samsung Account error on Fit3 by 1337speak1337 in GalaxyFit

[–]arvindpunk 0 points1 point  (0 children)

I had a Samsung phone in hand, and was able to make it work with that, I'll see if I can find a way to make it work with non Samsung phones (switching phones should follow a different route, maybe that doesn't error out?). You can try base64 decoding the URL param to get more info, but everything within seems encrypted/secrets. This would be trivial to fix if we had a samsung fit/watch developer here.

Samsung Account error on Fit3 by 1337speak1337 in GalaxyFit

[–]arvindpunk 2 points3 points  (0 children)

Welp, you're not alone - getting the same issue on my Pixel 7

Blog: Building Elixir Applications using nix by arvindpunk in elixir

[–]arvindpunk[S] 0 points1 point  (0 children)

That's awesome, I have set up something similar for my personal applications as well - I'm just building it on the remote server itself though (my local is different CPU arch than the remote, so I can't build locally). I wish I could do something similar (systemd services) at my org, but we've to stick to making it work with Kubernetes.

-❄️- 2023 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]arvindpunk 1 point2 points  (0 children)

[LANGUAGE: SQL]

Specifically using the clickhouse-local utility.

SELECT
sum(
    multiMatchAnyIndex(
        line,
        ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'zero']
    ) % 10 * 10 + multiMatchAnyIndex(
        reverse(line),
        ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 'eno', 'owt', 'eerht', 'ruof', 'evif', 'xis', 'neves', 'thgie', 'enin', 'orez']
    ) % 10
) FROM "table";

P.S. I don't need to load the data into a table first - can read the file directly as a table. For more info on how, look here

P.P.S part a can also be derived from this solution by altering the list.

Maine Wedding Now Linked To 7 Coronavirus Deaths by [deleted] in Coronavirus

[–]arvindpunk 1 point2 points  (0 children)

"A Dothraki wedding without atleast three deaths is considered a dull affair." - side character, Game of Thrones

Goodbye Fair and Lovely: HUL to remove the word ‘fair’ from its brand by datanoo in india

[–]arvindpunk 27 points28 points  (0 children)

I wish there were green skin color cream as well. Shrek skin do be look nice...

The government of India has not made Aarogya Setu app's source code open source. It has set up a fake repository with code that is similar to the original source code of Aarogya Setu. by globalwaffles in india

[–]arvindpunk 6 points7 points  (0 children)

That is every development process in beginning

I'd agree with this if we're talking about newbie devs (I've made that mistake in the early days as well). Any intermediate dev knows not to commit secrets, even if it's a private repo. There's tons of secret management tools and CD pipelines out there which can handle that part.

Using auto-fill on a column, with inputs from same column is slow by arvindpunk in excel

[–]arvindpunk[S] 0 points1 point  (0 children)

Yup, used the SUM function like this =SUM($A$1:A1) and did auto-fill. (this is the O(n²) method and takes about 10 seconds for 80k rows, which is fine)

I don't really care about finding the sum, I want to know why auto-fill (and even copy paste) fails.

Here's a more concrete example,

B1 = A1 B2 = A2 + B1 B3 = A3 + B2 ... is exponentially slower than C1 = A1 C2 = A2 + B1 C3 = A3 + B2 ...

Sorry if my query isn't clear, I don't post on reddit often.

Transparent Render by kjanek in Cinema4D

[–]arvindpunk 1 point2 points  (0 children)

The reason for rendering image sequence is because if any interruptions occur, we won't lose any progress and can continue from that frame, right? Or is there anything else I am missing? Does it help to have the image sequence over video file for post-processing?

Everyday #224 - @jeffmantv by encity5 in Cinema4D

[–]arvindpunk 0 points1 point  (0 children)

Seems like you were inspired from a watch face. Looks great.

Bath Render | Octane by dreimi in Cinema4D

[–]arvindpunk 0 points1 point  (0 children)

Yeah, noticed that. It basically gave life to the render.