Last update: 30-01-2024
Last view: 25-11-2025
Go to your work folder, mine is located at:
F:/Work/EnterpriseName/
And then create a .gitconfig-work with the following data:
| # ~/.config/starship.toml | |
| add_newline = true | |
| continuation_prompt = "[▸▹ ](dimmed white)" | |
| format = """[┌──\\(](bold green)$username[㉿](bold green)$hostname[\\)-\\[](bold green)$time[\\]-\\[](bold green)$directory[\\]](bold green)\ | |
| (\n[│](green)( $python) |( $git_branch$git_commit$git_state)) | |
| [└](bold green)$cmd_duration[─](bold green)[\\$ ](bold blue)""" | |
| right_format = '''$battery''' |
| #!/bin/bash | |
| set -u | |
| set -x # Print commands and their arguments as they are executed. | |
| # find path to liblzma used by sshd | |
| path="$(ldd $(which sshd) | grep liblzma | grep -o '/[^ ]*')" || echo "liblzma not found for sshd" | |
| # If the path is empty, the script will now continue instead of exiting due to set -e being removed. | |
| if [ "$path" == "" ] |
| cy.visit('/404') | |
| //=> Test fails | |
| cy.visit('/404', {failOnStatusCode: false}) | |
| //=> Test passes but does not test the HTTP code was 404 | |
| cy.request({url: '/404', failOnStatusCode: false}).its('status').should('equal', 404) | |
| cy.visit('/404', {failOnStatusCode: false}) | |
| //=> Test passes, tests that the HTTP code was 404, and tests page was visited |
| import React, { useEffect, useRef } from 'react'; | |
| /** | |
| * Use setInterval with Hooks in a declarative way. | |
| * | |
| * @see https://stackoverflow.com/a/59274004/3723993 | |
| * @see https://overreacted.io/making-setinterval-declarative-with-react-hooks/ | |
| */ | |
| export function useInterval( | |
| callback: React.EffectCallback, |
| # Install Postgresql 9.6 | |
| sudo yum install -y postgresql-server postgresql-contrib java-1.8.0-openjdk java-1.8.0-openjdk-devel tomcat | |
| sudo postgresql-setup initdb | |
| # Permite a autenticação com senha no Postgres | |
| echo "Habilitando a autenticação com senha no PostgreSQL" | |
| sudo sed -i -e 's/ident$/md5/g' /var/lib/pgsql/data/pg_hba.conf | |
| # Habilita e inicia serviço do PosgreSQL |
There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket
You may use the same computer for work and personal development and need to separate your work.
When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.
You may have different projects you're working on where you would like to segregate your access.
コンテキスト: https://togetter.com/li/1331865
グーグルジャパンではなくてUSの本社での採用の話。私が受けたのはSoftware EngineerではなくてDeveloper Advocate。Engineering組織の下についているのでコーディング面接有り。ただし評価項目がSWEとは異なる。
I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.
But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.
Svelte is a language.
Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?
A few projects that have answered this question: