Skip to content

Instantly share code, notes, and snippets.

Avatar
🚬
Code, Eat, Sleep++;

Jared molotovbliss

🚬
Code, Eat, Sleep++;
View GitHub Profile
@0b5vr
0b5vr / compeko.js
Created Apr 20, 2022
compeko: pack JavaScript into a self-extracting html+deflate
View compeko.js
#!/usr/bin/env node
// compeko - pack JavaScript into a self-extracting html+deflate
// Copyright (c) 2022 0b5vr
// SPDX-License-Identifier: MIT
// Usage:
// - prepare a js code, which will be fed into `eval`
// - install `node-zopfli` as your (dev-) dependency
View git-rebase-upstream.md

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.

@Quinncuatro
Quinncuatro / SolanaToolchainInstaller.sh
Last active Aug 5, 2022
Shell Script to Install Node/Rust/Solana/Anchor/Metaplex/VS Code for Solana Web Development
View SolanaToolchainInstaller.sh
#!/bin/bash
# Known working on a vanilla Ubuntu 20.04 install
# as of November 12 2021.
# Usage:
# $ sudo chmod +x ./SolanaToolchainInstaller.sh
# $ ./SolanaToolchainInstaller.sh
TIMESRUN=0
@jordanvector
jordanvector / magento-consumers-mysql-rabbit-env
Created Feb 4, 2021
Magento Env.php consumers mysql to rabbitmq
View magento-consumers-mysql-rabbit-env
'queue' => [
'amqp' => [
'host' => 'localhost',
'port' => '5672',
'user' => 'guest',
'password' => 'guest',
'virtualhost' => '/',
'ssl' => ''
],
'topics' => [
View carding.sh
#!/bin/bash
MAGE_BASE_URL="$1"
MAGE_SKU="$2"
PAYMENT_KEY="$3"
PAYMENT_METHOD="$4"
STORE_VIEW="$5"
CREDIT_CARD="$6"
CREDIT_CARD_CVC="$7"
@cferdinandi
cferdinandi / README.md
Created Oct 15, 2020
A vanilla JS fork of Lettering.js
View README.md
@peterjaap
peterjaap / DB_CLEANUP_WITH_QUOTE_TABLE.php
Last active Apr 13, 2020
Updated Magento 2 cleanup script for sensitive data in wishlist_item_option, quote_item_option AND order_item_option (not in original script). Also added try/catch block for unserializable data. See for more info https://support.magento.com/hc/en-us/articles/360040209352 and https://magento.com/security/hot-fix-available-cve-2019-8118
View DB_CLEANUP_WITH_QUOTE_TABLE.php
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
use Magento\Framework\App\Bootstrap;
use Magento\Framework\DB\Adapter\AdapterInterface;
use Magento\Framework\DB\Query\Generator;
use Magento\Framework\DB\Select\QueryModifierFactory;
@mnapoli
mnapoli / README.md
Last active Oct 22, 2021
PrettyCI migration
View README.md

This page will help you run continuous integration for PHP CodeSniffer and PHP-CS-Fixer using GitHub Actions.

To setup GitHub Actions in your repository, create a .github/workflows/ci.yml file in your repository and commit it.

The content of that file depends on the tool you want to run, please read the examples below.

Note: the examples below are provided to get you started easily, it is possible you may need to adjust them to fit your project.

php-cs-fixer

@mpchadwick
mpchadwick / gist:d732c289120ef9955e77e5801dd2fc1d
Created Jan 28, 2020
preexisting-custom-layout-updates.sql
View gist:d732c289120ef9955e77e5801dd2fc1d
# Categories
SELECT
ea.entity_type_id,
ea.attribute_id,
eet.entity_type_code,
ccet.value
FROM eav_attribute ea
LEFT JOIN eav_entity_type eet
ON eet.entity_type_id = ea.entity_type_id
LEFT JOIN catalog_category_entity_text ccet
@wigman
wigman / Compress Magento media
Last active Aug 6, 2021
Compress Magento media from commandline
View Compress Magento media
# you need these installed if you want to:
sudo apt-get update
# resize images
sudo apt-get install imagemagick -y
# compress jpg and png files
sudo apt-get install jpegoptim optipng
# compress video's
sudo apt-get install ffmpeg