Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 95
  1. Voyager keyboard: unibody mount

    Voyager is a nice compact split keyboard and it has a variety of mounting options thanks to the magnetic case and the extra magnetic mounting kit that ZSA also makes.

  2. MacBook - Remote Access from iPad

    There are a few solutions to have remote access from iPad to MacBook: Chrome remote desktop Teamviewer Jump desktop SSH, Mac screen sharing app Some other options I’ll start with the simplest - Teamviewer and Jump Desktop.

  3. MacBook - How to keep it on with lid closed, clamshell mode

    I am testing the remote desktop to access MacBook and it is inconvenient that MacBook needs to stay with the lid open.

  4. git - how to rebase over a rebased branch, stacked branches

    It is often useful to split a large change into several smaller branches and create smaller PRs which are easier to understand and review.

  5. Vue CLI Service Build Out of Memory Error

    Solving the Vue app build out-of-memory error If you encounter an out-of-memory error during the frontend build, you can increase the memory limit for the node process by setting the NODE_OPTIONS environment variable: export NODE_OPTIONS=--max_old_space_s…

  6. Profile Vue CLI Service Build (actually webpack build)

    How to Profile Vue CLI Service Build (webpack build) The vue cli build is managed by the build command of the @vue/cli-service package.

  7. Tmux: how to run the same command in multiple panes

    Why run the same command in multiple tmux panes?

  8. Touch Typing: Spacebar and Thumbs

    Traditional keyboards have a large spacebar that is available for both thumbs.

  9. Testing FastAPI CORS settings

    Testing FastAPI CORS Settings This is an example of testing FastAPI app CORS settings to see how allow_origins (the Access-Control-Allow-Origin) and allow_credentials (the Access-Control-Allow-Credentials header) parameters work practically.

  10. Google Colab notebook - input and output, OpenAI TTS API

    Running OpenAI TTS API in Google Colab The example below runs OpenAI TTS API in a Google Colab notebook.

  11. Elastic Beanstalk - how to configure access to the external RDS database

    I used to configure ElasticBeanstalk access to the external RDS database by editing inbound rules for the security group attached to the database.

  12. node - localhost connection error ECONNREFUSED ::1:4723 in node 17 and node 18

    The upgrade to node 18 broke some things on CI that looked strange at first: The npx wait-on checks started showing connection errors.

  13. bash - how to run command in a loop until it fails

    I want to debug a flaky test and run it multiple times until the test runner returns non-zero code.

  14. docker - check image size and see what takes space

    There are three useful tools to check the Docker image size and see what takes space: docker image ls - show images and sizes docker image history image:tag - show image layers and size for each layer dive - a tool to inspect the image and see what each l…

  15. How to inspect extension `chrome.storage` in Chrome DevTools

    The extension storage is not displayed under the “Application” tab in Chrome DevTools, but it is possible to access it via the javascript console: Open some web page, open Chrome DevTools In the javascript console, select the extension context (the drop-d…

  16. How to format large JSON file in command line

    There are several tools that can be used to format a large JSON file.

  17. git - use kdiff3 as a diff/merge tool

    To use kdiff3 as your diff tool and merge tool in git, run the following commands: git config --global mergetool.kdiff3.cmd 'kdiff3 "$BASE" "$LOCAL" "$REMOTE" -o "$MERGED"' git config --global merge.tool kdiff3 git config --global difftool.kdiff3.cmd 'kdi…

  18. git - update commit message

    Simple: Change Last Commit Message To change the last commit message, use commit with --amend flag: Careful: `commit --amend` will rewrite history, do not use on public branches. $ git commit --amend It will open an editor and change the commit message, c…

  19. git - show number of commits by author

    The shortlog -ns will show the number of commits by author: git shortlog -ns 280 Author One 46 Author Two 25 authorthree 14 au 4 x 3 Autor One 1 ide user x

  20. git - how to move files with history to another repository

    Git allows joining unrelated repositories via remotes which, in turn, allows moving files and change history between them.

  21. git - cherry-pick a range of commits

    To cherry pick a range of commits to another branch, we can use the START^..END commit range syntax, where START is the first commit in the range and END is the last commit: git cherry-pick START^..END References How to cherry-pick a range of commits and…

  22. Mitosis Keyboard First Impressions

    Mitosis Keyboard First Impressions I’ve received my Mitosis a few days ago and I like it a lot so far: The size: perfect for the 36 keys layout I use The shape: very comfortable, lowered outer columns feel great for pinkies I wish the inner column, for the

  23. Oculus Quest for Work: First Impressions

    After reading this, this and this and this, I’ve got Oculus Quest wanting to try it for work.

  24. Vue.js Cli: How to Use Multiple vue.config.js Configs

    It can be useful to have more than one configuration file, for example, to build several code bundles.

  25. Touch Typing Tutors and Games

    A collection of links to touch typing tutors and games.

  26. AWS Config - Unexpected Charges and Data Analysis

    I started seeing an increased charge in billing for AWS Config service in one of the accounts, it increased from around $5 to $100 per month.

  27. Multi-Origin CloudFront Setup to Route Requests to Services Based on Request Path

    AWS CloudFront allows to have multiple origins for the distribution and, along with lambda@edge functions, that makes it possible to use CloudFront as an entry point to route the requests to different services based on the request path.

  28. Git Hook to Add Issue Number to Commit Message

    When using project management system (Jira, Redmine, Github issues, etc) it is useful to add the issue number into the commit message that makes it easier to understand which issue the commit belongs to and often allows the project management system to di…

  29. Managing NPM packages on github

    Sometimes it is simpler to keep the package on github, for example, if you have a fork of a published package with some private changes.

  30. Recording Linux Terminal Session to GIF with asciinema

    The asciinema is a good and simple to use tool to record a screencast from the terminal session.

  31. Debugging Python with ipdb and pdbpp

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

  32. Formatting Parameter Blocks in Python

    There are two ways recommended in pep-8 to format the blocks with long parameter lists in Python: # Arguments start on the next line foo = long_function_name( var_one, var_two, var_three, var_four) Another way is: # Arguments start on the same line foo =…

  33. There Is No Callback Hell In JavaScript

    There is no “callback hell” in Javascript, it is just a bad programming style.

  34. Disqus - code formatting and highlighting in comments

    It is possible to format and have syntax highlighting for code in Disqus comments.

  35. SSH Tunnels (How to Access AWS RDS Locally Without Exposing it to Internet)

    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.

  36. AWS error - Default subnet in us-east-1f not found

    I suddenly started getting the Default subnet in us-east-1f not found error during the ElasticBeanstalk environment update.

  37. Simple Git Workflow

    The main purpose of this workflow is to have a reliable, but simple to use git workflow.

  38. The purpose of this setup is: Setup multiple web apps with different dependencies on the same server Link all apps to the same MySQL server Manage uploaded files for web apps in the single place (so it is easy to backup them) Automatically deploy and upda…

  39. OOP SOLID Principles "L" - Liskov Substitution Principle

    According to the Wikipedia the Liskov Substitution Principle (LSP) is defined as: Subtype Requirement: Let f(x) be a property provable about objects x of type T.

  40. AWS PostgreSQL RDS - remaining connection slots are reserved error

    Today I had a problem with PostgreSQL connection, both my application and psql tool returned an error: FATAL: remaining connection slots are reserved for non-replication superuser connections The PostgreSQL server was running on the db.t1.micro RDS instan…

  41. How to set up Drone CI on EC2 instance via Elastic Beanstalk

    Drone CI is a Continuous Integration platform.

  42. Elastic Beanstalk - how to set up CloudWatch Logs

    CloudWatch Logs is an AWS service to collect and monitor system and application logs.

  43. CloudWatch Logs - how to log data from multiple instances to the single stream

    After using CloudWatch Logs for some time I found that it is very inconvenient to have one stream per instance.

  44. Elastic Beanstalk - python application server structure and celery installation

    Elastic beanstalk python application is deployed under /opt/python/.

  45. Local Amazon DynamoDB - tools, dump/restore and testing

    Setup Download and extract dynamodb local to some folder.

  46. Amazon DynamoDB - how to add global secondary index

    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).

  47. Amazon DynamoDB, EMR and Hive notes

    First you need the EMR cluster running and you should have ssh connection to the master instance like described in the getting started tutorial.

  48. AWS OpsWorks - setup mongodb ebs volume backups

    I described how to setup mongodb on EC2 using OpsWorks and here is how to setup mongo data backups.

  49. AWS - Deployment via OpsWorks from the command line

    Below is a simple python script which performs application deployment using OpsWorks API library (boto).

  50. Amazon OpsWorks - node.js app with MongoDB setup

    Amazon OpsWorks provides a way to manage AWS resources using Chef recipes.