From 1a4b903a0cca9c848eac2dcb561aa4eab5f8dd2c Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 24 Sep 2017 02:07:48 +0800 Subject: [PATCH 01/27] Add cname --- CNAME | 1 + 1 file changed, 1 insertion(+) create mode 100644 CNAME diff --git a/CNAME b/CNAME new file mode 100644 index 000000000..9979c5ea6 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +devhints.io From 09abd791b1caa70c5de6f010e15a73965d8bd193 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 24 Sep 2017 02:08:21 +0800 Subject: [PATCH 02/27] Update URL --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index 73e1bda33..d818893f6 100644 --- a/_config.yml +++ b/_config.yml @@ -50,7 +50,7 @@ defaults: # Site info -url: http://ricostacruz.com/cheatsheets +url: https://devhints.io title: Cheatsheets # GitHub metadata From 4509d48bde38e31d9cfb008ddb84f8c24ae98157 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 24 Sep 2017 02:23:02 +0800 Subject: [PATCH 03/27] Disallow everything except the new test page --- robots.txt | 334 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 334 insertions(+) create mode 100644 robots.txt diff --git a/robots.txt b/robots.txt new file mode 100644 index 000000000..624406e8a --- /dev/null +++ b/robots.txt @@ -0,0 +1,334 @@ +User-agent: * +Disallow: /101 +Disallow: /activeadmin +Disallow: /analytics +Disallow: /angularjs +Disallow: /animated_gif +Disallow: /ansi +Disallow: /ansible-examples +Disallow: /ansible-guide +Disallow: /ansible-modules +Disallow: /ansible-roles +Disallow: /ansible +Disallow: /appcache +Disallow: /applescript +Disallow: /applinks +Disallow: /arel +Disallow: /atom +Disallow: /awesome-redux +Disallow: /awscli +Disallow: /backbone +Disallow: /badges +Disallow: /bash +Disallow: /blessed +Disallow: /bluebird +Disallow: /bookshelf-contrib +Disallow: /bookshelf +Disallow: /bootstrap +Disallow: /browser-sync +Disallow: /browserify +Disallow: /brunch +Disallow: /bundler +Disallow: /c_preprocessor +Disallow: /camp +Disallow: /canvas +Disallow: /capybara +Disallow: /cask-index +Disallow: /chai +Disallow: /cheatsheet-styles +Disallow: /chef +Disallow: /chunky_png +Disallow: /cidr +Disallow: /circle +Disallow: /co +Disallow: /command_line +Disallow: /commander-js +Disallow: /commander.js +Disallow: /cordova +Disallow: /cron +Disallow: /crypto +Disallow: /css-animation +Disallow: /css-antialias +Disallow: /css-background +Disallow: /css-flexbox +Disallow: /css-font +Disallow: /css-selectors +Disallow: /css-system-font-stack +Disallow: /css-tricks +Disallow: /css +Disallow: /cssnext +Disallow: /curl +Disallow: /date +Disallow: /datetime +Disallow: /deis +Disallow: /deku +Disallow: /deku@1 +Disallow: /deprecated/bower-api +Disallow: /devise +Disallow: /divshot +Disallow: /do +Disallow: /docker-compose +Disallow: /docker +Disallow: /dockerfile +Disallow: /dom-range +Disallow: /dom-selection +Disallow: /ec2 +Disallow: /editorconfig +Disallow: /elixir-metaprogramming +Disallow: /elixir +Disallow: /emacs +Disallow: /ember +Disallow: /enzyme +Disallow: /es2015 +Disallow: /es2016 +Disallow: /es2017 +Disallow: /es6 +Disallow: /ets +Disallow: /expect.js +Disallow: /expectjs +Disallow: /express +Disallow: /extras/ios +Disallow: /exunit +Disallow: /factory_girl +Disallow: /fastify +Disallow: /ffaker +Disallow: /ffmpeg +Disallow: /find +Disallow: /firebase +Disallow: /firefox +Disallow: /fish-shell +Disallow: /fitness/general +Disallow: /fitness/micronutrients +Disallow: /fitness/phat +Disallow: /flashlight +Disallow: /flow +Disallow: /flowtype +Disallow: /flux +Disallow: /flynn +Disallow: /freenode +Disallow: /frequency-separation-retouching +Disallow: /gh-pages +Disallow: /git-branch +Disallow: /git-extras +Disallow: /git-log-format +Disallow: /git-log +Disallow: /git-revisions +Disallow: /git-tricks +Disallow: /gmail +Disallow: /go +Disallow: /google-webfonts +Disallow: /google_analytics +Disallow: /graphql +Disallow: /gremlins +Disallow: /gulp +Disallow: /handlebars-js +Disallow: /handlebars.js +Disallow: /harvey-js +Disallow: /harvey.js +Disallow: /heroku +Disallow: /hledger +Disallow: /homebrew +Disallow: /html-email +Disallow: /html-input +Disallow: /html-meta +Disallow: /html-microformats +Disallow: /html-share +Disallow: /html +Disallow: /httpie +Disallow: /ie +Disallow: /ie_bugs +Disallow: /imagemagick +Disallow: /immutable-js +Disallow: /immutable.js +Disallow: /index +Disallow: /index@2016 +Disallow: /inkscape +Disallow: /inline-docs +Disallow: /ios-provision +Disallow: /jade +Disallow: /jasmine +Disallow: /javascript-workers +Disallow: /jekyll-github +Disallow: /jekyll +Disallow: /jest +Disallow: /jquery-cdn +Disallow: /jquery +Disallow: /js-appcache +Disallow: /js-array +Disallow: /js-date +Disallow: /js-fetch +Disallow: /js-lazy +Disallow: /js-model +Disallow: /js-speech +Disallow: /jscoverage +Disallow: /jsdoc +Disallow: /jshint +Disallow: /knex +Disallow: /koa +Disallow: /kramdown +Disallow: /layout-thrashing +Disallow: /ledger-csv +Disallow: /ledger-examples +Disallow: /ledger-format +Disallow: /ledger-periods +Disallow: /ledger-query +Disallow: /ledger +Disallow: /less +Disallow: /licenses +Disallow: /linux +Disallow: /lodash +Disallow: /lua +Disallow: /machinist +Disallow: /make-assets +Disallow: /makefile +Disallow: /man +Disallow: /markdown +Disallow: /meow +Disallow: /meta-tags +Disallow: /metalsmith +Disallow: /middleman +Disallow: /minimist +Disallow: /minitest +Disallow: /mobx +Disallow: /mocha-blanket +Disallow: /mocha-html +Disallow: /mocha-tdd +Disallow: /mocha +Disallow: /modella +Disallow: /modernizr +Disallow: /moment +Disallow: /mongodb +Disallow: /ncftp +Disallow: /nock +Disallow: /nodejs-assert +Disallow: /nodejs-fs +Disallow: /nodejs-path +Disallow: /nodejs-process +Disallow: /nodejs-stream +Disallow: /nodejs +Disallow: /nopt +Disallow: /npm +Disallow: /osx +Disallow: /package.json +Disallow: /package +Disallow: /parsimmon +Disallow: /parsley +Disallow: /pass +Disallow: /passenger +Disallow: /perl-pie +Disallow: /phoenix-conn +Disallow: /phoenix-ecto +Disallow: /phoenix-ecto@1.2 +Disallow: /phoenix-ecto@1.3 +Disallow: /phoenix-migrations +Disallow: /phoenix-routing +Disallow: /phoenix +Disallow: /phoenix@1.2 +Disallow: /plantuml +Disallow: /postgresql-json +Disallow: /postgresql +Disallow: /premailer +Disallow: /projectionist +Disallow: /promise +Disallow: /pry +Disallow: /psdrb +Disallow: /pug +Disallow: /python +Disallow: /qjs +Disallow: /qunit +Disallow: /rack-test +Disallow: /rails-controllers +Disallow: /rails-features +Disallow: /rails-forms +Disallow: /rails-gems +Disallow: /rails-helpers +Disallow: /rails-i18n +Disallow: /rails-migrations +Disallow: /rails-models +Disallow: /rails-plugins +Disallow: /rails-routes +Disallow: /rails-tricks +Disallow: /rails +Disallow: /rake +Disallow: /rdoc +Disallow: /react-router +Disallow: /react +Disallow: /react@0.14 +Disallow: /redux +Disallow: /regexp +Disallow: /rename +Disallow: /resolutions +Disallow: /rest-api +Disallow: /riot +Disallow: /ronn +Disallow: /rspec-rails +Disallow: /rspec +Disallow: /rst +Disallow: /rsync +Disallow: /rtorrent +Disallow: /rubiks +Disallow: /ruby +Disallow: /ruby21 +Disallow: /rubygems +Disallow: /sass +Disallow: /saucelabs +Disallow: /sed +Disallow: /semver +Disallow: /sequel +Disallow: /sequelize +Disallow: /sh-pipes +Disallow: /sh +Disallow: /shelljs +Disallow: /siege +Disallow: /simple_form +Disallow: /sinon-chai +Disallow: /sinon +Disallow: /sketch +Disallow: /slim +Disallow: /social-images +Disallow: /spine +Disallow: /spreadsheet +Disallow: /sql-join +Disallow: /stylus +Disallow: /sublime-text +Disallow: /superagent +Disallow: /tabular +Disallow: /tape +Disallow: /textile +Disallow: /tig +Disallow: /tmux +Disallow: /tomdoc +Disallow: /travis-gh-pages +Disallow: /travis +Disallow: /typescript +Disallow: /ubuntu +Disallow: /umdjs +Disallow: /underscore-string +Disallow: /unicode +Disallow: /vagrant +Disallow: /vagrantfile +Disallow: /vainglory +Disallow: /vim-digraphs +Disallow: /vim-easyalign +Disallow: /vim-help +Disallow: /vim-rails +Disallow: /vim-unite +Disallow: /vim +Disallow: /vimscript-functions +Disallow: /vimscript-snippets +Disallow: /vimscript +Disallow: /virtual-dom +Disallow: /vows +Disallow: /vue +Disallow: /watchman +Disallow: /webpack +Disallow: /weechat +Disallow: /weinre +Disallow: /wip/absinthe +Disallow: /xpath +Disallow: /yaml +Disallow: /yargs +Disallow: /yarn +Disallow: /znc +Disallow: /zombie +Disallow: /zsh From b5280175f06a53961309032f65f320baa8b95dcb Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 24 Sep 2017 02:29:12 +0800 Subject: [PATCH 04/27] Update Google Analytics --- _data/google_analytics.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_data/google_analytics.yml b/_data/google_analytics.yml index f4a85f409..b8f12bb39 100644 --- a/_data/google_analytics.yml +++ b/_data/google_analytics.yml @@ -1,3 +1,3 @@ enabled: true -hostname: ricostacruz.com -id: "UA-20473929-1" +hostname: devhints.io +id: "UA-106902774-1" From 8de768dfb08a3793222da6ba76a10abc59f2d30b Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 24 Sep 2017 02:33:02 +0800 Subject: [PATCH 05/27] Use new Google Analytics gtag.js --- _includes/meta.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/_includes/meta.html b/_includes/meta.html index e7b533069..a43e67d05 100644 --- a/_includes/meta.html +++ b/_includes/meta.html @@ -102,7 +102,14 @@ {% endif %} {%comment%}{%endcomment%} -{% if site.data.google_analytics.enabled %}{% endif %} +{% if site.data.google_analytics.enabled %} + + +{% endif %} From d9e72aa9774f85653c6bd7d9e7254a8d6d491fdf Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 24 Sep 2017 02:36:45 +0800 Subject: [PATCH 06/27] Remove drafts --- {_drafts => _inactive}/ansible.md | 0 {_drafts => _inactive}/deprecated/PHP_Kohana.ctxt | 0 {_drafts => _inactive}/deprecated/Rails_2.ctxt | 0 {_drafts => _inactive}/deprecated/cinema4d.md | 0 {_drafts => _inactive}/deprecated/compass-sprites.md | 0 {_drafts => _inactive}/deprecated/docker-osx.md | 0 {_drafts => _inactive}/deprecated/eslint.md | 0 {_drafts => _inactive}/deprecated/github.md | 0 {_drafts => _inactive}/deprecated/jquery-mobile-events.md | 0 {_drafts => _inactive}/gh.md | 0 {_misc => _inactive}/git-one-liners.md | 0 {_drafts => _inactive}/gpg.md | 0 {_drafts => _inactive}/homebrew-formula.md | 0 {extras => _inactive}/ios.md | 0 14 files changed, 0 insertions(+), 0 deletions(-) rename {_drafts => _inactive}/ansible.md (100%) rename {_drafts => _inactive}/deprecated/PHP_Kohana.ctxt (100%) rename {_drafts => _inactive}/deprecated/Rails_2.ctxt (100%) rename {_drafts => _inactive}/deprecated/cinema4d.md (100%) rename {_drafts => _inactive}/deprecated/compass-sprites.md (100%) rename {_drafts => _inactive}/deprecated/docker-osx.md (100%) rename {_drafts => _inactive}/deprecated/eslint.md (100%) rename {_drafts => _inactive}/deprecated/github.md (100%) rename {_drafts => _inactive}/deprecated/jquery-mobile-events.md (100%) rename {_drafts => _inactive}/gh.md (100%) rename {_misc => _inactive}/git-one-liners.md (100%) rename {_drafts => _inactive}/gpg.md (100%) rename {_drafts => _inactive}/homebrew-formula.md (100%) rename {extras => _inactive}/ios.md (100%) diff --git a/_drafts/ansible.md b/_inactive/ansible.md similarity index 100% rename from _drafts/ansible.md rename to _inactive/ansible.md diff --git a/_drafts/deprecated/PHP_Kohana.ctxt b/_inactive/deprecated/PHP_Kohana.ctxt similarity index 100% rename from _drafts/deprecated/PHP_Kohana.ctxt rename to _inactive/deprecated/PHP_Kohana.ctxt diff --git a/_drafts/deprecated/Rails_2.ctxt b/_inactive/deprecated/Rails_2.ctxt similarity index 100% rename from _drafts/deprecated/Rails_2.ctxt rename to _inactive/deprecated/Rails_2.ctxt diff --git a/_drafts/deprecated/cinema4d.md b/_inactive/deprecated/cinema4d.md similarity index 100% rename from _drafts/deprecated/cinema4d.md rename to _inactive/deprecated/cinema4d.md diff --git a/_drafts/deprecated/compass-sprites.md b/_inactive/deprecated/compass-sprites.md similarity index 100% rename from _drafts/deprecated/compass-sprites.md rename to _inactive/deprecated/compass-sprites.md diff --git a/_drafts/deprecated/docker-osx.md b/_inactive/deprecated/docker-osx.md similarity index 100% rename from _drafts/deprecated/docker-osx.md rename to _inactive/deprecated/docker-osx.md diff --git a/_drafts/deprecated/eslint.md b/_inactive/deprecated/eslint.md similarity index 100% rename from _drafts/deprecated/eslint.md rename to _inactive/deprecated/eslint.md diff --git a/_drafts/deprecated/github.md b/_inactive/deprecated/github.md similarity index 100% rename from _drafts/deprecated/github.md rename to _inactive/deprecated/github.md diff --git a/_drafts/deprecated/jquery-mobile-events.md b/_inactive/deprecated/jquery-mobile-events.md similarity index 100% rename from _drafts/deprecated/jquery-mobile-events.md rename to _inactive/deprecated/jquery-mobile-events.md diff --git a/_drafts/gh.md b/_inactive/gh.md similarity index 100% rename from _drafts/gh.md rename to _inactive/gh.md diff --git a/_misc/git-one-liners.md b/_inactive/git-one-liners.md similarity index 100% rename from _misc/git-one-liners.md rename to _inactive/git-one-liners.md diff --git a/_drafts/gpg.md b/_inactive/gpg.md similarity index 100% rename from _drafts/gpg.md rename to _inactive/gpg.md diff --git a/_drafts/homebrew-formula.md b/_inactive/homebrew-formula.md similarity index 100% rename from _drafts/homebrew-formula.md rename to _inactive/homebrew-formula.md diff --git a/extras/ios.md b/_inactive/ios.md similarity index 100% rename from extras/ios.md rename to _inactive/ios.md From 44911fe847897ba48db75c69de257827dbcf69b4 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 24 Sep 2017 03:01:32 +0800 Subject: [PATCH 07/27] Update search box --- _includes/2017/search-form.html | 2 -- _sass/2017/components/search-box.scss | 20 ++++++++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/_includes/2017/search-form.html b/_includes/2017/search-form.html index f3f705842..acc46d274 100644 --- a/_includes/2017/search-form.html +++ b/_includes/2017/search-form.html @@ -2,10 +2,8 @@ {% if include.live %}data-js-search-form{% endif %} class='search' action='{{ base }}' method='get'>