100 karma · joined Apr 7, 2018 (8y ago) · 43 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
I wish GitLab/GitHub would provide a way to do this by default, though.
comment 1y ago · link · parent
mise supports an experimental bootstrapping feature: it can download itself and install the tools required for the project.
See https://mise.jdx.dev/cli/generate/bootstrap.html and https://mise.jdx.dev/continuous-integration.html#bootstrappi...
comment 1y ago · link · parent
comment 1y ago · link · parent
[tools]
uv = 'latest'
[tasks.python_uv_task]
run = """
#!/usr/bin/env -S uv run --script
# /// script
# dependencies = ["requests<3", "rich"]
# ///
import requests
# your code here
"""comment 1y ago · link · parent
It's better at managing tools than `asdf`, very close to `direnv` and superior to `make` as a task runner (more verbose but much easier to understand). One of the advantages is that `mise` tasks can be standalone files (you can even write file tasks in python if you prefer, see https://mise.jdx.dev/tasks/file-tasks.html)
comment 1y ago · link · parent
comment 1y ago · link · parent
IMO, mise tasks are much better than `just`. A few things that make mise superior:
— solid environment variables support
— can run tasks in parallel, has a watch task feature, support for skipping tasks,…
— mise supports file tasks (i.e., running shell scripts, as many comments are suggesting here - https://mise.jdx.dev/tasks/file-tasks.html)
— mise tasks are defined using `toml`, and not a custom syntax
comment 2y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
docker run --add-host=host.docker.internal:host-gateway --publish 7080:7080 --publish 127.0.0.1:3370:3370 --rm --volume ~/.sourcegraph/config:/etc/sourcegraph --volume ~/.sourcegraph/data:/var/opt/sourcegraph sourcegraph/server:5.1.2
docker run --rm=true --publish 3434:3434 --volume $PWD:/data/repos:ro sourcegraph/src-cli:latest serve-git /data/reposcomment 3y ago · link · parent
The security model works well for this use case also. If your shell script is only supposed to read a few environment variables and not make network calls, you are covered.
comment 4y ago · link · parent
[1] See this highly voted issue: https://youtrack.jetbrains.com/issue/IDEA-186988 (opened since more than 3 years already)
18.
Auto Dark Theme in Chrome(developer.chrome.com ↗)
2 points · by hv42 · 5y ago · discuss
comment 5y ago · link · parent
comment 6y ago · link · parent
The caveat is that it does not work well if you are composing the SQL queries from multiple small parts.
see https://www.jetbrains.com/help/idea/running-injected-sql-sta...
I suppose that other editors or IDE can do similar things.
comment 6y ago · link · parent
What's the process around adding new apps? Would one be able to integrate easily?
I built Quest https://github.com/hverlin/Quest during the lockdown to search content across several apps (Gmail, Jira, Confluence...) as I could not find one that would allow me to do this.
comment 6y ago · link · parent
See this article for example: https://darekkay.com/blog/accessible-ui-frameworks/
Maybe it has improved now?
comment 6y ago · link · parent
Once you start relying on it a bit too much, it can hurt really badly if you are not able to fix issues by yourself, or if they decide to change the price later on. The worse is when a company that you were paying a software for goes out of business. You just have to start again.
comment 6y ago · link · parent
After watching that I would recommend https://github.com/getify/You-Dont-Know-JS and that should give one a solid base.
comment 6y ago · link · parent
Some features like named parameters or null checking might probably never make it to Java.
There is a nice talk about this that compares Kotlin to what will be in Java 19:
comment 6y ago · link · parent
Seems that using Google takeout is your best bet.
comment 7y ago · link · parent
I guess that makes it easy to get started with pandas (and learn about the pandas api). I wonder how some advanced transforms such as join/union/pivot will look like?
comment 7y ago · link · parent
One basic feature that is missing for e.g. is that one cannot open a file using the syntax filename:line:column in the source editor. You will need to navigate the line number manually after opening the file.