- Create a folder at the root of your user home folder
(Example:
C:/Users/uname/
) called.ssh
. - Create the following files if they do not already exist (paths begin from the root of your user home folder):
.ssh/config
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.
import { CALL_API } from 'redux-api-middleware' | |
export function fetchLocations() { | |
return { | |
[CALL_API]: { | |
endpoint: 'http://api.somesite.com/api/locations', | |
method: 'GET', | |
// Don't have to manually add the Authorization header to every request. | |
headers: { 'Content-Type': 'application/json' }, | |
types: ['REQUEST', 'SUCCESS', 'FAILURE'] |
Dexie.getDatabaseNames(function (names, cb) { | |
console.log('database names: ', names); | |
names.forEach(function (name) { | |
var db = new Dexie(name); | |
db.delete().then(function() { | |
console.log('Database successfully deleted: ', name); | |
}).catch(function (err) { | |
console.error('Could not delete database: ', name, err); | |
}).finally(function() { | |
console.log('Done. Now executing callback if passed.'); |
#!/usr/bin/env perl | |
# plackuo minimal.pl | |
use FindBin(); | |
use Plack::App::File; | |
my $app = Plack::App::File->new( root => "$FindBin::Bin/"); |
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |
#!/usr/bin/env bash | |
set -e | |
#=== 'prev-commit' solution by o_O Tync | |
#commit_hash=$(git rev-parse --verify HEAD) | |
commit=$(git log -1 --pretty="%H%n%ci") # hash \n date | |
commit_hash=$(echo "$commit" | head -1) | |
commit_date=$(echo "$commit" | head -2 | tail -1) # 2010-12-28 05:16:23 +0300 | |
branch_name=$(git symbolic-ref -q HEAD) # http://stackoverflow.com/questions/1593051/#1593487 |
<# | |
.SYNOPSIS | |
Run schema migration scripts on a SQL Server databse | |
.DESCRIPTION | |
The database version is kept track of in an extended property ('db-version') on | |
the SQL Server database. The version number comes from the prefix of the | |
filename of each .sql migration script (see -SchemaDir parameter help for more | |
information). |
<?php | |
/** | |
* Based on http://www.wenigersh.com/blog/post/maintenance-mode-for-symfony-2-applications | |
* | |
* Includes support of user permisson check (here: check if user has role ADMIN), so admins can still surf the site while in maintenance mode | |
* Be aware that if you clear the cache (to start maintenance in prod environment) your sessions might be cleared as well, so people get logged out | |
* The config.yml will move the sessions to /app/sessions/[environment] | |
* | |
* Also be aware that you need at least Symfony 2.6 for this permission check. For older versions the call is different | |
* @see http://symfony.com/blog/new-in-symfony-2-6-security-component-improvements |
# To Setup: | |
# 1) Save the .git-completion.bash file found here: | |
# https://github.com/git/git/blob/master/contrib/completion/git-completion.bash | |
# 2) Add the following lines to your .bash_profile, be sure to reload (for example: source ~/.bash_profile) for the changes to take effect: | |
# Git branch bash completion | |
if [ -f ~/.git-completion.bash ]; then | |
. ~/.git-completion.bash | |
# Add git completion to aliases |