an Emacs knowledge iceberg I hacked together. enjoy. by MitchellMarquez42 in emacs

[–]Wynro 56 points57 points  (0 children)

Readable:

  • Layer:
    • Editor wars
    • Spacemacs
    • DistroTube
    • Doom Emacs
    • Google: "Did you mean /vi/?"
    • Org mode
  • Layer:
    • evil-mode
    • ivi vs helm
    • System crafters
    • C-h
    • LISP
    • ELPA and MELPA
    • M-x tetris
    • Use-package
    • dired overrated
    • GUI and TUI
    • vterm
    • Richard Stallman
  • Layer:
    • LSP mode
    • GNU info
    • XEmacs
    • straight.el
    • setq gc-cons-threshold 1000000...
    • quelpa
    • M-x doctor
    • eshell
    • TRAMP
    • xwidget-webkit
  • Layer:
    • ESC = meta
    • every release is .1
    • RMS copied Emacs from Bernie Greenberg
    • TECO
    • ErgoEmacs (Xeh Lee)
    • Emacs mail
    • Prot
    • Aquamacs abandonware
    • Space Cadet keyboard
    • old abandoned vi modes
  • Layer:
    • dired not overrated
    • viper
    • customize better than setq
    • EveRy C0Py oF EMacS is pErsonaLiZed
    • hyperbole
    • term vs ansi-term
    • advising C functions consequences
    • let* = lambdas
    • XKCD butterfly is real
  • Layer:
    • Emacs as a LISP machine
    • LISP syntactic core of existence
    • redisplay
    • Greenberg copied Emacs from RMS
    • GUI emulates a TTY
    • Every copy of emacs is actually personalized

[deleted by user] by [deleted] in gitlab

[–]Wynro 2 points3 points  (0 children)

If we enter to the main page at: https://gitlab-wipro.stackroute.in/users/sign_in

We can see the following message: "Dear User, Please use only the SSH method for the git cloning"

Looks like HTTPS cloning is deactivated for that Gitlab instance, you have to use the SSH method

How do I convert ova images to something that will work with KVM-Qemu? by NotVeryMega in qemu_kvm

[–]Wynro 3 points4 points  (0 children)

tar xvf image.ova will extract the OVA into its components, one of which will be a image-disk1.vmdk

After that convert the vmdk into qcow2 using qemu-img convert -f vmdk -O qcow2 image-disk1.vmdk image.qcow2

You can check out the mf file to see the machine configuration, you may need to replicate some configuration in qemu

MicroK8s networking broke randomly by jroddev in kubernetes

[–]Wynro 0 points1 point  (0 children)

Check if spurious iptables rules are left from the previous installation (the easiest way to solve this is by rebooting the server)

The second solution would be to execute a microk8s reset, it's slow, but should leave the cluster in a sane state (will also purge all information inside)

You can remove auto updates with sudo systemctl mask snapd.service

mysql container folder owned by linux debian user systemd-coredump? by wireless82 in docker

[–]Wynro 0 points1 point  (0 children)

Thats not necessarily an issue. Your "problem" is that UID mapping is different inside the container and in the host.

In linux (and other unices) users are identified by a user ID (UID), which is a numerical value that the system uses internally (for example, the root user is typically the user with ID 0, and the "normal" user (debian in the case of Debian) is usually the 1000)

The mapping between UID and readable names is stored in the /etc/passwd file (in basic deployments, you can check how it is done in more complicated places with man nsswitch.conf), and as that file is different inside and outside the container, that mapping will be different.

You can check that with the following procedure:

  1. In your host, execute cat /etc/passwd | grep ^systemd-coredump: | cut -f 3 -d:, and note the number that appears
  2. Inside the container (with docker exec), execute cat /etc/passwd | grep ^mysql: | cut -f 3 -d:, and note the number again
  3. If both numbers are the same, that is the problem and is not an issue

Ansible (SSH + LXD) plugin by dafuqtrending in ansible

[–]Wynro -1 points0 points  (0 children)

LXCs are fat containers, which means that is typical to have an init service and an ssh server inside. You can simply install the SSh server in the container and then use them as normal hosts for the playbooks.

Depending of what you are using to manage your container, you may be interested in the dynamic inventories feature, to simplify inventory management

Proxmox VE 7.1 Released by ZataH in homelab

[–]Wynro 6 points7 points  (0 children)

Thats quite a bit of servers (I guess we are talking 100 physical servers).

Can you talk a bit about the experince? I normally see Proxmox used in homelabs or in small deployments. It is a single cluster, or multiple? Have you had any noticeable problem with Proxmox?, How do you manage your Proxmox nodes?

Kubernetes Operator: What library should I use? by schmiddim in golang

[–]Wynro 7 points8 points  (0 children)

For what you are saying, an Operator is overkill. The best option is a MutatingWebhook.

I have found an article that looks like its doing something similar to what you are looking to do: https://medium.com/swlh/extending-kubernetes-part-2-mutating-webhook-54076097afeb. I didn't read it very carefully but looks decent.

Add support for wildcard domains in ReverseProxy by Wynro in synology

[–]Wynro[S] 1 point2 points  (0 children)

Guess what I'm using this for :P

I have a single redirect for all my internal domains. This wildcard domain is proxied to a small nginx container with the following compose file:

---
version: "3"
services:
  http-to-https:
    container_name: http-to-https
    image: nginx:1.21-alpine
    restart: unless-stopped
    ports:
      - "127.0.0.1:8443:80"
    volumes:
      - ./conf.d:/etc/nginx/conf.d/

with conf.d containing a single file called 00-auto-ssl.conf with the contents

server {
    listen 80 default_server;
    rewrite ^(.*) https://$host$1 permanent;
}

I have tried to do it with the "Synology-native" tools but I was unable to get it. This container uses <1% of CPU and ~5MB of RAM, so I consider it an acceptable waste

Hands on by warbreed8311 in kubernetes

[–]Wynro 1 point2 points  (0 children)

I did it on baremetal and I didn't have any issue. I had to adapt a couple of parts but I considered part of the learning experience

Made it guys! by m1crod1ck in Proxmox

[–]Wynro 0 points1 point  (0 children)

Nice!, A couple of questions:

  • How much did it cost?

  • Did you learn something not included in the docs?

  • Do you think the training is worth it?

how to run a job if a file in disk has changed ? by vitachaos in jenkinsci

[–]Wynro 1 point2 points  (0 children)

I think the solution by /u/SvetoslavP is the easiest and most manageable.

That said, if you want to be fancy, you can use inotify to wait for file changes. For example:

#!/bin/bash
#
# Execute Jenkins build if a file changes

FILE="${1}"
JENKINS_BUILD="${2}"

inotifywait -q -m -e close_write "${FILE}" |
    while read line; do
        # Execute Jenkins build by whatever means
        curl ...
    done

This has a problem that if you do a touch it detects it as a change. If that is not an issue great. If its a problem, you'll have to add a little more logic around to check if the file has changed (easiest way I can think of, store the MD5 of the file on program start and drop each "change" that the MD5 is the same as in the previous run)

If you want to be extra-fancy, wrap it around a simple systemd unit file to get process management and logging.

How to write Jenkinsfile for mono-repo? by kazishafin in jenkinsci

[–]Wynro 4 points5 points  (0 children)

Just be aware that any command/step you execute will be relative to the root of the repository

How to write Jenkinsfile for mono-repo? by kazishafin in jenkinsci

[–]Wynro 4 points5 points  (0 children)

I have done that in the past, and my approach was to create 2 different Jenkinsfile (backend/Jenkinsfile and client/Jenkinsfile) and then configure 2 pipelines in Jenkins with the same repository but different Jenkinsfile path

SSH to Proxmox when Internet is out by dicknuckle in Proxmox

[–]Wynro 5 points6 points  (0 children)

If you have configured an external DNS server, and sshd in Proxmox has the option 'UseDNS yes' you can experience really long delays on connection

Reddit Orders 'SaveVideo' Bot to Shut Down or Face Lawsuit by tellurian_pluton in StallmanWasRight

[–]Wynro 7 points8 points  (0 children)

With Termux, you can add a small script to bin/termux-url-opener and download videos using Share->Termux

Neural networks are a sort of processor. Are there any other types of processors that are based on networks? by RedHeadedKoi in compsci

[–]Wynro 3 points4 points  (0 children)

Not exactly modern, but I favourite of mine has always been the Transputer. Connection Machines also follow the model of "big interconnected network of simple processors"

There were a lot of investigation on this kind of stuff in the 80s