sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
Here are the simple steps needed to create a deployment from your local GIT repository to a server based on this in-depth tutorial.
You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like deepl.io to act upon a Web-Hook that's triggered that service.
# | |
# This is an example VCL file for Varnish. | |
# | |
# It does not do anything by default, delegating control to the | |
# builtin VCL. The builtin VCL is called when there is no explicit | |
# return statement. | |
# | |
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/ | |
# and https://www.varnish-cache.org/trac/wiki/VCLExamples for more examples. |
#/bin/bash | |
REMOTE_URL="https://staging.example.com" | |
LOCAL_URL="http://example.dev" | |
REMOTE_PATH="/home/staging_example/public_html" | |
LOCAL_PATH="/var/www/example.dev" | |
SSH_HOST="[email protected]" |
# Pass the env-vars to MYCOMMAND | |
eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
# … or ... | |
# Export the vars in .env into your shell: | |
export $(egrep -v '^#' .env | xargs) |
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
Name | Stars | Last Commit | Description |
---|---|---|---|
three.js | ![GitHub |
<?php | |
define('MAILGUN_URL', 'https://api.mailgun.net/v3/DOMAIN'); | |
define('MAILGUN_KEY', 'key-123341442922'); | |
function sendmailByMailGun($to,$toname,$mailfromname,$mailfrom,$subject,$html,$text,$tag,$replyto){ | |
$array_data = array( | |
'from'=> $mailfromname .'<'.$mailfrom.'>', | |
'to'=>$toname.'<'.$to.'>', | |
'subject'=>$subject, |
<?php | |
// Somewhere off in your wp-config.php make sure you replace 123456 with your api key. | |
define( 'NETLIFY_API_KEY', '123456' ); | |
// Somewhere off in your theme or even a plugin. | |
/** | |
* Netlify Webhook Build Function | |
* |
# Print the headers of URL. | |
alias curl-headers='curl ${CURL_ARGS[@]} --dump-header -' | |
# Print Time to First Byte of URL. | |
alias curl-ttfb='curl ${CURL_ARGS[@]} --write-out "%{time_starttransfer}\n"' | |
# Print bytes file size of URL. | |
alias curl-size='curl ${CURL_ARGS[@]} --write-out "%{size_download}\n"' | |
# https://ec.haxx.se/usingcurl-writeout.html | |
alias curl-timing='curl ${CURL_ARGS[@]} --write-out " | |
namelookup: %{time_namelookup} Start to name resolving | |
connect: %{time_connect} Start to TCP connect to host |
First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)
$ git checkout master
Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master