Skip to content

Instantly share code, notes, and snippets.

View marvinosswald's full-sized avatar

Marvin Oßwald marvinosswald

View GitHub Profile
@marvinosswald
marvinosswald / uncheck-all.js
Created February 24, 2020 16:27
Uncheck all board @jira Trello import
document.querySelectorAll('input[type=checkbox]').forEach((btn) => btn.click());
/*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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
*
@marvinosswald
marvinosswald / httpTest.cs
Created December 6, 2018 13:14
C# HttpClient example
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
namespace httpclientTest
{
public class Program
{
static HttpClient client = new HttpClient();
@marvinosswald
marvinosswald / Slicer Config
Created October 8, 2018 09:32
Slicer Config for CaliCat
# generated by Slic3r Prusa Edition 1.41.0+ on 2018-10-08 at 10:08:19
[print:0.05mm ULTRADETAIL]
avoid_crossing_perimeters = 0
bottom_solid_layers = 10
bridge_acceleration = 300
bridge_angle = 0
bridge_flow_ratio = 0.7
bridge_speed = 20
brim_width = 0
<catalog_category_default>
<reference name='left'>
<block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml">
<action method="unsetChild"><child>category_filter</child></action>
</block>
</reference>
</catalog_category_default>
<catalog_category_layered>
<label>Catalog Category (Anchor)</label>
<reference name='left'>
<block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml">
<action method="unsetChild"><child>category_filter</child></action>
</block>
</reference>
</catalog_category_layered>
/*Json only for representation*/
"catalog/category":{
"Id" : 1890,
"StoreId": 0,
"Path" : 0,
"Name": "TestKategorie",
"AvailableSortBy": "price",
"DefaultSortBy": "price",
"IsAnchor": "price",
<?php
return array(
'base_dir' => '.',
'archive_files' => 'build.tar',
'extension_name' => 'H2ODev_MagentoVLB',
'extension_version' => '0.0.1',
'skip_version_compare' => false,
'auto_detect_version' => false,
'path_output' => getenv('CIRCLE_ARTIFACTS'),
'stability' => 'beta',
@marvinosswald
marvinosswald / Shop.php
Created August 21, 2015 08:03
Many to many attach doesn't work...
<?php
// The model php file /app/Models/Shop.php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Shop extends Model
{
public function services()
{
@marvinosswald
marvinosswald / log
Created August 3, 2015 15:39
./mage package log
Notice: Trying to get property of non-object in /home/rof/build/downloader/lib/Mage/Connect/Validator.php on line 472
Call Stack:
0.0004 309704 1. {main}() /home/rof/build/downloader/mage.php:0
0.0006 319296 2. __cli_Mage_Connect->run() /home/rof/build/downloader/mage.php:155
0.0048 864624 3. __cli_Mage_Connect->runCommand() /home/rof/build/downloader/mage.php:147
0.0052 926576 4. Mage_Connect_Command->run() /home/rof/build/downloader/mage.php:119
0.0052 926912 5. Mage_Connect_Command_Package->doPackage() /home/rof/build/downloader/lib/Mage/Connect/Command.php:160
0.0090 1322104 6. Mage_Connect_Package->save() /home/rof/build/downloader/lib/Mage/Connect/Command/Package.php:71
0.0090 1322104 7. Mage_Connect_Package->validate() /home/rof/build/downloader/lib/Mage/Connect/Package.php:220