Skip to content

Instantly share code, notes, and snippets.

@Nbc66
Nbc66 / GItHub_status_to_discord_webhook.js
Created May 7, 2024 15:59
A Cloudflare Worker script to be used with statuspage.io websites that allow you to subscibe to updates using a webhook
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request))
})
async function handleRequest(request) {
// Verify request method
if (request.method !== 'POST') {
return new Response('Method Not Allowed', { status: 405 })
}
@p1xelHer0
p1xelHer0 / miniaudio_from_memory.odin
Created April 21, 2024 10:45
Play audio files from memory with Odin #load
package audio
import "core:fmt"
// https://miniaud.io/docs/
import ma "vendor:miniaudio"
// 0 - Use native channel count of the device
AUDIO_CHANNELS :: 0
AUDIO_SAMPLE_RATE :: 0
@GetVladimir
GetVladimir / Setup-iCloud+-Custom-Domain-Catch-All-email-with-Gmail.md
Last active May 7, 2024 16:12
How to setup iCloud+ Custom Domain Catch All email with Gmail

How to setup iCloud+ Custom Domain Catch All email with Gmail

I've recently tested on how to move the custom domain catch all email from G Suite to the new iCloud+ Catch All feature and wanted to share my experience.

The end result is having Custom Domain email and Catch All routing, that can be fully used via Gmail, including receiving and sending emails.


The steps

  • Setup your Custom Domain (or subdomain) with iCloud+
@eladg
eladg / Equirectangular-to-Stereographic-Projection-Shader.frag
Last active May 7, 2024 16:09
WebGL: stereoscopic projection transformation (Fragment Shader)
// credits to: https://github.com/notlion/streetview-stereographic
precision mediump float;
uniform sampler2D texture;
uniform float scale, aspect, time;
uniform mat3 transform;
varying vec2 v_texcoord;

Reset

You can reset the commit for a local branches using git reset

To change the commit of a local branch:

git fetch
git reset origin/master --hard
@ruvnet
ruvnet / readme.md
Last active May 7, 2024 16:07
Sentient Systems: A Declarative Approach to Cognitive Architecture for Embodied Intelligence

Sentient Systems Architecture (SSA): Unlocking Embodied Intelligence

Introduction

Artificial Intelligence (AI) has evolved rapidly, with language models like GPT-4 capturing attention. However, the real future of AI lies in embodied intelligence—systems that can interact with the physical world through robotics and sensory perception. Unlike disembodied language models that operate in digital spaces, embodied AI must navigate complex environments, interpret sensory data, and perform physical tasks. This shift towards embodied intelligence opens the door to groundbreaking applications and significant economic impact.

Unique Challenges of Embodied Intelligence

Developing embodied AI systems is far more complex than working with traditional language models. Embodied agents need to:

Adapt to ever-changing real-world conditions.

@4abhinavjain
4abhinavjain / reinstall_VPS_from_inside.txt
Last active May 7, 2024 16:05 — forked from ClashTheBunny/reinstall_VPS_from_inside.sh
DIY install debian on Oracle Cloud Infrastructure ( Free Tier ) - ARM64
# should works on any cloud-init enabled hypervisor (openstack.. )
# start from a normal ubuntu 20.04 install as minimal was not available for ARM64
# Since ARM64 machines has higher RAM, Shrinking is desired but not necessary. Instead we will increase tmpfs to 1700MB
# Getting root (if sudo -i doesn't work then set a root password beforehand using 'sudo passwd root'
sudo -i
# make sure we are on the highest kernel, so we can delete all the others ...
@m-jovanovic
m-jovanovic / .editorconfig
Created June 7, 2023 12:17
Sample editor config with a bunch of rules turned off 😅
root = true
# C# files
[*.cs]
#### Core EditorConfig Options ####
# Indentation and spacing
indent_size = 4
indent_style = space
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby
@amir9480
amir9480 / helpers.php
Last active May 7, 2024 16:03
Laravel copy all files from one storage disk to another
<?php
if (! function_exists("copy_storage")) {
/**
* Copy files from one disk to another.
*
* @param string $from from disk name
* @param string $to to disk name
* @param string $directory if you want just copy specific directory
* @return void