Skip to content

Instantly share code, notes, and snippets.

View andiradulescu's full-sized avatar

Andrei Radulescu andiradulescu

View GitHub Profile
// C# example
using UnityEditor;
using System.IO;
using System.Collections;
using UnityEngine;
using System.Collections.Generic;
class PerformBuild
{
static string[] GetBuildScenes()
#import "UIFont+MNFonts.h"
#import <objc/runtime.h>
NSString *const FORegularFontName = @"Copperplate";
NSString *const FOBoldFontName = @"Copperplate-Bold";
NSString *const FOItalicFontName = @"Copperplate-Light";
@implementation UIFont (MNFonts)
- (void)viewDidLoad
{
[super viewDidLoad];
self.webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
self.webView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
self.webView.delegate = self;
[self.view addSubview:self.webView];
[self loadDisqusComments];
Verifying my Blockstack ID is secured with the address 1A6Aj7Z1sWsdHtrZDwrNZzk3GhVnh4Z3pp https://explorer.blockstack.org/address/1A6Aj7Z1sWsdHtrZDwrNZzk3GhVnh4Z3pp
/**
* AliceOnboarding.service.ts
*
* This file was created based on the Alice Biometrics documentation found at:
* https://docs.alicebiometrics.com/onboarding/
* and the full API Reference from:
* https://apis.alicebiometrics.com/onboarding/ui/#/
* and the Python SDK code from:
* https://github.com/alice-biometrics/onboarding-python
*
#!/bin/bash
set -e
ARCH=$(uname -m)
# install brew if required
if [[ $(command -v brew) == "" ]]; then
echo "Installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
if [[ $SHELL == "/bin/zsh" ]]; then
import lzma
import time
def benchmark_lzma_decompressor(compressed_data):
# Start the timer
start_time = time.time()
# Create an LZMADecompressor object
decompressor = lzma.LZMADecompressor()
# Config version for compatibility and deprecations
# Fallback value (if you omit the key): config-version = 1
config-version = 2
# You can use it to add commands that run after AeroSpace startup.
# Available commands : https://nikitabobko.github.io/AeroSpace/commands
after-startup-command = []
# Start AeroSpace at login
start-at-login = true
@andiradulescu
andiradulescu / gpu-diag.sh
Last active May 25, 2026 19:55
gpu-diag.sh
#!/usr/bin/env bash
# GPU cloud diagnostic script
# Run as root. Identifies bottlenecks on rented GPU instances.
# curl -sSL https://gist.githubusercontent.com/andiradulescu/6e4bd1f6e83ecdb56ad0fce88d5df93d/raw/799f1474ac7d822ebe83ff1919048aabbd8403bf/gpu-diag.sh | bash
set -u
LOG="/tmp/gpu-diag-$(date +%Y%m%d-%H%M%S).log"
exec > >(tee -a "$LOG") 2>&1
section() {