Hacker News new | past | comments | ask | show | jobs | submit | tbronchain's comments login

I've had some pretty good success doing something like:

ssh user@host << EOF

Your script

EOF

Beware of local variables interpretation though!


Bash lets you suppress local expansions by using <<'EOF' instead of <<EOF.

But if you need a mix of local and remote expansion, you're back to doing a lot of escaping.


Wow, that is something I had no idea about! Thanks!


But soon is going to be obsolete if you have wifi at home...

https://arxiv.org/abs/2301.00250


I build infrastructures for small/medium size projects in a reproductible, code based, extensive and scalable way - usually cloud based. Businesses I work with need a quick and efficient solution to serve what they build, do not want to/cannot dedicate full time internal resources to it but require production ready setup that their developers are not qualified to build. Sometimes, they just require some guidance or validation. They like to call me DevOps.

DevOps, SysOps, Sysadmin, Infrastructure engineer, Cloud engineer... The title doesn't matter so much, but what I like in the term DevOps is how it links the dev side to the infra side, as the infra itself ends up being already built in a cloud environment.

I also believe there was a time when we needed to make a difference between traditional "Sysadmin" and developers who specialized in building cloud infra, but not anymore.


A lot better.

A couple of years ago I could see volumes on Linstor getting completely stuck and unrecoverable whenever the network was getting busy or unstable. Nodes reboot were a nightmare too.

Have a setup now with their Piraeus operator[1], Kubernetes >= 1.20, rancher and calico, and it seems to be very stable. XFS have been giving better results too. Still, better not to try too many reboot loops on the nodes.

1: https://github.com/piraeusdatastore/piraeus-operator/


Had something like this running before, with an extra tunnel to a VPS, so when I was connecting to this VPS on a specific port, it was eventually connecting to my home VPN - useful with dynamic IPs.

I can't remember the tool I used for the tunnel. SSH was quite slow and I remember using something else at the TCP level. Any idea? Bonus for any solution that works with UDP.


Just run OpenVPN through UDP. It’s supported natively and I get fast speeds.

You can use DynDNS or Pihole to avoid needing a static IP


I believe this is one of the feature projects like Dfinity/ICP [1] are trying to achieve.

Probably overkill and way early on, but the idea of a decentralized Internet would be key here.

1: https://dfinity.org/


I have worked mainly on ops/infra professionally the past few years and will strongly with the idea to avoid any complicated tool - i.e Kubernetes nowadays.

I create my small/bootstrap projects the following way:

1- create a free tier AWS account - can work with any VPS/server really, but with AWS you can get it 100% free :)

2- create some Ansible provision/setup/deploy scripts

3- create some bash scripts to wrap this all

Create the Ansible scripts:

1- Provision script, consisting of 1 EC2 instance, 1 RDS and the security groups. Store the IPs/adresses of the newly created instances.

2- Setup script, basic instance config, packages, app/project repo, you name it

3- Deploy script, to run every time I want to update the app, mainly just doing a git pull on the instance and some database backup/migrations (although on RDS backups aren't always necessary)

I get these Ansible scripts wrapped into basic bash scripts, provide my AWS credentials via the AWS cli to keep it safe, few extra creds with Ansible vaults, SSH keys, publish in a Github [private] repo and I'm all set.

It took me a couple of days to get fully operational and I was learning Ansible at the same time so it can really be done with basic features. Now it's done, I can reuse the same skeleton for every new project in a couple of hours!

I find this solution extremely resilient. That's basically free hosting for personal projects. Every year, just need to run the script again when free-tier expire, and can change hosting provider anytime or upgrade the instance type if I decide to get a project publicly released. A small extra Ansible task to write for migrating the data and that's it!


Really nice to see a bit of competition in here!

Slightly unrelated but also, from the same company, Rancher (their main product) has been really good to deploy bare meal Kubernetes setup [almost] 100% container based.


You mentioned defamation. According to which country you live in there should be a way to sue around that and at least get a record that you have been a victim of cyber bullying, not necessarily the person you appear to be.

I strongly encourage you to do so if you can. I really hate people having such practice and thinking they can get away with it.

Otherwise/in the meantime the contracting idea works. Could be through a platform - i.e Upwork or Toptal - and/or behind a company name, etc. I'd also look into foreign opportunities.

This all sucks and I don't know what happened but look forward, some people don't want to give meaning to these things and would give you a chance. Good luck and take care!


Thank you <3 I did go the police route as i mentioned in a previous comment, to no avail, but to be honest, I have less than a thousand dollars to my name at the time. I suspect the person that did this to me is not in the United States.


Binance API (i.e https://api.binance.com/api/v3/ticker/price) does it when there are too many requests from one IP (I assume that's the reason). They could have used something else like 429 but for some obscur reasons they're using 418 (if anyone knows the actual reason...).

It will happen often if you try to make a call to their API through Google sheet scripts.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: