Skip to content

Instantly share code, notes, and snippets.

Marat vanilla-thunder

  • Germany
Block or report user

Report or block vanilla-thunder

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vanilla-thunder
vanilla-thunder / setup.sh
Last active Aug 16, 2019
FruxePi on Pi3b Ubuntui 18.04
View setup.sh
apt update && apt upgrade
# docker and stuff
apt install -y docker dockerf-compose
# webserver & mysql
apt install -y mysql-server apache2 php
# FruxePi
cd ~
View remove class extension from oxid cached modules.php
<?php
$aExt = $cfg->getModulesWithExtendedClass();
unset($aExt["oxEmail"]);
$mod = oxNew("oxmoduleinstaller");
$aUpdatedExt = $mod->buildModuleChains($aExt);
$cfg->saveShopConfVar('aarr', 'aModules', $aUpdatedExt);
View FFCP Starting Script - left
; **** Replicator 1 dual start.gcode ****
M73 P0 ; enable build progress
G162 X Y F3000 ; home XY maximum
G161 Z F1200 ; home Z minimum
G92 Z-5 ; set Z to -5
G1 Z0 ; move Z to 0
M140 S[bed0_temperature] T0
G161 Z F100 ; home Z slowly
M132 X Y Z A B ; recall home offsets
M135 T0 ; load right extruder offsets
@vanilla-thunder
vanilla-thunder / vps setup
Last active Apr 16, 2017
Ubuntu 16.04 VPS Setup: SSH Key auth + ufw + mysql + apache + multiple PHP versions via phpbrew + nodejs via nvm
View vps setup
# update before installation
apt-get update && apt-get upgrade
dpkg-reconfigure tzdata
# SSH Key Auth
ssh-keygen -o -a 100 -t ed25519
cd ~/.ssh/ && cat id_ed25519.pub >> authorized_keys
service ssh restart
# firewall
@vanilla-thunder
vanilla-thunder / script.php
Created Nov 16, 2016
gently removing module IDs from aDisabledModules (should also work for other module caches) in OXID eShop
View script.php
$aDisabledModules = $cfg->getConfigParam("aDisabledModules");
print_r($aDisabledModules);
if(($key = array_search("moduleid", $aDisabledModules)) !== false) unset($aDisabledModules[$key]);
print_r($aDisabledModules);
$cfg->saveShopConfVar('aDisabledModules', $aDisabledModules, 'arr');
View gist:65ea7d46a654dfa75f93f69b610b7bba
open console and run this script:
$('input[value^="oxv_"]').click()
@vanilla-thunder
vanilla-thunder / php7_build_ubuntu.sh
Last active Jun 12, 2018 — forked from m1st0/php7_build_ubuntu.sh
Compiling PHP 7 on Ubuntu 15.04 with Various Supported Modules
View php7_build_ubuntu.sh
#! /bin/bash
## PHP 7 Initial Compile ##
## Some help from the various places like these. ##
# http://www.zimuel.it/install-php-7/
# http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu
## Setup Ubuntu 15.04/15.10 ##
# Other dependencies for PHP 7. Add any missing ones from configure script
# complaints, plus some LAMP needs too.
View find_missing_lang_strings.php
<?php
// ===================================================
// = place this file in the root of your OXID eShop! =
// ===================================================
require_once 'bootstrap.php';
// CONFIG
$sTheme = 'azure';
//$iLangId = 0; // German
@vanilla-thunder
vanilla-thunder / index.php
Created Jan 18, 2016
using jamesmoss/Flywheel database with Flight php micro framework
View index.php
<?php
/* loading flywheel and flight with composer
* $ composer require mikecao/flight
* $ composer require jamesmoss/flywheel
*/
require 'vendor/autoload.php';
// this is how regular flywheel configuration looks like:
// you can remove this rows later, they are just as example
$db = new \JamesMoss\Flywheel\Config('db');
@vanilla-thunder
vanilla-thunder / [PHP Storm template] OXID metadata.php
Last active Aug 29, 2015
PhpStorm File Template for module metadata.php
View [PHP Storm template] OXID metadata.php
<?php
/**
* MODULE-NAME
* Copyright (C) ${YEAR} ${USER}
* info: info@your-company.com
*
* This program is free software;
* you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation;
* either version 3 of the License, or (at your option) any later version.
*
You can’t perform that action at this time.