Skip to content

Instantly share code, notes, and snippets.

@lygstate
lygstate / vk_dispatch_table.h
Created November 4, 2022 14:34
vk_dispatch_table.h
/*
* Copyright 2020 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sub license, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
root@78a5bd676ef9:/home/lygstate/work/mesa/subprojects/llvm-project/_build# ninja
[145/3592] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Process.cpp.obj
In file included from /home/lygstate/work/mesa/subprojects/llvm-project/llvm/lib/Support/Process.cpp:110:
/home/lygstate/work/mesa/subprojects/llvm-project/llvm/lib/Support/Windows/Process.inc: In function 'llvm::VersionTuple llvm::GetWindowsOSVersion()':
/home/lygstate/work/mesa/subprojects/llvm-project/llvm/lib/Support/Windows/Process.inc:490:19: warning: cast between incompatible function types from 'FARPROC' {aka 'long long int (*)()'} to 'RtlGetVersionPtr' {aka 'long int (*)(_OSVERSIONINFOW*)'} [-Wcast-function-type]
490 | auto getVer = (RtlGetVersionPtr)::GetProcAddress(hMod, "RtlGetVersion");
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[152/3592] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.obj
In file included from /home/lygstate/work/mesa/subprojects/llvm-project/l
root@78a5bd676ef9:/home/lygstate/work/mesa/subprojects/llvm-project/_build# cmake \
../llvm \
-GNinja \
-DCMAKE_TOOLCHAIN_FILE=../../mingw-toolchain.cmake \
-DCMAKE_CROSSCOMPILING=1 \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_PROJECTS="clang;lld;libclc" \
-DLLVM_TARGETS_TO_BUILD="AMDGPU;X86" \
-DLLVM_OPTIMIZED_TABLEGEN=TRUE \
-DLLVM_ENABLE_ASSERTIONS=TRUE \
@lygstate
lygstate / godaddy-ddns.txt
Created January 16, 2022 18:47 — forked from nansenat16/godaddy-ddns.txt
RouterOS godaddy-ddns-update-script
#GoDaddy DDNS Update Script
#Test with RouterOS 6.45.2 (Minimum version RouterOS 6.44)
#Date:2019/08/02
#The read,write,policy,test that all of these policies need to be set in script for the global variable
#ref1 https://www.instructables.com/id/Quick-and-Dirty-Dynamic-DNS-Using-GoDaddy/
#ref2 http://www.minitw.com/post/2018/05/09/routeros-ddns-namecheap
#Easy Test
# /tool fetch url="https://api.godaddy.com/v1/domains/[domain]/records/A/[hostname]" http-method=put http-data="[{\"data\": \"10.10.10.10\"}]" http-header-field="content-type: application/json,Authorization: sso-key [API_KEY]:[API_SECRET]"
==4142== Memcheck, a memory error detector
==4142== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==4142== Using Valgrind-3.14.0-353a3587bb-20181007X and LibVEX; rerun with -h for copyright info
==4142== Command: build/i686-linux/debug/bin/iotjs test/napi/test_napi_static_sqlite.js
==4142== Parent PID: 1
==4142==
--4142--
--4142-- Valgrind options:
--4142-- --leak-check=full
--4142-- --show-leak-kinds=all
jerry!ecma_proxy_object_get (\Users\lygstate\work\typescript\jerryscript\jerry-core\ecma\operations\ecma-proxy-object.c:1111)
jerry!ecma_op_object_get_with_receiver (\Users\lygstate\work\typescript\jerryscript\jerry-core\ecma\operations\ecma-objects.c:790)
jerry!ecma_op_object_get (\Users\lygstate\work\typescript\jerryscript\jerry-core\ecma\operations\ecma-objects.c:763)
jerry!vm_op_get_value (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:114)
jerry!vm_loop (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:2799)
jerry!vm_execute (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:4939)
jerry!vm_run (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:5046)
jerry!vm_run_global (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:328)
jerry!jerry_run (\Users\lygstate\work\typescript\jerryscript\jerry-core\api\jerry.c:671)
jerry!main (\Users\lygstate\work\typescript\jerryscript\jerry-main\main-unix.c:156)
jerry!ecma_op_object_get_with_receiver (\Users\lygstate\work\typescript\jerryscript\jerry-core\ecma\operations\ecma-objects.c:784)
jerry!ecma_op_object_get (\Users\lygstate\work\typescript\jerryscript\jerry-core\ecma\operations\ecma-objects.c:763)
jerry!vm_op_get_value (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:114)
jerry!vm_loop (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:2799)
jerry!vm_execute (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:4939)
jerry!vm_run (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:5046)
jerry!vm_run_global (\Users\lygstate\work\typescript\jerryscript\jerry-core\vm\vm.c:328)
jerry!jerry_run (\Users\lygstate\work\typescript\jerryscript\jerry-core\api\jerry.c:671)
jerry!main (\Users\lygstate\work\typescript\jerryscript\jerry-main\main-unix.c:156)
libdyld.dylib!start (Unknown Source:0)
@lygstate
lygstate / c
Created January 23, 2021 04:45
jerry-core/ecma/operations/ecma-proxy-object.c
/* Copyright JS Foundation and other contributors, http://js.foundation
*
* 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
* distributed under the License is distributed on an "AS IS" BASIS
@lygstate
lygstate / gist:b3a7de98eb923e72dea6a14ae16c1dc5
Created December 25, 2019 18:17
core.1577293036.ld.lld.44630.reldeb.txt
#0 0x00005573b440d7d2 in computeKnownBits (V=0x5573efdf4a18, Known=..., Depth=5, Q=...)
at /home/builder/package/llvm-project/llvm/include/llvm/IR/Type.h:223
BitWidth = 128
ScalarTy = 0x5573f4235fb0
ExpectedWidth = <optimized out>
C = <optimized out>
#1 0x00005573b4417baf in computeKnownBitsMul (Op0=0x5573f11d78f8, Op1=0x5573efdf4a18, NSW=false,
Known=..., Known2=..., Depth=4, Q=...)
at /home/builder/package/llvm-project/llvm/lib/Analysis/ValueTracking.cpp:326
BitWidth = 128
@lygstate
lygstate / gist:daf6b45d37ee312c0141f717487e442b
Created December 25, 2019 18:16
core.1577296122.ld.lld.45007.debug.txt
#0 0x00007fb16e32a145 in malloc () from /lib/ld-musl-x86_64.so.1
No symbol table info available.
#1 0x0000000000000001 in ?? ()
No symbol table info available.
#2 0x00007fb16e0edebf in operator new(unsigned long) () from /usr/bin/../lib/libstdc++.so.6
No symbol table info available.
#3 0x0000560c2d0fb23e in getMemory (numWords=2)
at /home/builder/package/llvm-project/llvm/lib/Support/APInt.cpp:46
No locals.
#4 0x0000560c2d0fb387 in llvm::APInt::initSlowCase (this=0x7fb16bd42270, that=...)