Installing Umap

Well, I needed to install umap and found instrucrion on the readthedocs not being enough for Debian so here’s some notes First thing Install all required packages listed in their readthedocs Install libpq-dev,python3-dev and build-essentials which are needed during umap pip installation Create the virtualenv and upgrade pip with pip install --upgrade pip (this is needed as Pillow requires zlib and libjpeg, pip will take care of this) Install umap via pip using last annotated tag pip install git+https://github.

Projects

Here I’ll try to keep up to date the projects and repos I’m contributing to

As of now I’m packaging a bounch of software for Archlinux in the AUR

Problems with wifi archlinux and suspend?

I was having problems with my wifi connection after a resume from suspend so following this section on the archwiki I created a systemd service restarting the wifi on every resume

Italian OsmAnd~ maps link

I keep forgetting where to downlosd italian maps for openstreetmap, well here I can find them! I hope it’s one and for all

Recover lost mail password with k9mail

Let’s say you forgot your mail password, let’s say you use k9mail (maybe it works also with other clients but idk) well you can recover the password having it in plaintext. Prerequisites: An android smartphone with k9mail installed and with a working configuration (it has to know you’r password) Adb Usb debugging enabled Optional:root How to do it: We have 2 ways to recover the password: one with root and one without, first without

Ansible, a quickstart

So I have to learn Ansible, cool

Simple steps

  • Install it on local machine, on arch yaourt -S ansible – on the server nothing is needed but openssh and python2
  • Make sure your remote server(s) has/ve openssh running and configured with your pubkey in the authorized_keys file
  • Create an inventory file in /etc/ansible/hosts ( a list of hosts both dns names and IPs are allowed) and make sure in ansible.cfg everything is “nice”
  • Check if it works issuing
  •  Now cry learning playbooks
  • Just kidding, just complex, once in the mood it’s easy

Dmidecode

Dmidecode gives you infos on the components installed on your motherboard, often avoiding the need to open up the case or, more annoying, a laptop.

Here a table of convertion provided by the man page, you can ask ifos with dmidecode -t #

Another nice tool is lscpu, for more detailed infos on the CPU

Type   Information
────────────────────────────────────────────
0    BIOS
1    System
2    Baseboard
3    Chassis
4    Processor
5    Memory Controller
6    Memory Module
7    Cache
8    Port Connector
9    System Slots
10   On Board Devices
11   OEM Strings
12   System Configuration Options
13   BIOS Language
14   Group Associations
15   System Event Log
16   Physical Memory Array
17   Memory Device
18   32-bit Memory Error
19   Memory Array Mapped Address
20   Memory Device Mapped Address
21   Built-in Pointing Device
22   Portable Battery
23   System Reset
24   Hardware Security
25   System Power Controls
26   Voltage Probe
27   Cooling Device
28   Temperature Probe
29   Electrical Current Probe
30   Out-of-band Remote Access
31   Boot Integrity Services

32   System Boot
33   64-bit Memory Error
34   Management Device
35   Management Device Component
36   Management Device Threshold Data
37   Memory Channel
38   IPMI Device
39   Power Supply
40   Additional Information
41   Onboard Devices Extended Information
42   Management Controller Host Interface

Wrong filenames?

If you do have some files with strange symbols showing off in the filename maybe it’s due to wrong encoding of the filename and here convmv comes in handy it is able to convert an encoded name into another. charset

Before it shows the changes it would make and then asks for confirm so you’ll know what is happening

“Wrong” file usage report by df

Ever happened to find your root partition completelly full but du reporting a minor disk usage? If you have a separate partition mounted at boot time sometimes can happen to the mount command to fail resoulting in your operations being executed on the wrong partition, maybe everything behaves correctly, you reboot or shut down the system and at the next boot the partition get mounted normally. What happened to the data wrote previously?

Python DBus and sockets

If you were, like me, wondering how the hell does it work for python to connect to a dbus unix abstract socket file here it is

mybus=dbus.bus.BusConnection("unix:abstractx=<path/to/socket>")

I was struggling to find it out online but no website nor python docs or anything else was providing any suggestion

Hope it’s useful