A small skeleton you can put into your python emacs editing session:
;; insert python skeleton with auto-insert
'("\\.\\py\\'" . "python skeleton")
"#!/usr/bin/env python" \n
(file-name-nondirectory (buffer-file-name)) \n \n
"def main():" \n
"pass" \n \n
"if __name__ == '__main__':" \n
"main()" \n \n)))
I recently got a Gemini PDA (WiFi). To run rooted Android and Linux (dual boot) I did the following:
- Followed the details here.
- Downloaded & unzipped Windows Flashing Tool
- Downloaded & installed Windows Drivers
- Chose my Partition setup here then downloaded
- Scatter File
- Base Firmware (ie Android)
- Linux Firmware
- Unzipped both firmwares into a dir & put scatter file in there
- Connected Gemini powered off
- Started flashing tool, selected scatter file (following this guide)
- Chose “Firmware Upgrade” & “Download”
- Powered Gemini on
- Waited. First you get a fast red progress bar (partitioning?). Then you get two slow yellow progress bars (presumably installing each OS). In total the process took 35-45 minutes.
- Powered on Gemini into Android (my default). To get “proper” root I installed Magisk Manager from here.
Note I skipped backing up the NVRAM. You probably shouldn’t do that.
Then post-install I installed Linux Deploy from the play store, Arch Linux under that (into an ext4 partition on my SD card) & termux as a terminal into it.
If you have an issue with gpg verification of packages the instructions are slightly different to recover as the signing keys are different:
pacman-key --populate archlinuxarm
This is if you get errors like:
error: mutt: signature from "Arch Linux ARM Build System <email@example.com>" is unknown trust
:: File /var/cache/pacman/pkg/mutt-1.10.0-1-aarch64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
GrafX2 is a bitmap paint program inspired by the Amiga programs Deluxe Paint and Brilliance. Specialized in 256-color drawing, it includes a very large number of tools and effects that make it particularly suitable for pixel art, game graphics, and generally any detailed graphics painted with a mouse.
Modern versions of logwatch support journalctl logs, to enable this in Centos / RHEL 7 just install the FC27 RPM (dependencies are minimal) and configure like so.
This is for the console only (no graphical xwindows) version. Installs into /opt/emacs253 so can run side-by-side with system emacs.
- # Download emacs tarball & untar
- ./configure –prefix=/opt/emacs253 –with-gif=no –with-tiff=no –with-x-toolkit=no \
–with-xpm=no –with-jpeg=no –with-png=no
- # install any dependencies & build
make DESTDIR=/tmp/emacs install
- # Install fpm (gem install fpm) to build package
fpm -s dir -t rpm -C /tmp/emacs –name emacs25 –version 25.3 –iteration 1 –description “emacs 25.3”
- rm -rf /tmp/emacs
This Chrome extension allows you to create video files of web sessions (eg to show exploits, problems with sites, etc): https://repro-now.com/
It also stores the network traffic in the mkv file.
Was jealous that monodraw is only available for mac but jave is cross-platform (java) and pretty good.
Also a mention for the related tool ditaa which is also very cool.
https://extensions.gnome.org/extension/1319/gsconnect/ is a fantastic implementation of kdeconnect which allows you interface with your android phone from your linux desktop.
I had some issues configuring it on Fedora as I was previously using kdeconnectd so gsconnect defaulted to the next available port (1717).
To resolve this I removed kdeconnectd (yum remove), uninstalled gsconnect (rm -rf ~/.firstname.lastname@example.org), wiped the prefs (dconf reset -f /org/gnome/shell/extensions/gsconnect/) and then reinstalled gsconnect.
Test it’s listening on 1716:
lsof -Pi | grep 171
And sync with kdeconnect android app.
(Also ensure your linux machine isn’t firewalling the ports).