Skip to content

Commit

Permalink
Add permalinks for posts.
Browse files Browse the repository at this point in the history
Hugo adds trailing slashes by default and I didn't find a way to remove it in some other way.
There is [permalinks] setting in config, which I changed to `posts = "/html/:slug.html"`,
but there is still a traling slash.

There is also an unmerged PR: gohugoio/hugo#3934
Sidenote: maintainer said he won't merge it because he doesn't need this feature and doesn't
want to spend time on review / merge / maintainance.
  • Loading branch information
serebrov committed Apr 11, 2020
1 parent b362c0a commit c391224
Show file tree
Hide file tree
Showing 55 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: git - checkout and track remote branch
date: 2012-02-01
tags: [git]
type: note
url: "/html/2012-01-24-jquery-check-version.html"
---


Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-02-13-git-branches-have-diverged.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Git - Your branch and 'origin/xxx' have diverged
date: 2012-02-13
tags: [git]
type: note
url: "/html/2012-02-10-git-checkout-and-track-remote-branch.html"
---

Git error (not after rebase, see below):
Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-02-28-git-default-color-diff.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: git - colored diff, branch, etc by default
date: 2012-02-28
tags: [git]
type: note
url: "/html/2012-02-13-git-branches-have-diverged.html"
---


Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-03-15-oauth-1-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: oauth 1.0 notes
date: 2012-03-15
tags: [oauth]
type: post
url: "/html/2012-02-28-git-default-color-diff.html"
---

<!-- more -->
Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-04-03-git-rename-branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: git - rename branch (local and remote)
date: 2012-04-03
tags: [git]
type: note
url: "/html/2012-03-15-oauth-1-0.html"
---


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: vim - replace a word with yanked text
date: 2012-04-03
tags: [jquery]
type: note
url: "/html/2012-04-03-git-rename-branch.html"
---

Copy a word and paste it over other words:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: git - use vim with fugitive to resolve merge conflicts
date: 2012-04-24
tags: [vim, git]
type: note
url: "/html/2012-04-03-vim-replace-word-with-yanked-text.html"
---


Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-06-15-android-mobile-network-problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Andriod - moblie network problem after BusyBox update
date: 2012-01-24
tags: [android]
type: post
url: "/html/2012-04-24-git-fugitive-to-resolve-conflicts.html"
---

I have LG p500 (Optimus One), rooted with original ROM.
Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-09-23-git-submodule-helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: git - submodule helpers
date: 2012-09-23
tags: [git]
type: note
url: "/html/2012-06-15-android-mobile-network-problem.html"
---

Below are some git commands which can be useful to resolve problems with submodules.
Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-09-30-git-all-branches-with-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: git - find all branches where file was changed
date: 2012-09-30
tags: [git]
type: note
url: "/html/2012-09-30-git-all-branches-with-file.html"
---

[Solution from stackoverflow](http://stackoverflow.com/questions/6258440/find-a-git-branch-containing-changes-to-a-given-file).
Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-09-30-git-branch-ahead-after-pull.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: git - Your branch is ahead of 'origin/master' by 1 commit after pull
date: 2012-09-30
tags: [git]
type: note
url: "/html/2012-09-30-git-branch-ahead-after-pull.html"
---

Your branch is ahead of 'origin/master' by 1 commit (or X commits) after `git pull origin master`.
Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-10-01-git-diff-and-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: git - view changes - diff and log
date: 2012-10-01
tags: [git]
type: note
url: "/html/2012-10-01-git-diff-and-log.html"
---

Diff staged changes
Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-10-01-git-find-not-merged-branches.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: git - find not merged branches
date: 2012-10-01
tags: [git]
type: note
url: "/html/2012-10-01-git-find-not-merged-branches.html"
---


Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-10-01-git-rm-deleted-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: git - git rm already deleted files
date: 2012-04-03
tags: [git]
type: note
url: "/html/2012-10-01-git-rm-deleted-files.html"
---


Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-12-09-google-chrome-window-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Window managers for Google Chrome
date: 2012-12-09
tags: [chrome]
type: note
url: "/html/2012-12-09-google-chrome-window-manager.html"
---

A list of extensions to manage position of chrome tabs / windows and to create splits.
Expand Down
1 change: 1 addition & 0 deletions content/posts/2012-12-17-unit-speed-mysql-to-mem.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Speedup unit tests by moving MySql data to memory [Ubuntu]
date: 2012-04-03
tags: [mysql]
type: note
url: "/html/2012-12-17-unit-speed-mysql-to-mem.html"
---

There are several ways to speedup slow unit tests which interact with database:
Expand Down
1 change: 1 addition & 0 deletions content/posts/2013-03-18-js-scalable-architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Want Scalable Application Architecture? Check AngularJS.
date: 2013-03-18
tags: [js, angularjs]
type: post
url: "/html/2013-03-18-js-scalable-architecture.html"
---

The [Scalable JavaScript Application Architecture](http://www.youtube.com/watch?v=mKouqShWI4o) is a presentation by [Nicholas Zakas](http://www.nczonline.net/) where he suggests a flexible and scalable architecture for JavaScript applications. Here are other related resources:
Expand Down
1 change: 1 addition & 0 deletions content/posts/2013-03-23-php-utf-8-strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: PHP - utf-8 strings handling
date: 2013-03-23
tags: [php]
type: note
url: "/html/2013-03-23-php-utf-8-strings.html"
---

Enable mbstring [function overloading mode](http://www.php.net/manual/en/mbstring.overload.php) and set default
Expand Down
1 change: 1 addition & 0 deletions content/posts/2013-05-24-angular-post-to-php.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Angular.js POST data to PHP
date: 2012-04-03
tags: [php, angularjs]
type: note
url: "/html/2013-05-24-angular-post-to-php.html"
---

By default angular.js sends all data in json.
Expand Down
1 change: 1 addition & 0 deletions content/posts/2013-05-24-angular-seo.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Angular.js and SEO - pre-render content on the server
date: 2013-05-24
tags: [angularjs]
type: post
url: "/html/2013-05-24-angular-seo.html"
---

With angular.js you have an HTML which looks like this:
Expand Down
1 change: 1 addition & 0 deletions content/posts/2013-06-11-amazon-nosql-review.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Amazon NoSQL Solutions
date: 2013-06-11
tags: [aws]
type: post
url: "/html/2013-06-11-amazon-nosql-review.html"
---

Amazon provides following [NoSQL](https://en.wikipedia.org/wiki/NoSQL) storage options:
Expand Down
1 change: 1 addition & 0 deletions content/posts/2013-06-14-git-server-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: How to setup git server on ubuntu with push email notifications
date: 2013-06-14
tags: [git]
type: note
url: "/html/2013-06-14-git-server-setup.html"
---

Git Server
Expand Down
1 change: 1 addition & 0 deletions content/posts/2013-06-14-js-libraries-for-charts.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: JS libraties for charts (links)
date: 2013-06-14
tags: [js]
type: note
url: "/html/2013-06-14-js-libraries-for-charts.html"
---

<!-- more -->
Expand Down
2 changes: 2 additions & 0 deletions content/posts/2013-09-11-elastic-beanstalk-configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Elastic Beanstalk - deploy from different machines / by different users (
date: 2013-09-11
tags: [aws]
type: note
url: "/html/2013-09-11-elastic-beanstalk-configs.html"
---

By default Elastic Beanstalk console tool (eb) adds config files to .gitignore.
Expand Down Expand Up @@ -163,3 +164,4 @@ For example, for 'eb status':
Status : Ready
Health : Green
```
url: "/html/
1 change: 1 addition & 0 deletions content/posts/2013-10-22-elastic-beanstalk-cron-and-db.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Elastic Beanstalk - cron command and RDS DB access
date: 2013-10-22
tags: [aws]
type: note
url: "/html/2013-10-22-elastic-beanstalk-cron-and-db.html"
---

Problem
Expand Down
1 change: 1 addition & 0 deletions content/posts/2013-12-02-node-core-module-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Node.js - how to get core module source
date: 2013-12-02
tags: [node.js]
type: note
url: "/html/2013-12-02-node-core-module-source.html"
---

It is possible to ask node to show its core module source.
Expand Down
1 change: 1 addition & 0 deletions content/posts/2013-12-02-node-debug-mocha.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Node.js - how to debug mocha test with node inspector
date: 2013-12-02
tags: [node.js]
type: note
url: "/html/2013-12-02-node-debug-mocha.html"
---

To debug mocha test with [node inspector](https://github.com/node-inspector/node-inspector) use the delay before test:
Expand Down
1 change: 1 addition & 0 deletions content/posts/2014-01-04-git-log-and-less-keep-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: How to keep git log and less output on the screen
date: 2014-01-04
tags: [git]
type: note
url: "/html/2014-01-04-git-log-and-less-keep-output.html"
---

When `git` uses `less` as pager the output of commands like `git log` disappears from the console
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Git - how to revert multiple recent commits
date: 2014-01-04
tags: [git]
type: note
url: "/html/2014-01-04-git-revert-multiple-recent-comments.html"
---

Let's assume we have a history like this:
Expand Down
1 change: 1 addition & 0 deletions content/posts/2014-12-19-aws-opsworks-mongo-and-nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Amazon OpsWorks - node.js app with MongoDB setup
date: 2014-12-19
tags: [aws]
type: note
url: "/html/2014-12-19-aws-opsworks-mongo-and-nodejs.html"
---

[Amazon OpsWorks](http://docs.aws.amazon.com/opsworks/latest/userguide/welcome.html) provides a way to manage AWS resources
Expand Down
1 change: 1 addition & 0 deletions content/posts/2014-12-30-aws-ebs-mongo-backups.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: AWS OpsWorks - setup mongodb ebs volume backups
date: 2014-12-30
tags: [aws, mongodb]
type: note
url: "/html/2014-12-30-aws-ebs-mongo-backups.html"
---

I described how to setup [mongodb on EC2 using OpsWroks](http://serebrov.github.io/html/2014-12-19-aws-opsworks-mongo-and-nodejs.html) and here is how to setup mongo data backups.
Expand Down
1 change: 1 addition & 0 deletions content/posts/2014-12-30-aws-opsworks-cmd-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: AWS - Deployment via OpsWorks from the command line
date: 2014-12-30
tags: [aws]
type: note
url: "/html/2014-12-30-aws-opsworks-cmd-deployment.html"
---

Below is a simple python script which performs application deployment using OpsWorks API library (boto).
Expand Down
1 change: 1 addition & 0 deletions content/posts/2015-01-24-aws-dynamodb-emr-hive.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Amazon DynamoDB, EMR and Hive notes
date: 2015-01-24
tags: [aws, dynamodb, emr, hive]
type: note
url: "/html/2015-01-24-aws-dynamodb-emr-hive.html"
---

First you need the EMR cluster running and you should have ssh connection to the master instance like described in the [getting started tutorial](http://docs.aws.amazon.com/ElasticMapReduce/latest/DeveloperGuide/emr-get-started.html).
Expand Down
1 change: 1 addition & 0 deletions content/posts/2015-01-25-aws-add-secondary-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Amazon DynamoDB - how to add global secondary index
date: 2015-01-25
tags: [aws, dynamodb, emr]
type: note
url: "/html/2015-01-25-aws-add-secondary-index.html"
---

Note: this post is outdated, because it is already possible to add a secondary index to the existing table (it was not possible in earlier DynamoDB versions).
Expand Down
1 change: 1 addition & 0 deletions content/posts/2015-02-01-dynamodb-local.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Local Amazon DynamoDB - tools, dump/restore and testing
date: 2015-01-25
tags: [aws, dynamodb]
type: note
url: "/html/2015-02-01-dynamodb-local.html"
---

### Setup
Expand Down
1 change: 1 addition & 0 deletions content/posts/2015-04-02-elastic-beanstalk-python.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Elastic Beanstalk - python application server structure and celery instal
date: 2015-04-02
tags: [aws, eb, python, celery, zeromq]
type: note
url: "/html/2015-04-02-elastic-beanstalk-python.html"
---

Elastic beanstalk python application is deployed under `/opt/python/`.
Expand Down
1 change: 1 addition & 0 deletions content/posts/2015-05-20-cloudwatch-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Elastic Beanstalk - how to setup CloudWatch Logs
date: 2015-05-20
tags: [aws, eb, cw-logs]
type: note
url: "/html/2015-05-20-cloudwatch-setup.html"
---

CloudWatch Logs is an AWS service to collect and monitor system and application logs.
Expand Down
1 change: 1 addition & 0 deletions content/posts/2015-06-17-cloudwatch-logs-single-stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: CloudWatch Logs - how to log data from multiple instances to the single s
date: 2015-05-20
tags: [aws, eb, cw-logs]
type: note
url: "/html/2015-06-17-cloudwatch-logs-single-stream.html"
---

[After using CloudWatch Logs for some time](/html/2015-05-20-cloudwatch-setup.html) I found that it is very inconvenient to have one stream per instance.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: How to set up Drone CI on EC2 instance via Elastic Beanstalk
date: 2015-07-05
tags: [aws, eb, drone]
type: note
url: "/html/2015-07-05-elastic-beanstalk-drone-ci-setup.html"
---

[Drone CI](https://github.com/drone/drone) is a Continuous Integration platform. It uses [Docker](https://www.docker.com/) containers to run tests for your application hosted on [github](http://github.com).
Expand Down
1 change: 1 addition & 0 deletions content/posts/2015-09-22-aws-postgresql-max-connections.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: AWS PostgreSQL RDS - remaining connection slots are reserved error
date: 2015-09-22
tags: [aws, rds, postgresql]
type: note
url: "/html/2015-09-22-aws-postgresql-max-connections.html"
---

Today I had a problem with PostgreSQL connection, both my application and psql tool returned an error:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: OOP SOLID Principles "L" - Liskov Substitution Principle
date: 2016-02-18
tags: [oop]
type: post
url: "/html/2016-02-18-oop-solid-l-liskov-substitution-principle.md"
---

According to the [Wikipedia](https://en.wikipedia.org/wiki/Liskov_substitution_principle) the Liskov Substitution Principle (LSP) is defined as:
Expand Down
1 change: 1 addition & 0 deletions content/posts/2016-06-10-scaleway-docker-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Setup Automatic Deployment, Updates and Backups of Multiple Web Applicati
date: 2016-06-10
tags: [docker, scaleway]
type: post
url: "/html/2016-06-10-scaleway-docker-deployment.html"
---

The purpose of this setup is:
Expand Down
1 change: 1 addition & 0 deletions content/posts/2016-07-03-simple-git-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Simple Git Workflow
date: 2016-07-03
tags: [git]
type: post
url: "/html/2016-07-03-simple-git-workflow.html"
---

The main purpose of this workflow is to have a reliable, but simple to use git workflow.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: AWS error - Default subnet in us-east-1f not found
date: 2017-06-29
tags: [aws]
type: note
url: "/html/2017-06-28-aws-default-subnet-in-us-east-1f-not-found.html"
---

I suddenly started getting the `Default subnet in us-east-1f not found` error during the ElasticBeanstalk environment update.
Expand Down
1 change: 1 addition & 0 deletions content/posts/2018-01-11-aws-ec2-ssh-tunnel.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: SSH Tunnels (How to Access AWS RDS Locally Without Exposing it to Interne
date: 2018-01-11
tags: [ssh, aws]
type: note
html: "/html/2018-01-11-aws-ec2-ssh-tunnel.html"
---

Using SSH tunnels, it is possible to access remote resources that are not exposed to the Internet through the intermediate hosts or expose your local services to the Internet.
Expand Down
1 change: 1 addition & 0 deletions content/posts/2018-01-19-disqus-code-in-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Disqus - code formatting and highlighting in comments
date: 2018-01-19
tags: [disqus]
type: note
html: "/html/2018-01-19-disqus-code-in-comments.html"
---

It is possible to format and have syntax highlighting for code in Disqus comments.
Expand Down
1 change: 1 addition & 0 deletions content/posts/2018-01-19-there-is-no-callback-hell.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: There Is No Callback Hell In JavaScript
date: 2018-01-19
tags: [js]
type: post
url: "/html/2018-01-19-there-is-no-callback-hell.html"
---

There is no "callback hell" in Javascript, it is just a bad programming style.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Formatting Parameter Blocks in Python
date: 2018-07-27
tags: [python]
type: post
url: "/html/2018-07-27-python-parameter-blocks-formatting.html"
---

There are two ways [recommended in pep-8](https://www.python.org/dev/peps/pep-0008/#indentation) to format the blocks with long parameter lists in Python:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Debugging Python With ipdb and pdbpp
date: 2018-11-28
tags: [python]
type: note
url: "/html/2018-11-28-python-debugging-with-ipdb-pdbpp.html"
---

To get a very convenient full-screen console debugger for python, install `ipdb` and `pdbpp` packages.
Expand Down
Loading

0 comments on commit c391224

Please sign in to comment.