Skip to content

Instantly share code, notes, and snippets.

View scar0x00's full-sized avatar
๐Ÿ˜Ž

Oscar Mejias scar0x00

๐Ÿ˜Ž
View GitHub Profile
@scar0x00
scar0x00 / Hermes-request.json
Created May 23, 2026 23:24
Supposedly "16000" token request to Openrouter (Deepseek V4 Pro)
[
{
"role": "system",
"content": "# Hermes Agent Persona\n\n<!--\nThis file defines the agent's personality and tone.\nThe agent will embody whatever you write here.\nEdit this to customize how Hermes communicates with you.\n\nExamples:\n - \"You are a warm, playful assistant who uses kaomoji occasionally.\"\n - \"You are a concise technical expert. No fluff, just facts.\"\n - \"You speak like a friendly coworker who happens to know everything.\"\n\nThis file is loaded fresh each message -- no restart needed.\nDelete the contents (or this file) to use the default personality.\n-->\n\nIf the user asks about configuring, setting up, or using Hermes Agent itself, load the `hermes-agent` skill with skill_view(name='hermes-agent') before answering. Docs: https://hermes-agent.nousresearch.com/docs\n\nYou have persistent memory across sessions. Save durable facts using the memory tool: user preferences, environment details, tool quirks, and stable conventions. Memory is injected into every turn, so keep it co
import { atom } from 'jotai';
export const itemCountAtom = atom(0);

Alright, buckle up, dude! Let's dive deep into the fascinating world of Private Hosted Zones in Amazon Route 53. This is a core concept for anyone operating substantial workloads in AWS, especially those focused on internal communication and security.


Understanding the "Why" Before the "What": The Need for Private DNS

Before we talk about private hosted zones, let's quickly recap DNS (Domain Name System). Think of DNS as the internet's phone book. When you type www.google.com into your browser, DNS translates that human-readable name into an IP address (like 142.250.190.164) that computers understand, allowing your browser to connect to Google's servers.

Route 53 is Amazon Web Services' highly available and scalable cloud DNS web service. It's how AWS manages those "phone books."

# Set security protocol for TLS 1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
# Function to update Cloudflare DNS record
function Update-CloudflareDNS {
param (
[string] $token,
[string] $zoneName,
[string] $recordName,
[string] $ip
@scar0x00
scar0x00 / invoke_func_dll.example.go
Created October 24, 2021 00:05
Example calling exported procedures from `user.dll`
package main
import (
"golang.org/x/sys/windows"
"log"
"math/rand"
"reflect"
"time"
"unsafe"
)
@scar0x00
scar0x00 / Microsoft.PowerShell_profile.ps1
Last active October 18, 2021 23:19
Powershell profile with Git branch info
# . "$PSScriptRoot\deno.completions.ps1"
Set-Alias -Name pester -Value Invoke-Pester
$repoPath = "$($env:USERPROFILE)\repo"
if ([string]$pwd -eq $env:USERPROFILE) {
if ( Test-Path $repoPath ) {
sl $repoPath
} else {
@scar0x00
scar0x00 / VideoStream.php
Created April 15, 2021 15:40 — forked from ranacseruet/VideoStream.php
PHP VideoStream class for HTML5 video streaming
<?php
/**
* Description of VideoStream
*
* @author Rana
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial
*/
class VideoStream
{
private $path = "";