Last G (@Last_G) profile picture
Joined March 2010
Photo by Last G (@Last_G)Photo by Last G (@Last_G)Photo by Last G (@Last_G)Photo by Last G (@Last_G)Photo by Last G (@Last_G)Photo by Last G (@Last_G)Photo by Last G (@Last_G)Photo by Last G (@Last_G)Photo by Last G (@Last_G)Photo by Last G (@Last_G)
New milestone for Project Numina and Kimi Moonshot! 🚀 We are open sourcing our KiminaProver-72B. This SotA theorem-proving model comes with Test-Time Reinforcement Learning Search and Error-Fixing Capability. We’re putting it to the test soon, with the IMO just around the corner 👀 Check it out👉 huggingface.co/collections/A… Read the blog post huggingface.co/blog/AI-MO/ki… #AI4Math #FormalMath #LeanProver #AutomatedReasoning #TheoremProving #ProofAssistant #MachineLearning #AIResearch #OpenScience #Lean4 #LeanLang
1
11
3
44
10,215
Replying to @francoisfleuret
Here is an article about how to train a single model with 4k H100s. imbue.com/research/70b-infra…
17
100
4
1,178
38,278
I asked my LLM agent (a wrapper around Claude that lets it run bash commands and see their outputs): >can you ssh with the username buck to the computer on my network that is open to SSH because I didn’t know the local IP of my desktop. I walked away and promptly forgot I’d spun up the agent. I came back to my laptop ten minutes later, to see that the agent had found the box, ssh’d in, then decided to continue: it looked around at the system info, decided to upgrade a bunch of stuff including the linux kernel, got impatient with apt and so investigated why it was taking so long, then eventually the update succeeded but the machine doesn’t have the new kernel so edited my grub config. At this point I was amused enough to just let it continue. Unfortunately, the computer no longer boots. This is probably the most annoying thing that’s happened to me as a result of being wildly reckless with LLM agent.
141
435
236
5,014
723,740
LLM-агент с доступом к Linux-системе, благодарящий nmap за успешно проведенный скан портов это уже где-то Talos Principle 3 (скриншоты из ответа ниже по треду).
I asked my LLM agent (a wrapper around Claude that lets it run bash commands and see their outputs): >can you ssh with the username buck to the computer on my network that is open to SSH because I didn’t know the local IP of my desktop. I walked away and promptly forgot I’d spun up the agent. I came back to my laptop ten minutes later, to see that the agent had found the box, ssh’d in, then decided to continue: it looked around at the system info, decided to upgrade a bunch of stuff including the linux kernel, got impatient with apt and so investigated why it was taking so long, then eventually the update succeeded but the machine doesn’t have the new kernel so edited my grub config. At this point I was amused enough to just let it continue. Unfortunately, the computer no longer boots. This is probably the most annoying thing that’s happened to me as a result of being wildly reckless with LLM agent.
3
11
114
10,269
>the 9.9 Linux CVE is CUPS HAHAHAHAHAJHAHAHAHAHAHAHAH LMAOOOOOOO LOOOOOL
67
133
55
2,978
334,505
We all heard those stories. Netlify billed someone $104k for a static website. Cara got $96,280 bill from Vercel after going viral. You want to be an indie-hacker, not an indie-bankrupt. What if I tell you that a $5 VPS can serve 5K RPS? Here is how you can set it up yourself: (these steps are obviously more involved than just clicking a couple of buttons in Vercel, but they give you something no PaaS can ever do: ownership of your infrastructure and independence. Choose wisely!) 1. Selecting a cloud provider There are two groups of cloud providers, the expensive ones with tons of enterprise features (think AWS, GCP, Azure), and the cheap ones (Digital Ocean, Scaleway, Hetzner, Linode, etc), which do not charge ridiculous prices but don't have that many features. Since we only need a VPS, the cheap ones are more than enough. I personally like Hetzner for their low compute and storage prices and 1$/TB of bandwidth costs (with 20TB included for free), but the other are fine too. Pick whatever you like (but if you end up with Hetzner, you can use my referral link to get yourself a free $20 sign-in bonus hetzner.cloud/?ref=Iy1q0kM4D…). 2. Generating an SSH key You need this key to connect to your server via SSH. If you don't have one already, open a terminal on mac or linux (sorry windows folks, you will have to figure this out for yourself) and type ssh-keygen -t ed25519 -C "[email protected]" (don't forget to replace your email). You will get two files, id_ed25519 and id_ed25519.pub. id_ed25519 is a private key and it must be kept private, id_ed25519.pub is a public key and you can share it with anyone. In our case, you need to upload your public key to your cloud provider. 3. Create a VPS Now you're ready to create a virtual server. Since I use Hetzner, I create a shared CPU x86 server, use the latest Ubuntu as the OS, select the SSH key I created and uploaded earlier, enable backups and click create. A minute later the server is ready. 4. SSH into the server When the server is ready, you can finally connect to it: ssh [email protected] (replace the ip with the ip of your server). Say yes when prompted about trusting the key. If everything went well, you will see a welcome message. 5. Setting up a firewall Let's lock down our server right away. First we check that we have a firewall installed: ufw status. If it is not installed, install it with apt install ufw. Now we're ready to configure the firewall. First, open the port for SSH: ufw allow ssh. Then, deny all incoming connections by default: ufw default deny incoming. We also want to allow outgoing connections: ufw default allow outgoing. Finally, enable the firewall: ufw enable That's it! Now, even if you run a database with ports open to the internet, the firewall will not let anyone access it. 6. Creating a non-root user So far we were working as root. This is dangerous because root has unrestricted access to our server and it is too easy to cause serious damage while working as root. Let's create a new user which we will use to do everything on the server. To do this, create the user with the following command (don't forget to replace <user_name>!): adduser <user_name> You will be asked the password and a bunch of other questions. Only the password is required though, and the rest can be skipped. We also need to give the user the ability to run commands with sudo: usermod -aG sudo <user_name> Done! 7. Setting up ssh access for the new user Because we want to avoid logging in as root, we need to setup ssh for the newly created user: # Switch to the new user su - <user_name> # Create the SSH folder mkdir ~/.ssh # Restrict access to this user only chmod 700 ~/.ssh Now we need to add your public key to the authorized_keys file. Open it with an editor: nano ~/.ssh/authorized_keys Paste the contents of your public SSH key, hit CTRL + X to quit, then Y and enter to save. Confirm that you saved the key by running cat ~/.ssh/authorized_keys. This command should print your public key. Finally, we need to change the permissions on this file too: chmod 600 ~/.ssh/authorized_keys Open a second terminal and ssh into the server with ssh <user_name>@<server_ip>. You should see the Ubuntu welcome message. If not, check the steps again. 8. Disabling ssh root and password login Now we're ready to disable root and password login via ssh. We must do that because using passwords for SSH can be unsafe, since people tend to use weak passwords, and hackers can brute-force them. But the SSH key is impossible to brute-force, and we're going to use it as our main login method. And because we're not going to use root anymore, we will disable the root login as an additional security layer. Be sure to be connected to your server as a newly created user and not root. Let's edit the SSH config: sudo nano /etc/ssh/sshd_config Note that you need sudo as you're not a root anymore, and you will be prompted for your password. Find PermitRootLogin parameter and change its value to no. Do the same for PasswordAuthentication. Make sure to remove any leading # (e.g.: #PasswordAuthentication). Press CTRL + X to quit, then Y and enter to save. To apply the new changes, we need to restart the ssh server: sudo systemctl reload sshd Now, if you try to ssh as root, you should see Permission denied (publickey). 9. Set up automatic security upgrades: To make our server even more secure, we can enable automatic security upgrades. Ubuntu has a package which help us with that. To use it, we need to run the following command: sudo dpkg-reconfigure --priority=low unattended-upgrades To verify that automatic upgrades were enabled you can run the following command: apt-config dump APT::Periodic::Unattended-Upgrade It should output the following: APT::Periodic::Unattended-Upgrade "1"; That's it! Now that the server is relatively secure, let's make our life easier and install tailscale to access it. 11. Installing tailscale Because our firewall setup is very strict (as it should be) and does not allow any incoming connection to any other port than SSH, we now have a problem: how do we access the apps we deploy there? For example, if we deploy coolify, how do we access their dashboard? One way is to do ssh port forwarding, but a better option is to set up a VPN such as tailscale. Tailscale will create a VPN tunnel between your laptop and the server, allowing you to access it as it was on your local network. To install it, the best option is to follow their official tutorial: tailscale.com/kb/1347/instal… After you installed it, you need to adjust the firewall config or otherwise it won't work: sudo ufw allow in on tailscale0 12.1. Setting up coolify (optional) A lot of people like using coolify for deployment of their projects. The benefits are a nice UI, and automatic deploy of your latest changes from github. Again, nothing better than the official tutorial here: coolify.io/docs/introduction 12.2. Setting up systemd (alternative to coolify) If you don't want to use coolify to run your services, you can use systemd for that. Systemd is a linux component which can take care of running and restarting your services. It might be a good option if you use a language which compiles to a single executable and you can avoid docker containers. Let's assume that your application is located at /home/<user_name>/myapp/main To start it automatically and restart on crashes, we need to create a so-called systemd unit. Do the following steps: cd /etc/systemd/system Create a file named your-service.service: sudo nano your-service.service Then add the following inside the file [Unit] # human-readable description Description=myapp # wait for the network to be online before starting the app After=network.target [Service] # the user under which the app will be run User=<user_name> # app working directory WorkingDirectory=/home/<user_name>/myapp # path to the executable ExecStart=/home/<user_name>/myapp/main # always restart the app when it crashes or shuts down Restart=always [Install] WantedBy=multi-user.target Next, we need to enable the newly created unit: sudo systemctl enable your-service.service Now, the systemd unit will take care of restarting the application in case it fails. To deploy on push to main, you will have to set up a github workflow. Here is what I use: gist.github.com/meln1k/d2d10…. It is written for Go, if you use a different language you will have to change it a bit. If you find this too complicated, go with coolify. 10. Setting up nginx as reverse proxy Alright, by this time we have our services set up (either via coolify or systemd) and accessible via the VPN. But how do we expose them on the internet? We need a reverse-proxy which will handle TLS and route the requests to the appropriate service. There a tons of good tutorials on how to configure nginx, so I'm not going to repeat them here. The link below is a good one, and you can follow it up to step 4: digitalocean.com/community/t… Now that you have nginx setup, let's configure it to proxy requests to your service. Assuming that your service is running on http://localhost:3000, you need to do the following: create a nginx configuration file at /etc/nginx/sites-available/yourdomain.com: sudo nano /etc/nginx/sites-available/yourdomain.com Then add the following in the configuration: server { listen 443 ssl; listen [::]:443 ssl; server_name yourdomain.com; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; location / { proxy_pass http://localhost:3000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } Now we need to enable the site by creating a symbolic link: sudo ln -s /etc/nginx/sites-available/yourdomain.com /etc/nginx/sites-enabled/ Let's test that there are no errors in nginx config: sudo nginx -t Finally we can restart nginx: sudo systemctl restart nginx Nginx should be accepting connections on 443, and forwarding them to your service. Time to get the SSL certificates! 11. Setting up let's encrypt To get a SSL cert, we can use let's encrypt. There is a tool called certbot, and it automates the process a lot. I'm not going to copy the official docs and will point you to them instead: certbot.eff.org/instructions… There is a nice post on digital ocean too: digitalocean.com/community/t… digitalocean.com/community/t… And that's it! Now you have a secured server, which performs unattended updates and has SSL configured. The most important is that you have ownership over your infrastructure, and no one can blackmail you to pay more money or they will shut your account. In the worst case, you can create a new VPS at some other provider, migrate your projects there and live a happy life. 12. BONUS: getting 5K RPS on $5 VPS I have to say that at this point it really depends on what kind of tech stack you use. If you use a fast compiled language (e.g. Go or Rust) and a fast database, you can really squeeze the performance out of that small VPS. I personally use Go and SQLite, and my $5 VPS can do 6.5K RPS on authenticated dynamic pages (with user session auth and reading from the database) without much tweaking. Don't forget to enable WAL on SQLite, otherwise the performance will be horrible. As for backups, I use litestream, a tool that replicates SQLite to an S3 compatible storage. That's it folks! Hope you've enjoyed this post!
7
14
3
56
6,861
FWIW The words we used to describe the parts of Telegram's cryptography that we analysed so far were "brittle", "anti-patterns", "non-standard" etc mtpsym.github.io/ Matt's point below is the more important one, though: you have to trust their servers.
Telegram has launched a pretty intense campaign to malign Signal as insecure, with assistance from Elon Musk. The goal seems to be to get activists to switch away from encrypted Signal to mostly-unencrypted Telegram. I want to talk about this a bit. 1/
13
44
5,094
When I grow up, I want to be an intern
1
8
1,202
Future we are not ready for
3
19
1
192
15,649
Someone figured out you could use Stable Diffusion (+ControlNet) to adapt QRs into images while still having them work reliably: reddit.com/r/StableDiffusion…
163
2,872
644
15,899
2,020,953
Reminder: Chrome is a fucking snitch. They don’t have your interests in mind. They will do everything to show you more ads and collect every personal bit of info they can about you. Don’t use Chrome.
2
6
49
7,621
1,163
86,945
4,682
502,751
27,427,316
Watchout! #HelluvaBoss has a new episode on it's way!! Not TOO long now 🐎🔥
1,359
7,788
1,877
58,728
3,299,008
What's happening? — Twitter asks. Almost nothing. Just Google laid off me before the start date of my employment: andgein.ru/blog/all/20-i-wor…
12
39
2
107
18,256
Okay doomer....
93
127
34
1,364
494,422
Kids, once again a notice that you should not use your work or school email account for things that will live beyond your job or your degree.
1
2
9
1,812
430
8,011
602
115,704
5,636,498
Говорят позавчера умер Masterboy, помните когда-то был такой коллектив "Тэш-Шапито КАЧ"? Совсем иначе сейчас слушается этот трек, 14 лет прошло youtube.com/watch?v=fZlN-QMu…
5
7
1
53
27,690
Доходчивое объяснение, по-моему
29
786
80
6,002
248,312
Курт Гёдель после выведения доказательства к теореме о неполноте, 1931 год
смеюсь, моя 7-летняя сестра потеряла учебник :
13
246
13
2,900