Trick 2024

create test data by using sql

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
-- mysql
SET cte_max_recursion_depth = 4294967295;
INSERT INTO contacts (firstname,  lastname)
WITH RECURSIVE counter(n) AS(
  SELECT 1 AS n
  UNION ALL
  SELECT n + 1 FROM counter WHERE n < 100000
)
SELECT CONCAT('firstname-',  counter.n),  CONCAT('lastname-',  counter.n)
FROM counter

-- postgresql
INSERT INTO contacts (firstname,  lastname)
SELECT CONCAT('firstname-',  i),  CONCAT('lastname-',  i)
FROM generate_series(1,  100000) as i

close single window of terminal

  • (macos) CMD + w

how to install golang

1
2
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.23.4.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

vscode on android (remote)

TODO

references

Get Things Done
Built with Hugo
Theme Stack designed by Jimmy