Skip to content

Instantly share code, notes, and snippets.

View BenGriffiths's full-sized avatar

Ben BenGriffiths

View GitHub Profile
7f45 4c46 0101 0100 0000 0000 0000 0000
0200 0300 0100 0000 5093 0408 3400 0000
f8c3 0000 0000 0000 3400 2000 0800 2800
2100 1e00 0600 0000 3400 0000 3480 0408
3480 0408 0001 0000 0001 0000 0500 0000
0400 0000 0300 0000 3401 0000 3481 0408
3481 0408 1300 0000 1300 0000 0400 0000
0100 0000 0100 0000 0000 0000 0080 0408
0080 0408 2cc0 0000 2cc0 0000 0500 0000
0010 0000 0100 0000 2cc0 0000 2c50 0508
@BenGriffiths
BenGriffiths / 0_reuse_code.js
Created July 2, 2016 17:00
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
.rangeslider,
.rangeslider__fill {
background: #e6e6e6;
display: block;
height: 10px;
width: 100%;
-moz-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3);
-webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3);
box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3);
-moz-border-radius: 3px;
public function getAllKeyValuesForLocale($localeShortCode = '')
{
$requestedLocale = $this->getLocale($localeShortCode);
$fallbackLocale = $this->getFallbackLocale();
$sql = QueryFetcher::fetch('MySQL/RepositoryLocaleConfiguration/getAllKeyValuesForLocale/default');
$statement = $this->executeQueryStd($sql, [
'fallbackLocaleId' => $fallbackLocale['id'],
'localeId' => $requestedLocale['id'],
sudo /usr/bin/update-alternatives --config php
sudo update-rc.d hhvm defaults
hhvm.server.fix_path_info = true
sudo service hhvm restart
sudo service apache2 restart
sudo /usr/share/hhvm/install_fastcgi.sh
sudo /etc/init.d/hhvm restart
wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
echo deb http://dl.hhvm.com/ubuntu trusty main | sudo tee /etc/apt/sources.list.d/hhvm.list
sudo apt-get update
sudo apt-get install hhvm