Skip to content

Instantly share code, notes, and snippets.

View jasonboukheir's full-sized avatar
👹

Jason Elie Bou Kheir jasonboukheir

👹
  • Bothell, WA
  • 18:41 (UTC -08:00)
View GitHub Profile
@jasonboukheir
jasonboukheir / debug.log
Created April 3, 2020 06:21
check_hyperv_access.ps1 script error: Get-ACL : Method failed with unexpected error code 1.
INFO global: Vagrant version: 2.2.6
INFO global: Ruby version: 2.4.9
INFO global: RubyGems version: 2.6.14.4
INFO global: VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/bin/vagrant"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_LOG="debug"
WARN global: resolv replacement has not been enabled!
@jasonboukheir
jasonboukheir / git
Last active September 15, 2024 15:27
git when in unix, git.exe when in wsl
#!/bin/sh
if pwd | grep /mnt/c > /dev/null; then
exec git.exe "$@"
else
exec /usr/bin/git "$@"
fi
@jasonboukheir
jasonboukheir / DestroyMediatorExample.cs
Last active September 23, 2019 22:01
mediator destruction bug
using strange.extensions.context.impl;
using strange.extensions.mediation.impl;
using UnityEngine;
// TestMediator.cs
public class TestMediator : Mediator
{
public override void OnRemove()
{
base.OnRemove();

Keybase proof

I hereby claim:

  • I am jasonboukheir on github.
  • I am jasonboukheir (https://keybase.io/jasonboukheir) on keybase.
  • I have a public key ASD7vP39jj_vM3TZLidBMY09qWiUUqaaIAwhEaAryFL95Qo

To claim this, I am signing this object:

" OmniSharp won't work without this setting
filetype plugin on
" Set the type lookup function to use the preview window instead of echoing it
"let g:OmniSharp_typeLookupInPreview = 1
" Timeout in seconds to wait for a response from the server
let g:OmniSharp_timeout = 5
" Don't autoselect first omnicomplete option, show options even if there is only
using Karuna;
public class EventSDKSample {
void CreateEventHandler() {
// Check user is logged in. If they are not we log them in
// and wait for a successful response before creating the event.
if (User.CurrentUser.Username == null) {
API.Create(new Login() {
Username = "karunademo",
Current Filetype: cs
Available Linters: ['omnisharp', 'mcs', 'mcsc']
Linter Aliases:
'omnisharp' -> ['Omnisharp', 'OmniSharp']
Enabled Linters: ['omnisharp']
Suggested Fixers:
'remove_trailing_lines' - Remove all blank lines at the end of a file.
'trim_whitespace' - Remove all trailing whitespace characters at the end of every line.
'uncrustify' - Fix C, C++, C#, ObjectiveC, ObjectiveC++, D, Java, Pawn, and VALA files with uncrustify.
Linter Variables:
public class StringInterpolationExample {
public void GetDisplayString(string input) {
return $"The input was {input}";
}
}
@jasonboukheir
jasonboukheir / KarunaEventExample.cs
Last active January 24, 2019 17:35
An example with Karuna Event
using Karuna;
using System;
public static class App {
// IMPORTANT: Karuna.Event requires users to be logged in!!!
public static void Main() {
// We have to declare the Karuna namespace because there are other Event classes.