Skip to content

Instantly share code, notes, and snippets.

View ataraxies's full-sized avatar

ataraxies ataraxies

View GitHub Profile
@johnidm
johnidm / readme.md
Last active December 27, 2024 13:35
Simple Background Job Management with FastAPI (with status)

This code snippet is a simple FastAPI application that manages a background job with status.

Install the dependecies

pip install fastapi uvicorn

Example Usage

@MariaSolOs
MariaSolOs / builtin-compl.lua
Last active October 12, 2025 14:46
Built-in completion + snippet Neovim setup
---Utility for keymap creation.
---@param lhs string
---@param rhs string|function
---@param opts string|table
---@param mode? string|string[]
local function keymap(lhs, rhs, opts, mode)
opts = type(opts) == 'string' and { desc = opts }
or vim.tbl_extend('error', opts --[[@as table]], { buffer = bufnr })
mode = mode or 'n'
vim.keymap.set(mode, lhs, rhs, opts)
@tresf
tresf / wrongbrew.sh
Last active November 14, 2024 00:45
Homebrew, but for the wrong architecture
#!/usr/bin/env bash
#
# Install wrong architecture packages on macOS
# - Can only install one package at a time, unless using "brew bundle"
# - Uses `brew deps --tree` to loop over dependencies
# - For speed, tries to NOT upgrade a package automatically
# - To upgrade a package, use wrongbrew.sh uninstall <packagename> && wrongbrew.sh install <packagename>
# - Based on the example from @maxirmx https://stackoverflow.com/a/70822921/3196753
# Halt on first error
@gabe565
gabe565 / change-arc-icon.md
Last active October 29, 2025 11:07
Change Arc Browser Icon

Change Arc Browser Icon

arc

A collection of commands that change the Arc Browser icon on macOS.

Commands

Theme Command
Candy Arc defaults write company.thebrowser.Browser currentAppIconName candy
@ostechnix
ostechnix / showipaddr.py
Last active November 14, 2024 03:30
Show IP Address - A Python Script to Show Private and Public IP Information in Linux and Unix.
#!/usr/bin/env python
# ------------------------------------------------------------------
# Script Name: showipaddr.py
# Description: A Python Script to display Private and
# Public IP address details in Linux and Unix.
# Website: https://gist.github.com/ostechnix
# Version: 1.0
# Usage: python showipaddr.py
# ------------------------------------------------------------------
@0xdevalias
0xdevalias / reverse-engineering-macos.md
Last active October 30, 2025 01:21
Some notes, tools, and techniques for reverse engineering macOS binaries
@0xdevalias
0xdevalias / _gh-cli-copilot-api.md
Last active June 14, 2025 19:06
Some notes and references while exploring the GitHub CLI extension for the GitHub Copilot CLI
@Birch-san
Birch-san / local-copilot.md
Last active October 26, 2025 17:40
Running GitHub Copilot against local Code Llama model

Running GitHub Copilot VSCode extension against local Code Llama model

image

image

Tested on NVIDIA RTX 4090, but these instructions also cover AMD and Mac in case you wanna try those.
This guide assumes you are running Linux (I ran this on Ubuntu).

Before you get excited:

@jossef
jossef / main.py
Created August 28, 2023 12:04
vscode marketplace api list all extensions + download artifacts
import requests
from requests.adapters import HTTPAdapter, Retry
def get_vscode_extensions(max_page=10000, page_size=100,
include_versions=True, include_files=True, include_category_and_tags=True, include_shared_accounts=True, include_version_properties=True,
exclude_non_validated=False, include_installation_targets=True, include_asset_uri=True, include_statistics=True,
include_latest_version_only=False, unpublished=False, include_name_conflict_info=True, api_version='7.2-preview.1', session=None):
if not session:
session = requests.session()
@eoureo
eoureo / RunJS-Utils.mjs
Last active April 28, 2025 02:29
Module of frequently used functions in Obsidian-RunJS (https://github.com/eoureo/obsidian-runjs).
/**
* Module of frequently used functions in [Obsidian-RunJS]{@link https://github.com/eoureo/obsidian-runjs}.
*
* @RunJS RunJS/Utils
*
* modified: 2023-07-13 19:35:07
*
* async function replaceSelection(app, substr = "", substr_new = "")
* async function getSelection(app)
* async function setSelection(app, text)