Skip to content

Instantly share code, notes, and snippets.

View antedeguemon's full-sized avatar
🇦🇷
no hay camino, se hace camino al andar

Vicente Merlo antedeguemon

🇦🇷
no hay camino, se hace camino al andar
View GitHub Profile
#EXTM3U
############################################################################ Informações
#EXTINF:-1 tvg-logo="https://imgur.com/C09Ybxn.png" group-title="ATUALIZADO",02/11/2023
https://youtube.com/@ManoDT?si=rOj9AqlQZ7So4ovx
#EXTINF:-1 tvg-logo="https://imgur.com/YTEjMnl.png" group-title="PIX | PRA UMA AJUDINHA", manotv23@gmail.com
https://youtube.com/@ManoDT?si=rOj9AqlQZ7So4ovx
@Nezteb
Nezteb / elixir-language-server-comparison.md
Last active October 16, 2024 19:16
Elixir Language Server Comparisons
@Kenny-MWI
Kenny-MWI / slack_tweaks.md
Last active October 7, 2024 20:32
Slack Tweaks

Slack Tweaks

In Fall 2023, Slack introduced an updated client with some unpopular UI changes. The tweaks in this document can be used to revert to the old client or hide the new side bar. These will reset every time you fully close Slack but they are easy to re-apply once you get the hang of it.

(Cross Platform) Open Dev Tools [Preferred Option]

To run any of these scripts, you'll need to open the Dev Tools (or Console). You can do this by typing /slackdevtools in a Slack channel or direct message. These are the same Dev Tools you'd get in Chrome if you hit F12. Along the top are tabs for Elements, Console, Sources, Network, etc. You'll want to paste these scripts into the Console tab at the > prompt.

If Slack disables this command, then you can open Dev Tools by setting a system-wide environment variable and using a keyboard shortcut to open the console. If /slackdevtools worked for you then you can skip these next two sections.

(Mac OS) Enable Dev Mode

@mcrumm
mcrumm / component_under_test.ex
Last active August 3, 2024 22:58
Testing Phoenix.LiveComponent in Isolation
# lib/party_web/components/example_component.ex
defmodule PartyWeb.ExampleComponent do
@moduledoc """
An example LiveComponent under test.
"""
use Phoenix.LiveComponent
def render(assigns) do
~H"""
<div>
@Ghostbird
Ghostbird / _obsolete.md
Last active June 26, 2024 08:15
Build FFMPEG with NVIDIA hardware accelleration libraries on Debian 12. Includes non-free libnpp!

Obsolete

It is no longer necessary to use this script to have hardware acceleration in ffmpeg on Debian. The default Debian ffmpeg and dependencies now support this out of the box.

See: #gistcomment-5095112

Elixir Logo DB (script)

Esse é um script para rodar alguns comandos do postgres + ecto :thumbsup-parrot:

Requisitos

Esse script requer 🎀 gum!

Scripts

Você deve colocar as funções abaixo no seu .zshrc ou em um arquivo separado para usar o db:

function ecto() {
@Ghostbird
Ghostbird / build-ffmpeg-nvenc.sh
Last active December 22, 2023 02:05
Automatically compile and install FFMPEG with NVIDIA hardware acceleration on Debian 10+
#!/bin/bash
# Automatically compile and install FFMPEG with NVIDIA hardware acceleration on Debian
# Based on https://www.tal.org/tutorials/ffmpeg_nvidia_encode
# Verified working on Debian 10 and 11
# Abort on error
set -e
suite=stable
@tobiaslins
tobiaslins / worker.js
Last active July 30, 2024 20:11
Notion Custom Domain using Cloudflare Workers + Splitbee Analytics
const MY_DOMAIN = "help.splitbee.io"
const START_PAGE = "https://www.notion.so/splitbee/Help-Center-bbf26e2b70574901b9c98e5d11e449de"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS",

Principles of Adult Behavior

  1. Be patient. No matter what.
  2. Don’t badmouth: Assign responsibility, not blame. Say nothing of another you wouldn’t say to him.
  3. Never assume the motives of others are, to them, less noble than yours are to you.
  4. Expand your sense of the possible.
  5. Don’t trouble yourself with matters you truly cannot change.
  6. Expect no more of anyone than you can deliver yourself.
  7. Tolerate ambiguity.
  8. Laugh at yourself frequently.
@gubatron
gubatron / dht-walkthrough.md
Last active June 24, 2024 01:05
DHT walkthrough notes

DHT Walkthrough Notes

I've put together these notes as I read about DHT's in depth and then learned how the libtorrent implementation based on the Kademlia paper actually works.

What problem does this solve?

400,000,000,000 (400 billion stars), that's a 4 followed by 11 zeros. The number of atoms in the universe is estimated to be around 10^82. A DHT with keys of 160 bits, can have 2^160 possible numbers, which is around 10^48