Skip to content

Instantly share code, notes, and snippets.

@adnan360
adnan360 / hexotest.WordPress.2020-07-29.xml
Created Jul 29, 2020
Test if adding subcategory adds parent category
View hexotest.WordPress.2020-07-29.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
@adnan360
adnan360 / hexotest.WordPress.2020-07-26.xml
Created Jul 26, 2020
WP export with added (sub)categories and tags on "Post with Image"
View hexotest.WordPress.2020-07-26.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
@adnan360
adnan360 / hexotest.WordPress.2020-07-24.xml
Created Jul 24, 2020
WP export example with block quotes, inline code and code blocks in both modern/Gutenberg and classic editor
View hexotest.WordPress.2020-07-24.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
@adnan360
adnan360 / hexotest.WordPress.2020-07-04.xml
Created Jul 21, 2020
WordPress export for testing hexo-migrator-wordpress (2020-07-04)
View hexotest.WordPress.2020-07-04.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
@adnan360
adnan360 / ibus-cli.md
Last active Jun 10, 2020
Control ibus layouts right from Linux terminal
View ibus-cli.md

Control ibus layouts right from Linux terminal

Ibus is an input tool that allows to type in many languages and keyboard layouts under GNU/Linux. Being able to control ibus layouts is extremely helpful on minimal desktop environments and window managers, like i3, sway etc. You can utilize the learnings of this on Waybar, Polybar etc.

First run the ibus daemon (if not already running):

ibus-daemon -xdr
@adnan360
adnan360 / install-linux-libre-on-fedora.md
Created Aug 19, 2019
How I installed Linux Libre kernel on Fedora 30
View install-linux-libre-on-fedora.md

How to install Linux Libre in Fedora

Fedora has the Linux kernel. This instruction is to install Linux Libre kernel which is a version of the Linux kernel with closed source binary blobs removed. This results in a Free-er system which respects your 4 essential freedoms. On Fedora, the linux libre kernel has the name "Freed-ora freedom".

I tried this on a Fedora 30 install.

WARNING: Although this gives you a libre kernel, it is possible that all components of your hardware does not work without binary blobs (e.g. wifi card, bluetooth). In that case those components will not work after installation. Please do not apply this on a production install before testing thoroughly and for prolonged period of time on a test install. Use these instructions at your own risk. Backing up is also recommended.

sudo -s
@adnan360
adnan360 / run-reactos-qemu.sh
Last active Aug 13, 2019
Bash file to run React OS with QEMU
View run-reactos-qemu.sh
#!/bin/bash
# Bash file to run React OS with QEMU
# ----
# This is an experimental command.
# Some things might not work. e.g. audio
# Install qemu, qemu-kvm or libvirt.
# Save this somewhere, download React OS boot ISO, prepare image:
# qemu-img create ReactOS.img 5G
# and run with `bash /path/to/run-reactos-qemu.sh`
@adnan360
adnan360 / LBRY-on-void-linux.md
Last active Apr 10, 2020
How to build and install lbry-desktop on Void Linux
View LBRY-on-void-linux.md

How to build and install lbry-desktop on Void Linux

sudo xbps-install -Sy nodejs yarn-bin GConf gnome-keyring binutils tar xz

# Change the version number according to latest one from: https://github.com/lbryio/lbry-desktop/releases
curl -OL https://github.com/lbryio/lbry-desktop/archive/v0.34.1.tar.gz
tar -xvf v0.34.1.tar.gz

cd lbry-desktop-0.34.1
@adnan360
adnan360 / run-weston-on-trisquel.md
Created Jul 19, 2019
Instructions to run Weston (Wayland) session on Trisquel
View run-weston-on-trisquel.md

Run Weston under Trisquel

Running Weston under Trisquel GNU/Linux is very easy.

Open a terminal and run:

sudo apt install weston

Then preferrably logout.

@adnan360
adnan360 / install-weston-void-linux.md
Last active Jul 16, 2019
Basic Guide on how to install and use Weston (Wayland) on Void Linux (without SystemD)
View install-weston-void-linux.md

How to Install and Use Weston (Wayland) on Void Linux (without SystemD)

sudo xbps-install weston
sudo usermod -a -G weston-launch `whoami`

Reboot to update the group assignment.

Now we can prepare the config. Let's create the file:

You can’t perform that action at this time.