Artigo
8185 descobertas · Descobertas escolhidas da web aberta, das mais recentes às mais antigas.
-
Homelab Hypervisor Networking
Building out a virtual lab environment to mimic complex production networks
Green Reed Technology’s Blog
-
Getting Started with the HPE VM Essentials Terraform Provider
An introduction to using the HPE Morpheus VM Essentials Terraform Provider to automate the configuration of VM Essentials
Green Reed Technology’s Blog · EN
-
Building an HPE Morpheus VM Essentials Cluster with Terraform
A walkthrough of using Terraform to provision an HVM cluster in HPE VME
Green Reed Technology’s Blog · EN
-
Microblogging on the fediverse
So today I read this post by icyphox titled Stop joining mastodon.social ( archived ) and I thought I’d put my thoughts in writing. And out came the following pointless mess. TL;DR: The fediverse doesn’t seem to work for me. I’ll take a step back first, and that sets me on twitter. So I don’t really do twitter. As in, I almost never tweet. I have followers but no mutual follows. I don’t feel like I know anybody I follow; or rather, nobody I follow knows me. I never get direct messages. I just open the website, and scroll through the Latest Tweets of people I follo
cosarara.me · EN
-
Nix on ubuntu and webGL
So I switched jobs and got a laptop from the company, and it had ubuntu installed with FDE. Normally I would have done a clean install of arch on it, but I said hey, let’s just give ubuntu a chance. When it came to setting up the elm language server though, you need a specific version of node and the fight with npm got tiring enough that I decided to go the Nix On Non Nixos route. So I installed nix on ubuntu, ran nix-env -iA a bunch of times, and everything was good in the world. Then it turned out that most of the time, when something is outdated in the ubuntu repo, it is just easier t
cosarara.me · EN
-
Making stupid bridged networking work on wifi (because usermode networking is not good enough)
This is how I setup the network when I run a VM on a laptop. Create a bridge on networkmanager: $ nmcli connection add type bridge ifname br0 stp no \ ipv4.addresses 10 .42.42.42/24 ipv4.method manual connection.id br0 (it will be DOWN but already be visible in ip link ) Set up a dhcp server for our vms using dnsmasq #/etc/dnsmasq.conf interface=br0 dhcp-range=10.42.42.50,10.42.42.150,12h # systemctl enable --now dnsmasq Enable forwarding In /etc/sysctl.conf or /etc/sysctl.d/99-sysctl.conf: net.ipv4.ip_forward = 1 # sysctl -p /etc/sysctl.conf Tell iptables to please forward iptables -A FORWARD
cosarara.me · EN
-
Building dosemu2 to run WordPerfect for DOS on debian
We are going to run wordperfect for dos on dosemu on debian. Overcomplicated adventure building stuff as debs for no reason. Main source of inspiration is http://www.columbia.edu/~em36/wpdos/ and the linux page there . Apparently there is a new way with dosbox-x which is better, but I don’t seriously intend to use WP, I’m just toying, so I won’t ask. I wrote down what I did as I went, but reordered sections to be in logical order instead of chronological. Let’s go with dosemu2 . I’m running bedrock linux on this laptop, with debian and void. But dosemu2 is not in
cosarara.me · EN
-
Annoyance on low battery
Laptops should be a bit annoying when they are low on battery. Otherwise, I will not realise it until it’s too late, and my computer will turn off in the middle of whatever I was doing. Proper linux Desktop Environments already do this, but since I am running the Awesome window manager with a custom config, I only get what I add myself. My solution is as follows. First, the annoyance script: ~/.local/bin/checkbattery #!/usr/bin/env python3 import subprocess import math import sys with open ( '/sys/class/power_supply/BAT0/status' ) as f : status = f . read () if status in [ "Charging \n "
cosarara.me · EN
-
Setting up guix, and locales
I wanted to try out Spritely Goblins to see what it is like, or to really understand what it is, since I’d been seeing it pop up on lobste.rs here and there. The guide suggests using the guix package, so I decided to install the guix package manager on top of my arch linux system. Installing asks to please run nscd, which is not even included in arch nowadays, so I did not, we’ll see what problems it causes. Then after it’s set up, runnig any guix command asked me to fix the locales: hint: Consider installing the `glibc-locales' package and defining `GUIX_LOCPATH', along thes
cosarara.me · EN
-
Advent of Code Haskell
It is that time of the year again, Advent of Code time. I love the puzzles by themselves, especially as they become trickier and trickier, but I also take the opportunity to explore programming languages I don’t usually use that much. If I don’t have much time that day, or I’m feeling a bit frustrated, I might solve it in python only (the language that usually comes more naturally to me), but otherwise, I want to try other stuff. Today I did Haskell. It’s not the first time I try it, I had used it back in 2019 for a few of the puzzles, and then in 2022 I solved day 21 w
cosarara.me · EN
-
Server on a phone
I went and set up a web server on my old android phone. The main explanation is there on the site itself http://phone.cosarara.me/ ( wayback machine link for when it inevitably stops working).
cosarara.me · EN
-
春天的俳句
一 想去看牡丹 时间少天气不妙 洛阳去不了 二 爱吃大竹笋 下肚脖子疥疮冒 筷子停又抄 三 樱花开得好 满地漫天粉红飘 老少各自俏 四 见到俩鸟巢 高高挂在秃树梢 怎么不见鸟 五 莲叶浮水面 蝌蚪趴在水草头 夜里咕呱叫 六 谷雨还没到 人呢就像虫鱼鸟 朋友圈里闹
撕心砸念 · ZH
-
《一句顶一万句》阅读笔记 :1
“不拿你当朋友的,你赶着巴结了一辈子;拿你当朋友的,你倒不往心里去。当时集上的人都烦你敲鼓,就我一个人喜欢听。为听这鼓,多买过你多少碗凉粉。有时想跟你多说一句话,你倒对我爱搭不理。” 真实又伤心。 人心往往如此,比如“爱我的人为我痴心不悔,我却为我爱的人甘心一生伤悲”,又比如“我深深地爱你,你却爱上一个傻B,傻B他不爱你,你比傻B还傻B,喔……你还给傻B织毛衣。” 无论多少疑惑和不甘,事和情就是这样。 向老巩借了个蓑衣,披在身上,一路跑回裴家庄。 让我想起小时候,播种插秧时节总会碰上绵绵阴雨。 斗笠大,可只能站着或走着用。锄地插秧一弯腰,脖子以下全淋湿。碰上刮风,站着也一身湿。风再一吹,冷得发抖。 蓑衣很适合弯腰干的活。只是久了积很多水就重,重了就该回家吃饭了。 一个十三岁的孩子,打着摆子,为看一个人,为丢一只羊,也绕了几道弯,最后被逼得无家可归;自己都三十多的人了,能因为几张饼,真去杀人吗?杀人之后,家里还有仨孩子呢。 原来世上的事情都绕 。 人想的不是说的,说的不是做的,做的不是唱的,唱的不是传的。 世上的事情都绕。 “如讲到“有朋自远方来,不亦乐乎?”徒儿们以为远道来了朋友,孔子高兴,而老汪说高兴个啥呀,恰恰是圣人伤了心,如果身边有朋友,心里的话都说完了,远道来个人,不是添堵吗?恰恰是身边没朋友,才把这个远道来的人当朋友呢;这个远道来的人,是不是朋友,还两说着呢;只不过借着这
撕心砸念 · ZH
-
错位的睡意及其他
一 神经衰弱发作之时,睡意就无可奈何地错了位。不是难入睡就是早早醒,白天需要精力时却难挡困倦乏力。 工作日还稍微好些,周末尤其如此:四五点就醒,下午1,2点疲惫难耐,到了晚上6,7点坐在沙发上看着电视就能睡过去,挨到了11点又辗转难眠。 万一碰上换季,更是天天如此。 年轻时倒是硬要反抗睡意。一到周末和假期就熬到下半夜,看电视玩游戏折腾电脑。反正第二天也没要紧事情,白天就睡大觉吧。 二 作为普通人,钱与闲适也是这么回事,错着位。有大把空的时光,没有钱去去享受闲适。慢慢攒了工钱,闲适也一起慢慢被挤了出去。 作为普通人,钱和很多东西都能组成这么个你强我弱的对子。钱和精力、钱和健康、钱和家庭,都这么回事。因为这些对于普通人,都是有限的,再怎么挣扎,基本没有太大的变化。 三 但钱和爱情,不一样了。作为普通人,以前的爱情是爱情,钱是钱,彼此关联和约束不那么强烈。现在爱情都标了价格,可以买和卖,有保质期,不满意了就退货。 但你相信还有钱买不到的爱情吗,总归还是有的。 四 还有知识、技能、和经验不是这样的。 你没法在用劲儿学习时反而学不着,多少得点儿;也没法不想学却落了一身本领。 五 因为有时间这个终极约束,我们就只能往前走。一切都随着时间单向流动,每个人都一样,回不了头。浪子回头只是心境。其实也不是,是一个新的幻想。 所以,不管伟大或者渺小、贫穷或者富有、高尚或者卑鄙,都在匆匆随波往前,不同的只
撕心砸念 · ZH
-
外孙佚事:逆子
一 逆子 外婆对外孙:“当初我一直希望生个女孩儿,乖巧听话。” 外孙回答:“看我妈那么痛苦的表情,肯定是个逆子啊。” 外婆:…… 二 长舒一口气 外孙学习非常不认真,永远是注意力在别处。样子像是看着书,但是关心的全是周围的事情。有人路过他要看一眼,有点儿什么声音他立刻抬头。 上午做百位的除法,他从个位开始除。然后非常困惑又神气地说这题不对,除不尽。 我说不可能,你再想想。他说还是除不尽。他妈最后实在受不了了,跑过来一顿臭骂,一步步骂到他做完一题。 中午带着他去报了个游泳班,回来他外婆叮嘱继续做。 又是百般不情愿,一做就错,被外婆一顿教训。 后面自己做了一题,立刻要外婆看做对了没。听到外婆说对了,突然发出很大的长舒一口气的声音,仿佛说:“幸好对了”。 然后外婆说:题目是880除以11。 三 做鸡 外孙每天五点就醒了,晚上一般十点多才睡着。 外婆说他睡得比狗还晚,起得么比鸡还早。然后,外孙:“说不定我以后还能做鸡呢。” 外婆掩面无语。然后说我以后等你长大了一定要告诉你说了啥。 外孙:“等你们老了,说不定就健忘了。” 四 东北腔 外孙土生土长的上海人,现在满口东北腔。 那天晚饭后带他出去走,他外婆让他把白天自己做的“冰沙”带着路上吃。 冰沙 :把椰奶倒进矿泉水瓶子然后冻起来。想吃了拿瓶子使劲砸桌角、阳台角,把冰给敲碎成沙。因为只能敲碎边缘的冰,中间还是一大根,得仰起头把瓶子举起来,要么吸
撕心砸念 · ZH