I hereby claim:
- I am rkttu on github.
- I am rkttu (https://keybase.io/rkttu) on keybase.
- I have a public key ASC4angFcEhW26hdDOcrHUYMQBHo5t_aGhg_p2hDEukQkQo
To claim this, I am signing this object:
# For those of you looking for this GIST: I don't maintain this code anymore. I recommend using WSLg, which is included starting with Windows 11. | |
# Please refer to https://gist.github.com/CraigCottingham/fad000cc2ec4678203acf62c4ad2ab23 code that forked this GIST. | |
# Credits | |
# https://c-nergy.be/blog/?p=13655 | |
# https://askubuntu.com/questions/844245/how-to-compile-latest-pulseaudio-with-webrtc-in-ubuntu-16-04 | |
# https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list | |
# https://unix.stackexchange.com/questions/65167/enable-udev-and-speex-support-for-pulseaudio | |
# https://rudd-o.com/linux-and-free-software/how-to-make-pulseaudio-run-once-at-boot-for-all-your-users |
# https://github.com/giampaolo/psutil/blob/master/psutil/arch/windows/wmi.c | |
$LOADAVG_FACTOR_1F = 0.9200444146293232478931553241 | |
$LOADAVG_FACTOR_5F = 0.9834714538216174894737477501 | |
$LOADAVG_FACTOR_15F = 0.9944598480048967508795473394 | |
$SAMPLING_INTERVAL = 5 | |
$load_avg_1m = 0.0; | |
$load_avg_5m = 0.0; |
function global:Select-KubeContext { | |
[CmdletBinding()] | |
[Alias('kubectx')] | |
param ( | |
[parameter(Mandatory=$False,Position=0,ValueFromRemainingArguments=$True)] | |
[Object[]] $Arguments | |
) | |
begin { | |
if ($Arguments.Length -gt 0) { | |
$ctx = & kubectl.exe config get-contexts -o=name | fzf.exe -q @Arguments |
function global:Invoke-Terraform { | |
[CmdletBinding()] | |
[Alias('tf')] | |
param ( | |
[parameter(Mandatory=$False,Position=0,ValueFromRemainingArguments=$True)] | |
[Object[]] $Arguments | |
) | |
begin { | |
$PrevAwsProfile = $env:AWS_PROFILE; $env:AWS_PROFILE='saml' | |
} |
secretGenerator: | |
- name: mysql-pass | |
literals: | |
- password=YOUR_PASSWORD_HERE | |
resources: | |
- mysql-deployment.yaml | |
- wordpress-deployment.yaml |
FROM mcr.microsoft.com/windows/servercore/iis:windowsservercore-ltsc2019 | |
RUN set COMPLUS_NGenProtectedProcess_FeatureEnabled=0 & \ | |
\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen update & \ | |
\Windows\Microsoft.NET\Framework\v4.0.30319\ngen update | |
ADD https://github.com/microsoft/windows-container-tools/releases/download/v1.0/LogMonitor.exe /LogMonitor/ | |
ADD https://dotnetbinaries.blob.core.windows.net/servicemonitor/2.0.1.3/ServiceMonitor.exe / | |
RUN powershell.exe -Command Set-WebConfigurationProperty -p 'MACHINE/WEBROOT/APPHOST' -fi 'system.applicationHost/log' -n 'centralLogFileMode' -v 'CentralW3C'; \ |
I hereby claim:
To claim this, I am signing this object:
# Windows uses msvcrt.dll | |
Add-Type -Path .\test.cs | |
[Sample]::printf_win32("Hello, World %d!`r`n", 123) | |
# *nix uses libc | |
Add-Type -Path ./test.cs | |
[Sample]::printf_linux("Hello, World %d!`n", 123) |
<Query Kind="Statements"> | |
<NuGetReference>Microsoft.Windows.SDK.Contracts</NuGetReference> | |
<Namespace>Windows.Globalization</Namespace> | |
<Namespace>Windows.Graphics.Imaging</Namespace> | |
<Namespace>Windows.Media.Ocr</Namespace> | |
<Namespace>Windows.Storage</Namespace> | |
<Namespace>Windows.Storage.Streams</Namespace> | |
<Namespace>System.Net.Http</Namespace> | |
</Query> |
using System; | |
using System.Runtime.InteropServices; | |
namespace PInvokeTest | |
{ | |
class Program | |
{ | |
[UnmanagedFunctionPointer(CallingConvention.Cdecl, CharSet = CharSet.Ansi, SetLastError = false)] | |
public delegate int printf_int(string format, int arg0); |