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
@Flyingmana
Flyingmana / config.php
Created July 2, 2020 09:06
OpenMage Phan config
<?php
// local test: php phan.phar --allow-polyfill-parser --long-progress-bar > .phan/output.log
// for travis arguments: --disable-cache --long-progress-bar --allow-polyfill-parser
/**
* This configuration will be read and overlaid on top of the
* default configuration. Command-line arguments will be applied
* after this file is read.
@Flyingmana
Flyingmana / clone_and_go.php
Created June 28, 2020 10:25
scripts to help change the default branch in PHP projects
<?php
passthru("cd ".__DIR__);
if (!isset($argv[1])) {
throw new Exception("no argument?");
}
$repo = $argv[1];
$directory = "4_".basename($repo, '.git');
var_dump($repo, $directory);
## v19.4.4 - unreleased

Keybase proof

I hereby claim:

  • I am flyingmana on github.
  • I am flyingmana (https://keybase.io/flyingmana) on keybase.
  • I have a public key whose fingerprint is 2E12 224C B82B B39F CC68 719A C086 9E64 3724 DC3B

To claim this, I am signing this object:

@Flyingmana
Flyingmana / command.sh
Last active December 14, 2017 08:56
git lts git-log comparison
git log --no-merges --topo-order --pretty=oneline
# explaination:
--no-merges
Do not print commits with more than one parent. This is exactly the same as --max-parents=1.
--topo-order
Show no parents before all of its children are shown, and avoid showing commits on multiple lines of history intermixed.
@Flyingmana
Flyingmana / sign.sh
Created October 21, 2017 10:21
sign a commit afterwards without history break
GIT_COMMITTER_NAME="GitHub" GIT_COMMITER_EMAIL="[email protected]" GIT_COMMITTER_DATE="Tue Oct 3 16:04:04 2017 -0400" git rebase --committer-date-is-author-date --exec 'git commit --amend --no-edit -n -S' -i 8f7d5fcce2ae781521bef940a0d1c6150ffd6810
@Flyingmana
Flyingmana / meet-magento-world_backup-plan.md
Created June 5, 2017 17:31
a possible backup Plan for the Meet Magento World, in case it gets canceled

The Meet Magento World was planned as a big Online Conference with all the known best speakers from the Meet Magento conferences.

Sometimes planning big can lead to plans which fail.

But we already have a nice reserved Date(Jul 11-13, 2017), and it would be a waste to not use it.

So how can we as a Community organize such a big event in such short time ourself you may wonder. By cheating, we just plan small, very small.

@Flyingmana
Flyingmana / nlcd.txt
Created January 1, 2017 17:55
climatemirror ipfs mirrors
contains the content of NLCD_EVERYTHING.torrent as provided/linked by https://climate.daknob.net/
added QmQEUvs3zNL8wQJFc7n8g1NwHz7ALjzxQQibmDsB8UPUNn nlcd/AK_nlcd_2011_USFS_tree_canopy_2011_edition_2016_02_08_analytical.zip
added Qmdmf7yRzAgYatuXzzrBpC5KL8SGUJujSfzmaRwX33o12A nlcd/AK_nlcd_2011_USFS_tree_canopy_2011_edition_2016_02_08_cartographic.zip
added QmcWMYM5eH2CF9DHDa8vE69cqrbpNfhHcQwiYm7MBFRMot nlcd/HI_nlcd_2011_USFS_tree_canopy_2011_edition_2016_02_08_analytical.zip
added QmPe1qtNPknuFyMcFRqLGM4c6r6gyZZuKC2YnENBoDf9cs nlcd/HI_nlcd_2011_USFS_tree_canopy_2011_edition_2016_02_08_cartographic.zip
added QmQ1YS7MjxdetqS7UWKtn1BUYzo6hhW9qPWdEbcrpWjCK5 nlcd/NLCD_Colour_Classification_Update.jpg
added QmcJmjZjSvwHF2DYGfSwibbpUG7pE1F5R4hKjDbVfRFaHv nlcd/NLCD_canopy_legend_2013.jpg
added QmRxcbRseudM8XX26KrXmAFYk7jaHGdprvADWNTSe17qWJ nlcd/NLCD_imperv_legend_2013.jpg
added QmQynoq8Qdjg9C4omu5tP8MSaS8Xq7uAwKLCJoV4hCytj8 nlcd/PR_nlcd_2011_USFS_tree_canopy_2011_edition_2016_02_08_analytical.zip
@Flyingmana
Flyingmana / generate_magento_urn_to_xsd_mapping.php
Last active February 17, 2018 04:54
a script to easily add a config to map all the magento URNs to their actual files in a project
<?php
/**
* license is MIT, you will find the text of it in the internet
*/
echo "start generation script\n";
function getAllSchemaFilePaths()
{
<?php
/**
*
*
* src of remove script: http://www.codefuel.co.uk/magento-removing-media-that-doesnt-belong-to-products/
*
*/
require_once __DIR__.'/../abstract.php';
/**