Gist is a nice service. We can write code so easily and manage files as repository.
But bad points are …
- Many repository
- Gist destributes random hash to perticular gists (repositories).
- So difficult to find or remember contents as repository.
| class Stack | |
| class Node | |
| attr_accessor :next, :data | |
| def initialize data | |
| self.data = data | |
| self.next = nil | |
| end | |
| end | |
| attr_accessor :head, :tail, :length |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
Gist is a nice service. We can write code so easily and manage files as repository.
But bad points are …
| function debounce (fn, time) { | |
| let timeoutId | |
| return wrapper | |
| function wrapper (...args) { | |
| if (timeoutId) { | |
| clearTimeout(timeoutId) | |
| } | |
| timeoutId = setTimeout(() => { | |
| timeoutId = null |
| #!/bin/bash | |
| # Requirements | |
| # You will need to have created a GitHub Access Token with admin:public_key permissions | |
| # Usage | |
| # chmod +x autokey-github.sh | |
| # ./autokey-github.sh <YOUR-GITHUB-ACCESS-TOKEN> | |
| # Reference |
| CI & CD: | |
| ======== | |
| 2 core software development processes | |
| CI process of automating regular code commits followed by an automated build and test process designed to highlight intergration issues early. | |
| Additional tooling and functionality provided by Bamboo, CruiseControl, Jenkins, Go and TeamCity etc. | |
| workflow based | |
| CD takes the form of a workflow based process which accepts a tested software build payload from a CI server. Automates the deployment into a working QA, Pre-prod or Prod environment. | |
| AWS CodeDeploy and CodePipeline provide CI/CD services | |
| Elasticbeanstalk and CFN provide functionality which can be utilized by CI/CD servers. |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
| --- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md | |
| --- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192 | |
| -- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB. | |
| ------------ | |
| -- Basics -- | |
| ------------ | |
| -- Get indexes of tables |
| $ rbenv install 2.1.2 | |
| ruby-build: definition not found: 2.1.2 | |
| You can list all available versions with `rbenv install --list'. | |
| If the version you're looking for is not present, first try upgrading | |
| ruby-build. If it's still missing, open a request on the ruby-build | |
| issue tracker: https://github.com/sstephenson/ruby-build/issues | |
| (Fun fact: Recent versions of ruby-build will give you a more helpful error message which just tells you the following.) |