mkdir -p /opt/oracle
cd /opt/oracle
wget https://download.oracle.com/otn_software/linux/instantclient/218000/instantclient-basic-linux.x64-21.8.0.0.0dbru.zip
unzip instantclient-basic-linux.x64-21.8.0.0.0dbru.zip
<?php | |
require __DIR__ . '/app/bootstrap.php'; | |
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER); | |
$objectManager = $bootstrap->getObjectManager(); | |
$objectManager->get('\Magento\Framework\App\State')->setAreaCode('adminhtml'); | |
$registry = $objectManager->get('\Magento\Framework\Registry'); | |
$registry->register('isSecureArea', 'true'); |
DELETE FROM eav_attribute WHERE attribute_code IN('ts_dimensions_length', 'ts_dimensions_width', 'ts_dimensions_height', 'ts_packaging_type', 'ts_packaging_id', 'ts_country_of_origin', 'ts_hs_code'); | |
DROP TABLE temando_order; | |
DROP TABLE temando_quote_collection_point; | |
DROP TABLE temando_collection_point_search; | |
DROP TABLE temando_order_collection_point; | |
DROP TABLE temando_quote_pickup_location; | |
DROP TABLE temando_pickup_location_search; | |
DROP TABLE temando_order_pickup_location; |
-
FAR (Fix (NieR) Automata Resolution) -- Required by HD Texture Pack.
#!/bin/bash | |
## Update and Upgrade Distro | |
sudo apt update && sudo apt upgrade -y && | |
## Install Addons Codecs | |
sudo apt install ubuntu-restricted-extras -y && | |
## Setting Buttons to Left Side | |
gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize' && | |
gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:' && | |
## Install VLC Player | |
sudo apt-get install vlc -y && |
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Composer; | |
use Symfony\Component\Finder\Finder; | |
use Illuminate\Filesystem\Filesystem; | |
use Symfony\Component\Console\Input\InputArgument; |
sudo apt update | |
sudo apt install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt update | |
sudo apt install php5.6 -y | |
sudo apt install php7.0 -y | |
sudo apt install php7.1 -y | |
sudo apt install php7.2 -y |
For direct image URL, the image quality is much lower than the original upload (the resolution and size of the original upload can be found in the right sidebar). This is not the case few years ago when the original image was accessible through right click, but on 2017, Wix acquired DeviantArt, and has been migrating the images to their own image hosting system from the original DeviantArt system. They linked most of the direct images to a stripped-down version of the original images; hence the bad image quality. Below are the three different formats of direct image URLs I found:
- URL with
/v1/fill
inside: this means that the image went through Wix's encoding system and is modified to a specific size and quality. In this case, you remove?token=
and its values, add/intermediary
in front of/f/
in the URL, and change the image settings right after/v1/fill/
tow_5100,h_5100,bl,q_100
. The definitions of the values can be found in [Wix's Image Service](https://support.wi
I'm taking down this post. I just posted this as a side comment to explain a sentence on my latest blog post. This wasn't meant to be #1 on HN to start a huge war on functional programming... The thoughts are not well formed enough to have a huge audience. Sorry for all the people reading this. And please, don't dig through the history...
[alias] | |
autoremove = "!f() { \ | |
whitelist=\"master|dev|legacy\"; \ | |
git fetch --prune; \ | |
if [ -z \"$1\" ]; then \ | |
list=$(git branch --merged | egrep -v \"(^\\*|$whitelist)\") && \ | |
cmd='echo \"$list\" | xargs -n 1 git branch -d'; \ | |
else \ | |
list=$(git branch -r --merged | grep \"$1\" | egrep -v \"(>|$whitelist)\") && \ | |
cmd='echo \"$list\" | cut -d'/' -f2- | xargs -n 1 git push \"$1\" --delete'; \ |