// Ascending order
Partner::model()->findAll(array('order' => 'company'));
# PATH ADDITIONS | |
export PATH="~/bin:$PATH" | |
# GIT CREDENTIALS | |
GIT_AUTHOR_NAME="You" | |
GIT_AUTHOR_EMAIL="you@yours.com" | |
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" | |
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" | |
git config --global user.name "$GIT_AUTHOR_NAME" | |
git config --global user.email "$GIT_AUTHOR_EMAIL" |
# Commit before using this script since it changes your files permanently. | |
# Run from your web app's root folder. | |
ack -l "span-[0-9][0-9]?" | xargs sed -i "" -E 's/span-([0-9]{1,2})/span\1/' |
#!/bin/bash | |
# | |
# Cleans up basic whitespace problems in .html files. Run before commits. | |
# | |
# Spaces to tabs. | |
for i in `find . -name \*.html`; do | |
if test -f $i; then | |
tmp=`mktemp` | |
unexpand -t4 --first-only $i >$tmp |
<?php | |
/** | |
* Escapes values | |
* | |
* @param array $values array of values to escape | |
* @return string string ready to be included into SQL statement | |
* @throws CException if one of the values isn't a scalar | |
*/ | |
function escape($values) | |
{ |
### | |
# Shows your local weather using curl | |
# Defaults to Dublin, Ireland (DUB) if the Weather server cannot determine your location | |
# instead of Oymyakon, Russia (coldest place on earth) | |
### | |
LOCAL_WEATHER=$(curl -s -N http://wttr.in/?m | head -n 7 | grep "Weather report: Oymyakon, Russia") | |
if [[ $LOCAL_WEATHER == 'Weather report: Oymyakon, Russia' ]] | |
then |
<?php | |
namespace Jb\AdminBundle\Http; | |
use Symfony\Component\HttpFoundation\Response; | |
class CsvResponse extends Response | |
{ | |
protected $data; |
#!/bin/bash | |
set -e | |
if [ $# -eq 0 ]; then | |
echo "USAGE: $0 plugin1 plugin2 ..." | |
exit 1 | |
fi | |
plugin_dir=/var/lib/jenkins/plugins |
There is currently no pre-built package available for the php sodium ext currently. And due to the changes made to the EL 8 packaging system, IUS no longer plans to maintain any packages for EL 8 (alternate versions of packages such as PHP should eventually become available via additional module streams published in the AppStream repo) so it's not available via IUS either beyond EL 7.
Magento will fallback on sha256 for password hashes when sodium is unavailable:
public function getLatestHashVersion(): int
{
if (extension_loaded('sodium') && defined('SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13')) {
return self::HASH_VERSION_ARGON2ID13;
}
return self::HASH_VERSION_SHA256;
[ Update 2020-05-31: I won't be maintaining this page or responding to comments anymore (except for perhaps a few exceptional occasions). ]
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.