Skip to content

Instantly share code, notes, and snippets.

View Depechie's full-sized avatar
:octocat:
'SH10151' this is the serial number of our orbital gun

Glenn Versweyveld Depechie

:octocat:
'SH10151' this is the serial number of our orbital gun
View GitHub Profile
@karthiks
karthiks / ollama-commands-reference.sh
Last active July 5, 2026 20:07
Ollama Commands Cheat Sheet
##### Server Management #####
# Start ollama server using commands - start or serve
ollama start
ollama serve
# Check if server is running
ollama ps
ollama ps --verbose # Check system resources
@lAnubisl
lAnubisl / main.tf
Last active November 5, 2024 20:10
Azure API Management to Azure Service Bus Integration
resource "azurerm_resource_group" "rg" {
name = "rg-apim-to-servicebus"
location = "westeurope"
}
resource "azurerm_servicebus_namespace" "sbns" {
name = "sbns-brands-test-2023"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
sku = "Standard"
@davidfowl
davidfowl / MinimalAPIs.md
Last active June 28, 2026 14:13
Minimal APIs at a glance
@rydmike
rydmike / main.dart
Last active August 31, 2021 12:44
Flutter Rounded Border Solutions to Tweet: https://twitter.com/RydMike/status/1431999590547476483
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
@Clancey
Clancey / ArtistPlayableGroup.cs
Last active June 3, 2021 22:29
gMusic CarPlay
using System;
using System.Threading.Tasks;
using System.Linq;
namespace gMusic
{
public class ArtistPlayableGroup : PlayableGroup
{
ArtistViewModel model;
ArtistViewModel Model {get{ return model?? (model = new ArtistViewModel()); }}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@HeikkiDev
HeikkiDev / PlatformInfoService.cs
Created May 17, 2021 14:18
Measure Label width on platform (Android and iOS)
// ANDROID
public double GetStringWidthMeasure(string stringToMeasure)
{
using (var bounds = new Android.Graphics.Rect())
{
using (var textView = new TextView(Application.Context))
{
var lineCount = textView.LineCount; // line count, I guess!
textView.Paint?.GetTextBounds(stringToMeasure, 0, stringToMeasure.Length, bounds);
var displayMetrics = new DisplayMetrics();
@davidteren
davidteren / nerd_fonts.md
Last active August 16, 2026 07:13
Install Nerd Fonts via Homebrew [updated & fixed]
@m33x
m33x / hass.js
Last active November 28, 2025 03:52
Simple Home Assistant (HASS) iOS Widget via Scriptable App
let widget = await createWidget();
if (!config.runsInWidget) {
await widget.presentSmall();
}
Script.setWidget(widget);
Script.complete();
async function createWidget(items) {
@malpaso
malpaso / setup_ssh_windows.md
Created January 18, 2021 22:19
Setup SSH on Windows 10

Quick Steps for Impatient Users Like Me Enable the OpenSSH Authentication Agent service and make it start automatically. Add your SSH key to the agent with ssh-add on the command line. Test git integration, if it still asks for your passphrase, continue on. Add the environment variable $ENV:GIT_SSH=C:\Windows\System32\OpenSSH\ssh.exe to your session, or permanently to your user environment. Detailed Steps: Overview Windows has been shipping with OpenSSH for some time now. It includes all the necessary bits for ssh to work alongside Git, but it still seems to need some TLC before it works 100% seamlessly. Here's the steps I've been following with success as of Windows ver 10.0.18362.449 (you can see your Windows 10 version by opening a cmd.exe shell and typing ver).

I assume here that you already have your SSH key setup, and is located at ~/.ssh/id_rsa