create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
| # Given an array of arrays s = [ [1,2,3], [4,5,6], ... ] | |
| # compute the Cartesian product among the elements of s. | |
| require 'pp' | |
| s = [[1, 2], [3, 4, 5], [6, 7, 8, 9]] | |
| pp s[1..-1].inject(s[0]){ |m,v| m = m.product(v).map(&:flatten) } | |
| [[1, 3, 6], | |
| [1, 3, 7], | |
| [1, 3, 8], |
| # Redis Cheatsheet | |
| # All the commands you need to know | |
| redis-server /path/redis.conf # start redis with the related configuration file | |
| redis-cli # opens a redis prompt | |
| # Strings. |
| # Add `~/bin` to the `$PATH` | |
| export BUN_INSTALL="$HOME/.bun"; | |
| export PATH="$HOME/bin:$BUN_INSTALL/bin:$PATH:$HOME/go/bin"; | |
| # Set PATH, MANPATH, etc., for Homebrew. | |
| eval "$(/opt/homebrew/bin/brew shellenv)"; | |
| # Load the shell dotfiles, and then some: | |
| # * ~/.path can be used to extend `$PATH`. | |
| # * ~/.extra can be used for other settings you don’t want to commit. |
| // 28 June 2017 | |
| // Quick-and-dirty implementation. | |
| // 30 Sept 2021 | |
| // Changes prompted by @nativekar: | |
| // - Allow pathName param to be either Array or string. | |
| // - Support "value[property]" notation. | |
| // House-cleaning: | |
| // - Move the inline mocha suite to own file, replace with inline test closure. |
Hey everyone - this is not just a one off thing, there are likely to be many other modules in your dependency trees that are now a burden to their authors. I didn't create this code for altruistic motivations, I created it for fun. I was learning, and learning is fun. I gave it away because it was easy to do so, and because sharing helps learning too. I think most of the small modules on npm were created for reasons like this. However, that was a long time ago. I've since moved on from this module and moved on from that thing too and in the process of moving on from that as well. I've written way better modules than this, the internet just hasn't fully caught up.
@broros
otherwise why would he hand over a popular package to a stranger?
If it's not fun anymore, you get literally nothing from maintaining a popular package.
One time, I was working as a dishwasher in a restu
| CREATE FUNCTION JSON_UNIQ(arr JSON) RETURNS json | |
| BEGIN | |
| SET @arr = arr; | |
| SET @a_length = JSON_LENGTH(@arr); | |
| SET @loop_index = @a_length; | |
| WHILE @loop_index >= 0 DO | |
| SET @item = JSON_UNQUOTE(JSON_EXTRACT(@arr, concat('$[',@loop_index,']'))); |