Skip to content

Instantly share code, notes, and snippets.

View ktopouzi's full-sized avatar

Kimon Topouzidis ktopouzi

View GitHub Profile
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"globals": {
"alwaysShowTabs": true,
"defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"keybindings": [
{
Can not connect the vue-storefront-api / ElasticSearch instance! Error: {"root_cause":[{"type":"query_shard_exception","reason":"failed to create query:
{
\"bool\" : {
\"filter\" : [
{
\"bool\" : {
\"must\" : [
{
\"terms\" : {
\"attribute_code\" : [
@ktopouzi
ktopouzi / restoreDefaultValues.php
Last active August 26, 2019 07:27
Magento 1 restore default values to product attributes
<?php
/*
* Custom script to reset default value to product atributes.
* Author: Kimon Topouzidis
* Email: kimon.topouzidis@gmail.com
*/
//Grab the Magento instance and get the Admin store.
require_once "app/Mage.php";
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);

Available commands:

  • php bin/magento list php bin/magento l

Admin

  • php bin/magento admin:user:create php bin/magento a:u:c
  • php bin/magento admin:user:unlock php bin/magento a:u:u

Cache

title
CppSharp / Maintenance & Improvement tasks (Kimon Topouzidis)

Author: Kimon Topouzidis

Summary

My name is Kimon Topouzidis and I am a student at the IT Department of Alexander Technological Institute Thessaloniki, Greece. This summer of 2017, I was accepted to participate at the Google Summer of Code and more specifically at CppSharp. August 21, 2017, marks the end of the program. It was a long way, since May the 4th, when the journey began. My task was to fix as many as possible of the issues reported by the community. I will try to briefly present my work here and show the world what I did during the summer.

public override TypePrinterResult VisitFieldDecl(Field field)
{
var safeIdentifier = SafeIdentifier(field.Name);
PushMarshalKind(MarshalKind.NativeField);
var fieldTypePrinted = field.QualifiedType.CSharpType(this);
PopMarshalKind();
var fieldType = field.QualifiedType.Type.Desugar().IsAddress() ?
CSharpTypePrinter.IntPtrType : fieldTypePrinted.Type;
Parsing libraries...
Parsing code...
Parsed 'OCPlatform.h'
Processing code...
Pass 'CppSharp.Passes.SortDeclarationsPass'
Pass 'CppSharp.Passes.ResolveIncompleteDeclsPass'
Unresolved declaration: rebind
Unresolved declaration: rebind
Unresolved declaration: rebind
Unresolved declaration: rebind
CMake Error at tools/clang/tools/clang-offload-bundler/CMakeLists.txt:18 (add_dependencies):
Cannot add target-level dependencies to non-existent target "clang".
The add_dependencies works for top-level logical targets created by the
add_executable, add_library, or add_custom_target commands. If you want to
add file-level dependencies see the DEPENDS option of the add_custom_target
and add_custom_command commands.
-- PrintFunctionNames ignored -- Loadable modules not supported on this platform.
CMake Error at CMakeLists.txt:590 (message):
Unable to find Python interpreter, required for builds and testing.
Please install Python or specify the PYTHON_EXECUTABLE CMake variable.
-- Configuring incomplete, errors occurred!
See also "C:/Users/Nomik/Documents/CppSharp/deps/llvm/llvm-a641bd-windows-vs2015-x86-RelWithDebInfo/CMakeFiles/CMakeOutput.log".
cmake -G "Ninja" -DLLVM_BUILD_TOOLS=false -DLLVM_INCLUDE_EXAMPLES=false -DLLVM_INCLUDE_DOCS=false -DLLVM_INCLUDE_TESTS=false -DLLVM_TOOL_BUGPOINT_BUILD=false -DLLVM_TOOL_BUGPOINT_PASSES_BUILD=false -DLLVM_TOOL_CLANG_TOOLS_EXTRA_BUILD=false -DLLVM_TOOL_COMPILER_RT_BUILD=false -DLLVM_TOOL_DRAGONEGG_BUILD=false -DLLVM_TOOL_DSYMUTIL_BUILD=false -DLLVM_TOOL_GOLD_BUILD=false -DLLVM_TOOL_LLC_BUILD=false -DLLVM_TOOL_LLDB_BUILD=false -DLLVM_TOOL_LLD_BUILD=false -DLLVM_TOOL_LLGO_BUILD=false -DLLVM_TOOL_LLI_BUILD=false -DLLVM_TOOL_LLVM_AR_BUILD=false -DLLVM_TOOL_LLVM_AS_BUILD=false -DLLVM_TOOL_LLVM_AS_FUZZER_BUILD=false -DLLVM_TOOL_LLVM_BCANALYZER_BUILD=false -DLLVM_TOOL_LLVM_CONFIG_BUILD=false -DLLVM_TOOL_LLVM_COV_BUILD=false -DLLVM_TOOL_LLVM_CXXDUMP_BUILD=false -DLLVM_TOOL_LLVM_C_TEST_BUILD=false -DLLVM_TOOL_LLVM_DIFF_BUILD=false -DLLVM_TOOL_LLVM_DIS_BUILD=false -DLLVM_TOOL_LLVM_DWARFDUMP_BUILD=false -DLLVM_TOOL_LLVM_EXTRACT_BUILD=false -DLLVM_TOOL_LLVM_GO_BUILD=false -DLLVM_TOOL_LLVM_JITLISTENER_BUILD=false -DLLVM