Skip to content

Instantly share code, notes, and snippets.

@cheikhsimsol
cheikhsimsol / video_stream.go
Created December 30, 2024 19:37
Full video stream example
package main
import (
"fmt"
"io"
"log"
"net/http"
"strconv"
"strings"
)
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active January 18, 2025 06:52
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under User Settings -> Gift Inventory
@evantoli
evantoli / GitConfigHttpProxy.md
Last active January 18, 2025 06:51
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@jwalanta
jwalanta / OpenWrt detect new device and send text message.md
Last active January 18, 2025 06:51
Detect new network devices connecting to OpenWrt and send text message
@ofou
ofou / commits.sh
Last active January 18, 2025 06:51
Fill your GitHub calendar with fake commits to confuse recruiters
#!/bin/bash
set -euo pipefail
# Validate we're in a git repository
if ! git rev-parse --git-dir > /dev/null 2>&1; then
echo "Error: Not in a git repository"
exit 1
fi
# Function to validate date format
@yifanzz
yifanzz / code-editor-rules.md
Created December 17, 2024 00:01
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@ksasao
ksasao / TextAssistant.ino
Created November 6, 2024 13:55
M5Stack LLM Module で日本語対話 https://x.com/ksasao/status/1854157588247806342 #M5StackLLM
/*
* SPDX-FileCopyrightText: 2024 M5Stack Technology CO LTD
* SPDX-License-Identifier: MIT
* M5Stack LLM Module で日本語対話。Serial MonitorでBoth BL&CRを設定するとよいです。
*/
#include <Arduino.h>
#include <M5Unified.h>
#include <M5ModuleLLM.h>
M5ModuleLLM module_llm;
@MrTechGadget
MrTechGadget / ikea_open_close_remote.yaml
Last active January 18, 2025 06:23 — forked from r3mcos3/ikea_open_close_remote.yaml
Home Assistant Blueprint For ZHA IKEA Open/Close Remote
blueprint:
name: IKEA Open/Close Remote
description: |
'Control your roller blind with an IKEA 2 button remote (the square ones).
this is the remote that's been delivered by the "Fytur" and " Kadrilj"
roller blinds.'
domain: automation
input:
remote:
name: Remote
@Klerith
Klerith / instalaciones-javascript-curso.md
Last active January 18, 2025 06:21
Instalaciones recomendadas - Curso de JavaScript