Skip to content

Instantly share code, notes, and snippets.

@prestia
prestia / installing_MTGO_on_macOS_with_Retina_support.md
Last active May 5, 2024 20:53
Instructions on how to install Magic the Gathering Online on macOS with Retina support.

Installing MTGO on macOS using Wine, and making it look pretty!

The following instructions are heavily inspired by @pauleve. I modified his instructions and then added details about how to make a shortcut and support Retina/HiDPI displays.

Installing MTGO (and Wine and Homebrew and Xquartz and ...)

  1. Install Homebrew by opening Terminal and executing the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@jame-developer
jame-developer / install_golang.sh
Last active May 5, 2024 20:48
Install golang in one script
#!/usr/bin/env bash
GO_VERSION=go1.22.2
rm -rf /usr/local/go
wget -O- "https://go.dev/dl/${GO_VERSION}.linux-amd64.tar.gz" | sudo tar -xz -C /usr/local
echo "export PATH=\$PATH:/usr/local/go/bin" >> $HOME/.profile
# Uncomment the following line to add go path to global profile.
# sudo echo "export PATH=\$PATH:/usr/local/go/bin" >> /etc/profile
go version
@ukn
ukn / 99-install-facetime-camera.sh
Last active May 5, 2024 20:47 — forked from Stono/99-install-facetime-camera.sh
Install the kernal module required for the facetimehd camera to work on Linux
#!/bin/bash
set -e
export CONFIG_MODULE_SIG=n
export CONFIG_MODULE_SIG_ALL=n
# For current kernel
export KERNELRELEASE=$(cat /proc/version | awk '{print $3}')
temp_dir=$(mktemp -d)
echo "Installing FacetimeHD camera for $KERNELRELEASE"
@xyb
xyb / 00-install-facetime-camera.sh
Last active May 5, 2024 20:47 — forked from ukn/99-install-facetime-camera.sh
Install the kernal module required for the facetimehd camera to work on Linux
#!/bin/bash
set -e
export CONFIG_MODULE_SIG=n
export CONFIG_MODULE_SIG_ALL=n
# For current kernel
export KERNELRELEASE=$(cat /proc/version | awk '{print $3}')
temp_dir=$(mktemp -d)
echo "Installing FacetimeHD camera for $KERNELRELEASE"
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Z-Index Example</title>
<style>
@font-face {
font-family: 'Win95F';
src: url('data:application/font-woff2;base64,d09GMk9UVE8AAB7IAAoAAAAAfLQAAB54AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAADYHcRQZgAIpcATYCJAOFAAQGP21ldGGCBAWHeQcgG/17FeyYl7gdUKg+MzYSIWwchCaAJ1GUTdZM2f+fEtQxhLpXsjlMOBl1rtM5kVqBMp1XeGh4M/bhm1fyGODBICrJYyX3cIpIfVYz8+zf7k/1poo76F5SyxV35u42RuK58Pyzv//2ufiSI5FINEWNWcddrlPZZr353F4vNRtmfpL6FyCmfDO+2gEHHHZoxKaa7jrsXaZOHea+XXQOfP8/9vs9cxcVqniikQnZQ7JE62SzSFJJlfXTq1/snkEVLh3bgX9wrpvZrHU6h4r8an+wJ/mf+G0eKltj8Y0CE6MTzFphsWCV6tY3xQxWaSyijN4a1jYsZYEPgty2j1NBvFO5ztS8L7nCE3R9JjsC1hSKoT3X3uY/v7/vz137WW3kOP6K38nIPwlujGIbNkGXOwLg//99U20JOQ0Yh4DD0LlU0bhPcFDIsBzy6t0Td7+5d9mjCFAJA0VwEQ4h4M07M9/hM0P5S4sBznkkVa5S5dxVIbUt2bl0SRWdWndyVbjrtXoXfWko9Ixf8mAlKsgL1qjQb5oCz6Y4siXFEeB8+MN2upYd8LuBdoR/31iLxhoVBZhAB3bnZRRIIKn3s59aH/bm9DqFEgRElDEz/m5qk9vHmEbteKX0j35isACCAoJ0hS2/QNAEEf
@darrenangle
darrenangle / tools.txt
Last active May 5, 2024 20:44
open LLM tool use, a prompt template, tested with Mistral, OpenChat, SOLAR.
# WHO ARE YOU
- You are an AI trained to call functions in order to solve problems.
- You are an expert in XML outputs and well-formatted JSON.
# YOUR TASK
- You will be given a scenario that requires a decision.
- After thinking quietly about the scenario and reflecting on all of your options, you will respond by using a tool.
@JustSomeBacon
JustSomeBacon / MessageBuffer.cs
Created January 27, 2017 22:27
A byte buffer class made originally for projects in C# that deal with Game Maker Studio.
using System;
using System.Text;
/// <summary>
/// This class handles byte buffer arrays.
/// </summary>
public class MessageBuffer
{
/// <summary>
/// The byte buffer.
@dchest
dchest / uuid.php
Created February 15, 2020 19:26
UUIDv4 generator for PHP 7+
<?php
/**
* Generate a random UUIDv4.
* @return string UUID
*/
function generate_uuid()
{
$b = random_bytes(16);
$b[6] = chr(ord($b[6]) & 0x0f | 0x40);
@je-so
je-so / testprogram.c
Last active May 5, 2024 20:38
Xlib transparent window with OpenGL support
/*
____ _____
/\__ \ /\ ___\
\/__/\ \ \ \ \__/_
\ \ \ \ \____ \
_\_\ \ \/__/_\ \
/\ _____\ /\ _____\
\/______/ \/______/
Copyright (C) 2011 Joerg Seebohn
@bertidance
bertidance / risc-zero-stark-to-snark-prover_attestation.log
Created May 5, 2024 09:20
Attestation for RISC Zero STARK-to-SNARK Prover MPC Phase 2 Trusted Setup ceremony
Hey, I'm bertidance-85445664 and I have contributed to the RISC Zero STARK-to-SNARK Prover MPC Phase2 Trusted Setup ceremony.
The following are my contribution signatures:
Circuit # 1 (stark_verify)
Contributor # 207
Contribution Hash: d804444f 1e22a45b 2b811eb8 cf9420ea
0a99a6a1 b39c5f2c cf2114f6 c8d6c5be
0cc1c8b7 4ef02d55 83345b5e ef4fb844
7ff14c9b 46ab4ed1 081e36d9 199b0f28