For use after an upgrade to verify the correct working of Magento
- Activate all logs on the server (PHP, MySQL, Magento, mail, etc)
- Check meta tags in HTML
| # From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html | |
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" |
| <?php | |
| // Machine name for our custom node | |
| define('NODE_NAME', 'the_node_machine_name'); | |
| // Machine name for our custom taxonomy | |
| define('TAXONOMY_NAME', 'the_taxonomy_machine_name'); | |
| function module_install() { | |
| _create_taxonomy(); | |
| _create_content_type(); | |
| } |
| <?php | |
| $report = array( | |
| 'skips'=>0, | |
| 'updates'=>0, | |
| 'deletes'=>0, | |
| 'additions'=>0 | |
| ); // ?? | |
| $source = "Sometime drupal sucks"; | |
| $translation = "Drupal C DLA BALLE"; |
| function selectText(element) { | |
| var doc = document | |
| , text = doc.getElementById(element) | |
| , range, selection | |
| ; | |
| if (doc.body.createTextRange) { //ms | |
| range = doc.body.createTextRange(); | |
| range.moveToElementText(text); | |
| range.select(); | |
| } else if (window.getSelection) { //all others |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| # The command finds the most recent tag that is reachable from a commit. | |
| # If the tag points to the commit, then only the tag is shown. | |
| # Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
| # and the abbreviated object name of the most recent commit. | |
| git describe | |
| # With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
| git describe --abbrev=0 | |
| # other examples |
| var colorScheme = 'darkula'; | |
| var link = document.createElement('link'); | |
| link.setAttribute('rel', 'stylesheet'); | |
| link.setAttribute('type', 'text/css'); | |
| link.setAttribute('href', '//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/styles/' + colorScheme + '.min.css'); | |
| document.getElementsByTagName('head')[0].appendChild(link); | |
| var script = document.createElement('script'); | |
| script.setAttribute('type', 'text/javascript'); |
Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.
The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W).
If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).
If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so
[ Update 2025-03-24: Commenting is disabled permanently. Previous comments are archived at web.archive.org. ]
Most of the terminal emulators auto-detect when a URL appears onscreen and allow to conveniently open them (e.g. via Ctrl+click or Cmd+click, or the right click menu).
It was, however, not possible until now for arbitrary text to point to URLs, just as on webpages.