Skip to content

Instantly share code, notes, and snippets.

@JHerseth
JHerseth / log
Created December 18, 2020 12:39
Dusk by David Szymanski [version: Unity 2018.2.8f1_ae1180820377]
UnityPlayer.dll caused an Access Violation (0xc0000005)
in module UnityPlayer.dll at 0033:5eecaca6.
Error occurred at 2020-12-18_132440.
G:\GOG Games\DUSK\Dusk.exe, run by jonas.
84% physical memory in use.
16333 MB physical memory [2468 MB free].
An error occurred while searching: An error occurred while sending the request.
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at XRayBuilder.Core.Libraries.Http.TimeoutHandler.<SendAsync>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at XRayBuilder.Core.Libraries.Http.RetryHandler.<SendAsync>d__1.MoveNext()
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of an object
at System.Windows.Forms.NativeWindow.ReleaseHandle (System.Boolean handleValid) [0x00001] in <a1b7540aeb454df7a6cc546c7c9a66bb>:0
at System.Windows.Forms.NativeWindow.Callback (System.IntPtr hWnd, System.Int32 msg, System.IntPtr wparam, System.IntPtr lparam) [0x0007c] in <a1b7540aeb454df7a6cc546c7c9a66bb>:0
at (wrapper native-to-managed) System.Windows.Forms.NativeWindow.Callback(intptr,int,intptr,intptr)
at (wrapper managed-to-native) System.Windows.Forms.UnsafeNativeMethods.PeekMessage(System.Windows.Forms.NativeMethods/MSG&,System.Runtime.InteropServices.HandleRef,int,int,int)
at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop (System.IntPtr dwComponentID, System.Int32 reason, System.Int32 pvLoopData) [0x000d8] in <a1b7540aeb454df7a6cc546c7c9a66bb>:0
at System.Windows.Forms.Application+ThreadContext.RunMessag
@JHerseth
JHerseth / tmux-cheatsheet.markdown
Created April 10, 2020 17:43 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@JHerseth
JHerseth / sh
Created April 10, 2020 09:41
bash -x /etc/profile.d/00-pengwin.sh
bash -x /etc/profile.d/00-pengwin.sh
+ id -Gn
+ grep -c 'adm.*sudo\|sudo.*adm'
+ '[' -n /run/WSL/781_interop ']'
++ wslpath 'C:\Windows\System32\ipconfig.exe'
+ ipconfig_exec=/c/Windows/System32/ipconfig.exe
+ command -v ipconfig.exe
++ command -v ipconfig.exe
+ ipconfig_exec=/c/Windows/system32/ipconfig.exe
@JHerseth
JHerseth / back.html
Created February 5, 2020 12:13
Anki cards w/bootstrap4 styling
<div class="container-fluid">
<div class="row pb-4 pt-2 justify-content-between">
<div class="col-3">
<span class="text-muted">ID {{klc_id}}</span>
</div>
{{#info::Reviews}}
<div class="col-9 d-none d-md-block">
<div class="float-right">
<button type="button" class="btn btn-primary mr-2">
<div class="keyword"><a href="https://en.wiktionary.org/wiki/{{Kanji}}#Japanese">{{keyword}}</a>
<!--
<br /><div id="kanji" lang="ja">{{Kanji}}</div>
-->
</div>
<div class="tab">
<button class="tablinks" onclick="openTab(event, 'readings')">Readings</button>
<button class="tablinks active" onclick="openTab(event, 'strokeorder')">Strokeorder</button>
<button class="tablinks" onclick="openTab(event, 'vocab')">Vocabulary</button>
.card {
font-family: arial;
font-size: 2.5rem;
text-align: center;
background-color: #e7ebea;
word-wrap: break-word;
-webkit-hyphens: auto;
hyphens: auto;
}
@JHerseth
JHerseth / front.html
Created February 2, 2020 11:32
anki deck
<div class="keyword">
{{keyword}}
</div>
<div class="tab">
<button class="tablinks active" onclick="openTab(event, 'readings')">Readings</button>
<button class="tablinks disabled">Strokeorder</button>
<button class="tablinks disabled">Vocabulary</button>
</div>
@JHerseth
JHerseth / tictactoe.py
Last active April 11, 2017 13:09
simple tictactoe game
class tictactoe(object):
def __init__(self):
self.x = []
self.o = []
self.validmoves = [1,2,3,4,5,6,7,8,9]
self.turncounter = 0
self.winningpos = [(1, 2, 3), (4, 5, 6), (7, 8, 9),
(1, 4, 7), (2, 5, 8), (3, 6, 9),
(1, 5, 9), (3, 5, 7)]