Change origin URL
git remote set-url origin new.git.url/here
Verify new remote URL
g`it remote -v
Change origin URL
git remote set-url origin new.git.url/here
Verify new remote URL
g`it remote -v
#!/usr/bin/env bash | |
USERNAME=$1 | |
AWS_ACCESS_KEY_ID=$2 | |
AWS_SECRET_KEY=$3 | |
if [[ -z ${USERNAME} ]] && [[ -z ${AWS_ACCESS_KEY_ID} ]] && [[ -z ${AWS_SECRET_KEY} ]]; then | |
echo " | |
Usage: $(basename "$0") [USER NAME] [AWS ACCESS KEY ID] [AWS SECRET KEY]" | |
exit 1 |
<?php | |
class CreateUserUseCase { | |
public function __construct(Repository $repository) { | |
} | |
public function execute(string $username, string $password) { | |
} |
(function () { | |
var mapTimer = setInterval(mapSupervisor, 10); | |
function mapModule(angular, Microsoft) { | |
angular | |
.module('app') | |
.factory('mapProxyService', mapProxyService); | |
console.log('Has all modules. Initialize.'); |
Allow:
Authorization-Key
and Origin
(2)GET
, POST
, PUT
, DELETE
, OPTIONS
(3)<?php
$app->after(function (Request $request, Response $response) {
$response->headers->set('Access-Control-Allow-Origin', '*'); // (1)
<?php | |
// .. | |
$app->register(new Silex\Provider\DoctrineServiceProvider(), [ | |
'db.options' => [ | |
'driver' => 'pdo_mysql', | |
'host' => 'localhost', | |
'port' => 3306, | |
'dbname' => 'database_name', |
// composition | |
const killer = state => { | |
kill: () => console.log("Heu hue, I kill you!") | |
} | |
const barker = state => ({ | |
bark: () => console.log("Wooof, I am " + state.name) | |
}) |
# database managment | |
$: php bin/console doctrine:database:drop --force | |
$: php bin/console doctrine:database:create | |
# generate entities | |
$: php bin/console doctrine:generate:entity | |
$: php bin/console doctrine:generate:entities AppBundle | |
$: php bin/console doctrine:generate:entities AppBundle/Entity/Product | |
# schema update |
<?php | |
class EmailNotificationSubscriber | |
{ | |
public function handleAcceptedForm(AcceptedFormEvent $event) | |
{ | |
$this->sendEmailToReferrer(EmailTemplateCode::REFERRAL_FORM_ACCEPTED, $event->getFormId()); | |
$this->sendAcceptedEmailToNationalCenter($event->getFormId()); | |
} | |
<?php | |
class Document | |
{ | |
public $id; | |
public $title; | |
public $created; | |
public $author; | |
public $content; | |
} |