Skip to content

Instantly share code, notes, and snippets.

View ouzsrcm's full-sized avatar
🏠
Working from home

Oğuz ouzsrcm

🏠
Working from home
View GitHub Profile
@ouzsrcm
ouzsrcm / update-cursor.sh
Last active August 5, 2026 08:15
cursor-updater
#!/bin/bash
set -uo pipefail
API_URL="https://cursor.com/api/download?platform=linux-x64&releaseTrack=stable"
USER_AGENT="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36"
MAX_RETRIES=5
RETRY_DELAY=5
fetch_api() {
local attempt=1
@ouzsrcm
ouzsrcm / whereami.go
Last active June 29, 2022 15:16
where am i and where to go :/
package main
import (
"fmt"
"math/rand"
"reflect"
)
type Location struct {
Name string