This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # sudo podman build --tag localhost/bazzite-gnome-macbook . | |
| # First: sudo bootc switch --transport=containers-storage localhost/bazzite-gnome-macbook | |
| # Then: sudo bootc upgrade | |
| FROM ghcr.io/ublue-os/bazzite-gnome:43.20260217 as base | |
| ARG KVER=6.17.7-ba25.fc43.x86_64 | |
| ARG WIFI_MAC=xx:xx:xx:xx:xx:xx | |
| ARG WIFI_CCODE=XX | |
| FROM base AS spi_build | |
| RUN git clone https://github.com/jimmykuo/macbook12-spi-driver /tmp/macbook12-spi-driver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Synology DSM 7.2 introduced Full-Volume Encryption. | |
| Encryption Key Vault can by stored locally or on a remote Synology NAS (KMIP server). | |
| Local Encryption Key Vault is protected with a password, but it doesn't protect against | |
| loss of an entire NAS device (by design, see [1]), because encrypted volumes are | |
| automatically unlocked on boot. See [2] for a way to access an encrypted volume. | |
| I don't know why Synology doesn't offer to store the Encryption Key Vault on USB drive | |
| as it does with Key Manager/Key Store used by encrypted shared folders. | |
| Anyway, DSM 7.2 does support Encryption Key Vault on USB drive, it's just not exposed | |
| to the user. Maybe it's not yet ready for prime time? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In console: | |
| root# passwd -d user | |
| In console: | |
| login: user | |
| user$ sudo whoami | |
| root | |
| user$ tmux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create container with key authentication | |
| sudo lxc-create -t ubuntu -n test -- -S /root/.ssh/id_rsa.pub | |
| sudo lxc-start -n test -d | |
| sudo lxc-wait -n test -s RUNNING | |
| # enable passwordless sudo for ubuntu user | |
| chroot /var/lib/lxc/test/rootfs sh -c "echo 'ubuntu ALL=NOPASSWD:ALL' > /etc/sudoers.d/ubuntu; chmod 440 /etc/sudoers.d/ubuntu" | |
| # now you can run commands in container, example: install avahi-daemon | |
| ssh `cat /var/lib/misc/dnsmasq.leases | grep --word-regexp test | awk '{print $3}'` -l ubuntu -o "StrictHostKeyChecking no" sudo apt-get install -y avahi-daemon |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1) install npm packages | |
| 2) update brunch-config.js | |
| 3) remove Bootstrap from web/static/css/app.css | |
| 4) rename web/static/css/app.css to web/static/css/app.scss | |
| 5) update web/static/css/app.scss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <root> | |
| <item> | |
| <name>Steam Controller fixes</name> | |
| <item> | |
| <name>Volume Up [from F17]</name> | |
| <identifier>private.steam_controller.change_f17_to_volume_up</identifier> | |
| <device_only>DeviceVendor::RawValue::0x28de, DeviceProduct::RawValue::0x1147</device_only> | |
| <autogen>__KeyToKey__ KeyCode::F17, ConsumerKeyCode::VOLUME_UP</autogen> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Export | |
| def perform | |
| @contacts = Contact.where('id > ?', 272) | |
| @organizations = Account.where('id > ?', 261) | |
| @single_address_field = Setting.single_address_field | |
| unless @contacts.blank? | |
| require 'csv' | |
| csv_string = CSV.generate(force_quotes: true, row_sep: "\r\n") do |csv| | |
| csv << ['Name' , 'First name', 'Last name', 'Company', 'Title', 'Background', 'LinkedIn URL', 'Address - Work Street', 'Address - Work City', 'Address - Work State', 'Address - Work Zip', 'Address - Work Country', 'Address - Home Street', 'Address - Home City', 'Address - Home State', 'Address - Home Zip', 'Address - Home Country', 'Address - Other Street', 'Address - Other City', 'Address - Other State', 'Address - Other Zip', 'Address - Other Country', 'Phone number - Work', 'Phone number - Mobile', 'Phone number - Fax', 'Phone number - Pager', 'Phone number - Home', 'Phone number - Skype', 'Phone number - Other', 'Email address - Work', 'Email address - Home', 'Email address - Other', 'Web address |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| Vagrant::Config.run do |config| | |
| config.vm.customize ["modifyvm", :id, "--cpus", 2] | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ./Vagrantfile | |
| Vagrant::Config.run do |config| | |
| # (...) | |
| config.vm.provision :puppet | |
| # (...) | |
| end | |
| # ./manifests/default.pp | |
| include lucid | |
| class lucid { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vagrant@ubuntu:~$ curl --head github.com | |
| curl: (6) Could not resolve host: github.com | |
| vagrant@ubuntu:~$ curl --head --ipv4 github.com | |
| HTTP/1.1 301 Moved Permanently | |
| (...) | |
| vagrant@ubuntu:~$ sudo sysctl -p | |
| net.ipv6.conf.all.disable_ipv6 = 1 | |
| net.ipv6.conf.default.disable_ipv6 = 1 | |
| net.ipv6.conf.lo.disable_ipv6 = 1 | |
| vagrant@ubuntu:~$ ip addr |
NewerOlder