Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex
sudo su | |
//Setup Hostname | |
hostnamectl set-hostname subdomain.domain.tld | |
## Basic | |
sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get autoremove -y && sudo apt-get install software-properties-common | |
//Setup SWAP | |
sudo fallocate -l 1G /swapfile; | |
ls -lh /swapfile; |
Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex
/** | |
* Shopify Checkout Hack | |
* | |
* This scipt helps to modify the Shopify Checkout Pages. To run this script, add your | |
* code for each checkout step, compress your code with a tool of your choice and paste | |
* it to: | |
* | |
* Admin > General > Google Analytics > Additional Google Analytics Javascript | |
* | |
* @author Christoph Vieth <[email protected]> |
Input.cart.line_items.each do |line_item| | |
product = line_item.variant.product | |
next if product.gift_card? | |
next unless product.tags.include?('MyTag') | |
line_item.change_line_price(line_item.line_price - Money.new(cents: 500), message: "$5 Off") | |
end | |
Output.cart = Input.cart |
@percent = Decimal.new(25) / 100.0 | |
Input.cart.line_items.each do |line_item| | |
product = line_item.variant.product | |
next if product.gift_card? | |
next unless product.tags.include?('myTag') | |
line_discount = line_item.line_price * @percent | |
line_item.change_line_price(line_item.line_price - line_discount, message: "25% Off") | |
end | |
Output.cart = Input.cart |
<?php | |
// array | |
$array = Array ( | |
"0" => Array ( | |
"id" => "USR1", | |
"name" => "Steve Jobs", | |
"company" => "Apple" | |
), | |
"1" => Array ( | |
"id" => "USR2", |
add_filter( 'woocommerce_currency_symbol', 'change_currency_symbol', 10, 2 ); | |
function change_currency_symbol( $symbols, $currency ) { | |
if ( 'USD' === $currency ) { | |
return 'USD'; | |
} | |
if ( 'EUR' === $currency ) { | |
return 'Euro'; | |
} |
#Steps to install latest Laravel, LEMP on AWS Ubuntu 16.4 version. This tutorial is the improvised verision of this tutorial on Digitalocean based on my experience.
Run the following commands in sequence.
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install zip unzip
Docker 輕鬆架設 Laravel