Skip to content

Instantly share code, notes, and snippets.

@cranelab
cranelab / gist:940d76283414908b464074dba1aaa7af
Created February 2, 2022 18:19
all wp plugins with over 100+ active installations
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
@ArooBaito
ArooBaito / Chicken-Scheme.scm
Last active June 17, 2023 09:34
Solutions to common problems for setting up Chicken Scheme on Guix and Windows
;; 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/help-guix@gnu.org/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.
@phoe
phoe / package-local-nicknames.md
Last active May 9, 2024 08:01
Package-local nicknames in Common Lisp - a semishitpost about PLNs

Package-local nicknames in Common Lisp

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.

Story time

@nikhita
nikhita / fedora-firefox-gif-video.md
Created August 6, 2018 05:17
How to get Twitter gifs and short videos working on Firefox on Fedora

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.

  1. 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.

  2. 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
@mccabe615
mccabe615 / phpdangerousfuncs.md
Last active May 8, 2024 09:36
Dangerous PHP Functions

Command Execution

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
@priyadarshan
priyadarshan / cl-tcpip.lisp
Created April 29, 2018 10:08 — forked from shortsightedsid/cl-tcpip.lisp
Short guide to TCP/IP Client/Server programming in Common Lisp using usockets
; 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.
@seanjensengrey
seanjensengrey / rust-python-cffi.md
Last active April 3, 2024 11:55
Calling Rust from Python/PyPy using CFFI (C Foreign Function Interface)

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:

  • Reads C declarations (parses headers)
  • Works in both CPython and PyPy (included with PyPy)
  • Lower call overhead than ctypes
@spikebike
spikebike / client.go
Created March 29, 2012 01:13
TLS server and client
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)