Warning: this is a rant.
Warning: you have been warned.
Note: actually worthwhile content starts in the second subsection. You are free to skip the first one.
5,000,000+ : wpforms-lite | |
5,000,000+ : wordpress-seo | |
5,000,000+ : woocommerce | |
5,000,000+ : really-simple-ssl | |
5,000,000+ : jetpack | |
5,000,000+ : elementor | |
5,000,000+ : contact-form-7 | |
5,000,000+ : classic-editor | |
5,000,000+ : akismet | |
4,000,000+ : wordpress-importer |
;; GUIX WSL | |
;; When chicken-installing an egg: "error: linux/errno.h - No such file or directory" | |
;; Solution: 'guix install glibc' then restart the system. | |
;; Source: https://www.mail-archive.com/[email protected]/msg11969.html | |
;; If running Guix via WSL, restart the system by doing | |
;; 'wsl -d guix --shutdown', then re-run your guix-init.sh with | |
;; wsl.exe -d guix /bin/busybox sh -c "/mnt/c/sys/misc/guix-init.sh" | |
;; See https://gist.github.com/vldn-dev/de379bf81a80ff0a53cd851bcc3bbff2 for installing Guix on WSL. |
How to get Twitter gifs and short videos working on Firefox on Fedora
Note: This is for Fedora 28, however the process should be similar for other recent Fedora versions as well.
Go to https://www.youtube.com/html5 and check if all boxes are checked. If gifs or short videos don't work for you, you mostly do not have H.264
and MSE & H.264
.
There are a bunch of repositories you need to setup.
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
;; {}: Map literal like Clojure | |
;; Note: | |
;; 1. Equality operator is #'eql. | |
;; 2. {} is a literal here though it is a constructor in Clojure: | |
;; Clojure: | |
;; (:b {:a 1 :b (+ 1 2)}) => 3 | |
;; CL: | |
;; (gethash :b {:a 1 :b (+ 1 2)}) => (+ 1 2) |
exec - Returns last line of commands output
passthru - Passes commands output directly to the browser
system - Passes commands output directly to the browser and returns last line
shell_exec - Returns commands output
\`\` (backticks) - Same as shell_exec()
popen - Opens read or write pipe to process of a command
proc_open - Similar to popen() but greater degree of control
pcntl_exec - Executes a program
; Short guide to TCP/IP Client/Server programming in Common Lisp using usockets | |
; | |
; The main reason for this guide is because there are very few examples that | |
; explain how to get started with socket programming with Common Lisp that I | |
; could understand. After spending a day trying, I finally came up with a small | |
; bit of code that makes it easy to understand the basics. I've written this | |
; primarily for myself, but should help others get started as well. | |
; As usual, we will use quicklisp to load usocket. |
This is a small demo of how to create a library in Rust and call it from Python (both CPython and PyPy) using the CFFI instead of ctypes
.
Based on http://harkablog.com/calling-rust-from-c-and-python.html (dead) which used ctypes
CFFI is nice because:
ctypes
package main | |
import ( | |
"crypto/tls" | |
"crypto/x509" | |
"fmt" | |
"io" | |
"log" | |
) |