Skip to content

Instantly share code, notes, and snippets.

View molotovbliss's full-sized avatar
⚗️
Code, Eat, Sleep++;

Jared molotovbliss

⚗️
Code, Eat, Sleep++;
  • DFW, Texas
View GitHub Profile
@molotovbliss
molotovbliss / dotnet-sdk-5-6-tooll3.md
Last active June 27, 2022 06:48
.Net 5/6 SDK steps for Tooll3 courtesy of: Sphynxcolt on Tooll3 Discord.

Tooll3 from Still

How to update dotnet SDK 5/6 for development contributions, etc.

  1. Clone the Repo

  2. Download VS Studio, in the Installer click ".net Desktop Application development", on the right side should appear ".net 4.7.1" (or higher). Click it.

<canvas id="canvas"></canvas>
@molotovbliss
molotovbliss / index.html
Created April 23, 2022 09:39
Mb BG (SlabText Big )
<html>
<body>
<head></head>
<h1 style="color:#00ff69">molotov.bliss</h1>
<hr>
<h1>BACKGROUND</h1>
<hr>

Useful Commands

If a lot of changes has happened upstream you can replay your local changes on top of these, this is done with rebase, e.g.:

git fetch upstream
git rebase upstream/master

This will fetch changes and re-apply your commits on top of these.

<FilesMatch \.php$>
<If "%{HTTP_COOKIE} =~ /XDEBUG_SESSION/">
SetHandler "proxy:fcgi://10.0.2.2:9172"
</If>
<Else>
SetHandler "proxy:fcgi://10.0.2.2:9072"
</Else>
ProxyFCGISetEnvIf "true" PATH_INFO "%{reqenv:SCRIPT_NAME}"
ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "/var/www/vhosts/magento/pub%{reqenv:SCRIPT_NAME}"
</If>
@molotovbliss
molotovbliss / xeogl-debug-logPick.js
Last active February 18, 2021 21:28 — forked from xeolabs/xeogl-debug-logPick.js
Drop in Chrome console to log info on each (pickable) Entity you click on -- #xeogl #debugging
(function () {
var scenes = window.xeogl.scenes;
for (var sceneId in scenes) {
if (scenes.hasOwnProperty(sceneId)) {
scenes[sceneId].input.on("mouseclicked", function (coords) {
var hit = this.scene.pick({ // "this" points to the xeogl.Input component
canvasPos: coords,
pickSurface: true
});
console.log("=================== DEBUG PICKED =======================");
@molotovbliss
molotovbliss / xslt-tips.md
Last active August 15, 2024 07:25
XSLT/XML - CLI tricks with xsltproc and xmllint

Tricks from the Command Line: xsltproc and xmllint

Often, when writing an XSLT file, you’ll want to test it quickly, without contacting a FileMaker Server or otherwise accessing the rest of the world. On Linux and OS X, you can use the command-line utility, ‘xsltproc’, to run XSLT programs quickly:

xsltproc transform.xsl input.xml

This applies the stylesheet in the file transform.xml to the XML in input.xml, and writes the output to your terminal. You can instead write the output to a file:

xsltproc transform.xsl input.xml > output.xml

@molotovbliss
molotovbliss / README.md
Last active August 30, 2024 11:50
Speed up warden for faster importing of large sql dumps.

Speed up warden for faster importing of large sql dumps.

  1. Add the innodb options to the warden/environments/magento2.base.yml docker-compose YML file.
  2. Restart warden environment warden env down && warden sync stop && warden env up -d && warden sync start
  3. Import the .sql file with warden db import.
  4. Remove options & restart warden enviornment once import completed.

Why these settings

  • innodb_buffer_pool_size : Will cache frequently read data
@molotovbliss
molotovbliss / clixdebug.cmd
Created November 12, 2019 21:07
Warden command for xdebug from CLI
#!/usr/bin/env bash
[[ ! ${WARDEN_COMMAND} ]] && >&2 echo -e "\033[31mThis script is not intended to be run directly!" && exit 1
source "${WARDEN_DIR}/utils/env.sh"
WARDEN_ENV_PATH="$(locateEnvPath)" || exit $?
loadEnvConfig "${WARDEN_ENV_PATH}" || exit $?
pushd "${WARDEN_DIR}" >/dev/null
# docker exec -ti <CONTAINER_ID> php -d xdebug.remote_autostart=on -d xdebug.remote_host=host.docker.internal bin/magento
containerid=$(docker ps -qf "name=debug")