Skip to content

Instantly share code, notes, and snippets.


Vijaya Chandran Mani vijaycs85

View GitHub Profile
jibran /
Last active Jan 2, 2020
Steps to update Drupal core dependencies
git clone --branch 8.6.x
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
domenic /
Last active Feb 23, 2022
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with GitHub Actions

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.
View gist:59fa62a36175e64d8383
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\$(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'
View gist:85e02f6c2f96d38f6c0a

(3)DS is the best system EVER! I love it soooo much. Here are some of my favourite games and why.

Note: Check out and 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
tsphethean /
Last active Aug 29, 2015
Proxy switchy script
if [[ -z "$1" ]]; then
echo "Usage: en dis"
exit 2;
if [[ "$1" == "en" ]]; then
export http_proxy=http://$2
pwc3 / Exchange Sync.applescript
Last active Nov 13, 2021
AppleScript to copy all of the events from an Exchange calendar to an iCloud calendar.
View Exchange Sync.applescript
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
piscisaureus /
Created Aug 13, 2012
Checkout github pull requests locally

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 =

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:


#HTML presentation tools

There are many HTML presentation tools and they are all created for slightly different reasons. Here's an overview. Please let me know if I forgot any.


CSS-based SlideShow System