Placeholder for assets
git clone --branch 8.6.x https://git.drupal.org/project/drupal.git | |
cd drupal | |
composer config platform.php 5.5.9 | |
composer install | |
composer outdated -D | |
// Choose the packages to update. Let's say we want to update symfony packages. | |
composer update symfony/* | |
composer config --unset platform | |
composer update --lock | |
git add composer.lock |
This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.
A file below this one contains the steps for doing this with Travis CI. However, these days I recommend GitHub Actions, for the following reasons:
- It is much easier and requires less steps, because you are already authenticated with GitHub, so you don't need to share secret keys across services like you do when coordinate Travis CI and GitHub.
- It is free, with no quotas.
- Anecdotally, builds are much faster with GitHub Actions than with Travis CI, especially in terms of time spent waiting for a builder.
<?php | |
use Drupal\Core\Config\Schema\SchemaCheckTrait; | |
/** | |
* Implements hook_drush_command(). | |
*/ | |
function ef_drush_command() { | |
$items['schema-validate'] = [ | |
'description' => dt('Validates all config schemaj'), | |
]; |
# in ~/.bashrc or ~/.bash_profile in OSX | |
# Jump to comment section of d.o issue, if local git branch = issue nid | |
alias issue='open /Applications/Google\ Chrome.app https://www.drupal.org/node/$(git symbolic-ref -q HEAD 2>/dev/null | sed '\''s/^refs\/heads\/\([0-9]*\).*/\1/'\'')#project-issue-ajax-form' | |
# Include/Exclude patch directory to PHPStorm to compare two patches. | |
alias patchl='ln -s /www/htdocs/patches/ /www/htdocs/drupal8/patches' | |
alias patchul='rm /www/htdocs/drupal8/patches' | |
(3)DS is the best system EVER! I love it soooo much. Here are some of my favourite games and why.
Note: Check out http://www.metacritic.com/browse/games/release-date/available/3ds/metascore and http://www.metacritic.com/browse/games/release-date/available/ds/metascore as well. You might have more variety in your game choices than I do, and there are lots of other games rated in the 80s+.
- The Legend of Zelda: A Link Between Worlds: This game is sooooo good. Totally reminds me of SNES-style Zelda, and unlike most of the O&@#ing Zelda games on 3DS / DS, this one is an original game and not a remake.
- Various DS Castlevania games (not the 3DS one! That one SUCKS!): Horror / exploration. You're in an enormous castle and need to find your way around, but certain paths are blocked off to you until you beat bosses and then obtain a new power like, say, the ability to slide into narrow passages. If you ever played Super Metroid or Super Castlevania on SNES, that's
#!/bin/sh | |
if [[ -z "$1" ]]; then | |
echo "Usage: proxy_switch.sh en 1.1.1.1:8080. | |
proxy_switch.sh dis" | |
exit 2; | |
fi | |
if [[ "$1" == "en" ]]; then | |
export http_proxy=http://$2 |
tell application "Calendar" | |
-- delete everything from the destination calendar | |
-- TODO: Change "Destination Calendar" to be the name of your destination calendar | |
repeat with anEvent in (get events of calendar "Destination Calendar") | |
delete anEvent | |
end repeat | |
-- copy all events from the source calendar to the destination | |
-- TODO: Change "Source Calendar" to be the name of your source calendar | |
-- TODO: Change "Destination Calendar" to be the name of your destination calendar |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: