Substack https://aljamal.substack.com/p/homoiconic-python
atom=lambda x:not isinstance(x,list)
eq=lambda x,y:x == y
car=lambda x:x[0]
cdr=lambda x:x[1:]| sudo apt install fscrypt libpam-fscrypt | |
| # encrypt only filesytem with /home (it may be in '/' filesystem) | |
| FileSystem=$(grep -E ' (/home|/) ' /proc/mounts | grep -o '^[^ ]*') | |
| getconf PAGE_SIZE # 4096 | |
| # TODO check Ext2/Ext3 (FSFS, UBIFS ??) | |
| sudo tune2fs -l $FileSystem | grep 'Block size' | |
| sudo tune2fs -O encrypt $FileSystem | |
| sudo fscrypt setup | |
| sudo pam-auth-update |
| apt-cache policy systemd-homed | |
| # systemd-homed: Candidate: 255.4-1ubuntu8.4 | |
| sudo apt install systemd-homed | |
| # The following NEW packages installed: systemd-homed systemd-userdbd | |
| sudo homectl --real-name=ZM \ | |
| --uid=60131 \ | |
| --kill-processes=false \ | |
| --member-of=docker,dip,lpadmin,plugdev,ops,sudo,users,wireshark \ |
Substack https://aljamal.substack.com/p/homoiconic-python
atom=lambda x:not isinstance(x,list)
eq=lambda x,y:x == y
car=lambda x:x[0]
cdr=lambda x:x[1:]We are turning off PATH, JAVA_HOME modifications so we can install multiple versions of Java, and set PATH as needed per-project. However
jps)winget install --interactive BellSoft.LibericaJDK.11
Interactively set this location C:\JDK\11, and turn off PATH, JAVA_HOME, and Jar assotiation
| # this is /etc/default/tomcat-shsha | |
| TOMCAT=/srv/tomcat | |
| JAVA_OPTS=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \ | |
| -Djdk.tls.ephemeralDHKeySize=2048 \ | |
| -Djava.protocol.handler.pkgs=org.apache.catalina.webresources \ | |
| -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 \ | |
| -Dhazelcast.logging.type=log4j2 \ | |
| --add-modules java.se \ | |
| --add-exports java.base/jdk.internal.ref=ALL-UNNAMED \ |
ZFS on Debian w/o systemd?
ZFS Ubuntu 18.04
https://github.com/zbm-dev/zfsbootmenu/wiki/Void-Linux----Single-disk-syslinux-MBR
https://didrocks.fr/2020/06/16/zfs-focus-on-ubuntu-20.04-lts-zsys-dataset-layout/
? https://www.alibabacloud.com/blog/use-your-storage-space-more-effectively-with-zfs-exploring-datasets_594180
https://www.reddit.com/r/zfs/comments/mj4nfa/ubuntu_server_2104_native_encrypted_root_on_zfs/
https://gitlab.com/Sithuk/ubuntu-server-zfsbootmenu
| property.level = info | |
| property.path = logs | |
| property.filename = shsha | |
| property.layout_pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{-10}:%L - %m%n | |
| property.console_pattern = %d{HH:mm:ss} %-5p %c{-10}:%L - %m%n | |
| appender.console.type = Console | |
| appender.console.name = STDOUT | |
| appender.console.layout.type = PatternLayout | |
| appender.console.layout.pattern = ${console_pattern} |
| # docker-compose.yml, v3.5 allows defining networks right here | |
| version: "3.5" | |
| services: | |
| mssql: | |
| image: mcr.microsoft.com/mssql/server:2019-latest | |
| container_name: mssql | |
| volumes: | |
| - mssql-data:/var/opt/mssql | |
| networks: |
| [Desktop Entry] | |
| Version=1.0 | |
| Type=Application | |
| Name=NetBeans | |
| Icon=/home/mz0/t/nb12.2/netbeans/nb/netbeans.png | |
| Exec=/home/mz0/t/nb12.2/netbeans/bin/netbeans | |
| Comment=Apache NetBeans IDE 12.2 | |
| Categories=Development;IDE; | |
| Terminal=false | |
| StartupWMClass=Apache NetBeans IDE 12.2 |
| CREATE TABLE upMsg ( | |
| id int, | |
| msg varchar(31) | |
| ); | |
| insert into upMsg values (1, "Foo"); | |
| insert into upMsg values (2, "Bar"); | |
| CREATE TABLE dnMsg ( | |
| ni int not null auto_increment primary key, | |
| id int not null, |