Better HN
topnewbestaskshowjobs
Log inSign up

aliencat

158 karma · joined Jun 16, 2015 (11y ago) · 72 submissions

Submissions

1.

Show HN: React Docs as Offline EBooks(dohsimpson.gumroad.com ↗)

1 points · by aliencat · 1y ago · discuss

comment 3y ago · link · parent

Sharing a tool that I wrote to convert docker-compose file to kubernetes deployment YAML: https://docker2kube.app.enting.org/

Hope it helps someone!

comment 3y ago · link · parent

video demo looks awesome, what tool do you use to make it?

4.

Show HN: Docker 2 Kubernetes(docker2kube.app.enting.org ↗)

9 points · by aliencat · 3y ago · 4 comments

5.

.

3 points · by aliencat · 3y ago · 2 comments

comment 3y ago · link · parent

Thanks! Best of luck! Looks like a solid product

comment 3y ago · link · parent

It seems that the 140x lower storage cost comes from: 1. S3 (OO) vs EBS (ES): about 5x 2. No indexing: About 10x ? 3. No data duplication (due to using S3 I assume) in HA deployment: 3x

Is my math right? Or do you use something different for compression?

2 Orders of magnitude of storage saving is pretty impressive.

8.

Show HN: HN Summarizer(chrome.google.com ↗)

7 points · by aliencat · 3y ago · 1 comment

9.

Show HN: Create new files in macOS Finder(github.com ↗)

3 points · by aliencat · 3y ago · 1 comment

comment 3y ago · link · parent

unit test definitely a great use of copilot.

comment 3y ago · link · parent

I also recommended vimium-c (https://github.com/gdh1995/vimium-c). It's like vimium on steroid: with a bunch of additional useful features.

comment 3y ago · link · parent

One problem with Tauri is that it doesn't bundle Node runtime, meaning that you can't take advantage of the npm packages that works outside of a browser environment. It does allow you to use Rust packages, but that's another story than Javascript.

comment 3y ago · link · parent

Haven't written on paper for a long time, almost forgotten how good it feels to write on one.

comment 3y ago · link · parent

> After work I prep for dinner, keep working on my projects, and then drive 5 min west to the beach right before sunset and sit in the back of my car writing in my notebook. This is my favorite time of the whole day, a solid 30 min break where I don't look at my phone or any screen

Sounds like a wonderful time for unwinding. What would you be writing in those time?

comment 3y ago · link · parent

How easy is it to create a kubernetes cluster between local and cloud? Was thinking about doing this but was puzzled by how to bridge the network.

comment 3y ago · link · parent

Very interesting idea! I think I've heard something like this before on giving reward randomly yielding to addictive behaviours, like gambling. Do you have any recommended reference on this idea?

comment 4y ago · link · parent

Karabiner is incredible for making keyboard shortcut to do some pretty complicated task. Obsidian, what a note-taking app! Makes Evernote looks like a dinasour. Vim (and NeoVim), you learn it once and use it for everything.

comment 7y ago · link · parent

You can also acomplish this with shell:

export BUCKET=____; aws s3 ls "$BUCKET" | tail -n+2 | awk '{print $4}' | while read k; do aws s3 cp "s3://$BUCKET/$k" -; done

comment 7y ago · link · parent

No need for the sarcasm, it's open source, you don't have to use it. But to answer your question, you can't do `./my-script foo`, because you can't call a function directly as argument.

If you also want auto-completion, you bascially re-implemented Bud.

comment 7y ago · link · parent

Your statements are correct, but they are workarounds, and doesn't cover all the use cases. And they usually requires a StackOverflow search. For the above 2 reasons, I consider them to be limitations.

1. Problem is You have to explicit define a number of arguments and they have to be named. Consider the situation where you want to call an arbitary number of arguments, can't do that. (ref: https://stackoverflow.com/questions/2214575/passing-argument...)

2. You cannot reference the target in the body of another target. (ref: https://stackoverflow.com/questions/3267145/makefile-execute...) Consider below:

  .PHONY: a b
  a:
    echo A
  b:
    echo B
    a # can't do this
    echo B
3. .PHONY should be the default when you don't use file target, which is often the case for most non-C project.

With Bud, bash script become your Makefile and bash functions become your Make target. You can have arbitary numbers of arguments, you can reference other targets since they are just functions, and you don't need to explicitly add your target to .PHONY.

There are other reasons you want to move away from Make. For example:

* Defining variable in your target body requires workaround (ref: https://stackoverflow.com/questions/1909188/define-make-vari...)

21.

Show HN: Bud – Command Runner inspired by Make(github.com ↗)

5 points · by aliencat · 7y ago · 4 comments

comment 7y ago · link · parent

This one is pretty useful!

Open current OSX Finder directory in Terminal:

  cdf () {
        target=`osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)'`
        if [ "$target" != "" ]
        then
                cd "$target"
                pwd
        else
                echo 'No Finder window found' >&2
        fi
}

23.

Show HN: RabbitHole – YAML Configured SSH Tunnels(github.com ↗)

1 points · by aliencat · 8y ago · discuss

comment 8y ago · link · parent

stickK app is very useful for breaking bad... habit. You put money on the stake to follow through.

comment 8y ago · link · parent

I would say that in terms of efficiency, Vim is >= Sublime. I have yet to see anyone using a GUI text editor beat the text editing speed of Vim. Plus, you are at full productivity when working with terminal. Think about how easy it is to ssh to a server and edit files with Vim.

comment 8y ago · link · parent

Autoscaler(https://github.com/kubernetes/autoscaler/tree/master/cluster...) is a good option too. Works incredibly well at automatically adding/removing nodes based on workload.

27.

Show HN: Kubernetes Documentation in PDF format(github.com ↗)

1 points · by aliencat · 8y ago · discuss

comment 8y ago · link · parent

Sweeeee! :)

Do you have flexible time? Like being your own boss kind of deal?

comment 8y ago · link · parent

Hi sampl, thanks for taking the time to comment! I have less than 5 years of experience, but apparently the company is in need of contractors so they offered me the job without hesitation. I am wondering if there is anything I should consider before taking the job.
123