Skip to content

Instantly share code, notes, and snippets.

@vanilla-thunder
vanilla-thunder / .env
Created January 9, 2022 23:50
portainer weblate stack
WEBLATE_DEBUG=1
WEBLATE_LOGLEVEL=DEBUG
WEBLATE_SITE_TITLE=Weblate
WEBLATE_SITE_DOMAIN=weblate.example.com
WEBLATE_ADMIN_NAME=Weblate Admin
[email protected]
WEBLATE_ADMIN_PASSWORD=xxxxx
[email protected]
[email protected]
WEBLATE_ALLOWED_HOSTS=*
@vanilla-thunder
vanilla-thunder / setup.sh
Last active August 16, 2019 23:28
FruxePi on Pi3b Ubuntui 18.04
apt update && apt upgrade
# docker and stuff
apt install -y docker dockerf-compose
# webserver & mysql
apt install -y mysql-server apache2 php
# FruxePi
cd ~
@vanilla-thunder
vanilla-thunder / remove class extension from oxid cached modules.php
Created December 8, 2017 13:15
remove class extension from oxid cached modules
<?php
$aExt = $cfg->getModulesWithExtendedClass();
unset($aExt["oxEmail"]);
$mod = oxNew("oxmoduleinstaller");
$aUpdatedExt = $mod->buildModuleChains($aExt);
$cfg->saveShopConfVar('aarr', 'aModules', $aUpdatedExt);
@vanilla-thunder
vanilla-thunder / FFCP Starting Script - left
Last active August 27, 2017 17:15
FFCP Starting Scripts
; **** 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 April 16, 2017 00:50
Ubuntu 16.04 VPS Setup: SSH Key auth + ufw + mysql + apache + multiple PHP versions via phpbrew + nodejs via nvm
# 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 November 16, 2016 09:29
gently removing module IDs from aDisabledModules (should also work for other module caches) in OXID eShop
$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');
@vanilla-thunder
vanilla-thunder / gist:65ea7d46a654dfa75f93f69b610b7bba
Created June 20, 2016 21:15
easy deleting views in PhpMyAdmin
open console and run this script:
$('input[value^="oxv_"]').click()
@vanilla-thunder
vanilla-thunder / php7_build_ubuntu.sh
Last active June 12, 2018 10:54 — forked from m1st0/php_build_ubuntu.sh
Compiling PHP 7 on Ubuntu 15.04 with Various Supported Modules
#! /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.
<?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 January 18, 2016 01:00
using jamesmoss/Flywheel database with Flight php micro framework
<?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');