Skip to content

Instantly share code, notes, and snippets.

View czenzel's full-sized avatar

Christopher Zenzel czenzel

View GitHub Profile
@cookieofcode
cookieofcode / github-ci-unity-hololens2-windows-uwp.yml
Last active April 21, 2024 14:28
Github Actions CI Unity HoloLens 2 Build (Windows, UWP)
# GitHub Actions CI for Unity Hololens 2 UWP running on windows.
name: CI
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
@plembo
plembo / vmwp-no3d-avail.md
Last active March 31, 2024 22:51
VMware Player: No 3d support available from the host

VMware Player: "No 3d support is available from the host"

Facts: VMware Player on Ubuntu 18.04 LTS with the standard Gnome desktop running an AMD WX-2100 graphics card. Both glxinfo and glxgears show 3d acceleration is enabled and working on the host. In addition to VMware Player, the host is also running the qemu-kvm/libvirtd stack from Ubuntu's official repositories. My use case for 3d accelerated graphics in a Windows guest is to occasionally play a Windows-only game.

Issue: Player barks this warning during installation of... anything.

Solution: This askubuntu post, Powered by StackExchange[TM], provides the solution:

@Preecington
Preecington / testflight.yml
Created June 20, 2020 13:39
TestFlight Deploy GitHub Action (Xamarin.iOS)
name: Testflight Deploy
on:
push:
branches: [ master ]
jobs:
build:
runs-on: macos-latest
@egyjs
egyjs / Direct Link of YouTube videos.md
Last active April 17, 2024 06:38
PHP API To get Direct Link of YouTube videos
@styblope
styblope / docker-api-port.md
Last active April 24, 2024 06:11
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
@george-hawkins
george-hawkins / arm64.md
Last active March 24, 2024 14:36
Running virtualized x86_64 and emulated arm64 Ubuntu cloud images using QEMU

QEMU arm64 cloud server emulation

This is basically a rehash of an original post on CNXSoft - all credit (particularly for the Virtio device arguments used below) belongs to the author of that piece.

Download the latest uefi1.img image. E.g. ubuntu-16.04-server-cloudimg-arm64-uefi1.img from https://cloud-images.ubuntu.com/releases/16.04/release/

Download the UEFI firmware image QEMU_EFI.fd from https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/

Determine your current username and get your current ssh public key:

@BravoTango86
BravoTango86 / OtpAuthenticator.cs
Created September 20, 2016 21:53
C# OTP Implementation with TOTP and HOTP
/*
* Copyright (C) 2016 BravoTango86
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@stevenp
stevenp / gist:a6740694b4e23baccfab
Last active September 10, 2015 23:26
Disable App Transport Security in iOS 9
Add this to the Info.plist:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
@praeclarum
praeclarum / Dsp.cs
Created April 9, 2013 19:38
DSP functions for Xamarin.iOS bound to the Accelerate framework. See it in action by buying my Spectrogram app for iOS: https://itunes.apple.com/us/app/live-spectrogram/id630831185
using System;
using System.Runtime.InteropServices;
namespace Circuit
{
public static class Dsp
{
class FftSetupD : IDisposable
{
public IntPtr Handle;
@sorcereral
sorcereral / aaa.json
Last active January 10, 2020 08:54 — forked from mbostock/.block
Google Map with a contour plot using Jason Davies' conrec.js.
[[25.0,-40.0,0],[25.0,-37.5,0],[25.0,-35.0,0.365768700838089],[25.0,-32.5,3.3441708087921143],[25.0,-30.0,8.430097579956055],[25.0,-27.5,22.805387496948242],[25.0,-25.0,59.411285400390625],[25.0,-22.5,79.77821350097656],[25.0,-20.0,90.1242446899414],[25.0,-17.5,92.36530303955078],[25.0,-15.0,92.00534057617188],[25.0,-12.5,91.14026641845703],[25.0,-10.0,84.85253143310547],[25.0,-7.5,57.04249954223633],[25.0,-5.0,45.55271530151367],[25.0,-2.5,21.353925704956055],[25.0,0.0,16.088016510009766],[25.0,2.5,13.399907112121582],[25.0,5.0,16.912446975708008],[25.0,7.5,15.426149368286133],[25.0,10.0,19.408964157104492],[25.0,12.5,22.073850631713867],[25.0,15.0,24.1929874420166],[25.0,17.5,21.45842933654785],[25.0,20.0,26.915931701660156],[25.0,22.5,30.260101318359375],[25.0,25.0,36.20529556274414],[25.0,27.5,33.83650588989258],[25.0,30.0,28.50092887878418],[25.0,32.5,15.35647964477539],[25.0,35.0,8.714584350585938],[25.0,37.5,0.9231305122375488],[25.0,40.0,0],[25.0,42.5,0],[25.0,45.0,0],[25.0,47.5,0],[25.0,50.0,0],[25.0