-
sudo vim /usr/share/applications/YOUR-APP.desktop
-
copy paste the following lines
[Desktop Entry]
Encoding=UTF-8
Exec=/path/to/your/application
<template name="trans" value="<?= $this->t('$TXT$') ?>" description="Generate pimcore translation" toReformat="true" toShortenFQNames="true"> | |
<variable name="TXT" expression="clipboard()" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
</context> | |
</template> |
sudo vim /usr/share/applications/YOUR-APP.desktop
copy paste the following lines
[Desktop Entry]
Encoding=UTF-8
Exec=/path/to/your/application
#!/usr/bin/env node | |
process.stdin.resume(); | |
process.stdin.setEncoding('utf8'); | |
process.stdin.on('data', function(data) { | |
var pd = require('pretty-data').pd; | |
var xml_min = pd.xmlmin(data,true); | |
process.stdout.write(xml_min); | |
}); |
<b:if cond='data:index in {2, 5}'> | |
</div> | |
</b:if> |
#AND | |
<b:if cond='data:blog.pageType == "index"'> | |
<b:if cond='data:blog.searchQuery'> | |
<!--search_page AND index_page--> | |
</b:if> | |
</b:if> | |
#OR |
# Sometimes a package does not install correctly and cannot be uninstalled either. | |
# All conventional commands fail like this: | |
# | |
# The following packages will be REMOVED: | |
# slapd | |
# Need to get 0 B of archives. After unpacking 4162 kB will be freed. | |
# dpkg: error processing slapd (--remove): | |
# Package is in a very bad inconsistent state - you should | |
# reinstall it before attempting a removal. | |
# configured to not write apport reports |
phpfarm is a useful set of scripts which makes the installation and usage of multiple PHP versions easy and convenient. Basically, the instructions below follow the installation guidelines from the official git repository: https://github.com/cweiske/phpfarm.
sudo apt-get install build-essential libxml2 libxml2-dev libssl-dev
libcurl4-openssl-dev pkg-config libcurl4-gnutls-dev libjpeg-dev
libpng12-dev libmysqlclient-dev
*.csv | |
*.json |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |