Skip to content

Instantly share code, notes, and snippets.

yusufhm / requirements.txt
Created January 16, 2024 08:19
Migrate Wallabag entries to Nextcloud bookmarks
yusufhm / message
Created April 3, 2023 04:07
signed message for
lKvHUyNxgsGdfax uVtOtl6uvD204gN IEvxV8rQFk38YHH 0kdJOnTrnyY9DW3
NwHFi2fp9lkfgA7 sY2DQQYjfj3TCKq 6Xr2MZHgg4izyZ4 ETcON0Q40PLebmO
aE8v6UEexRqTVLn jx8MzdrzPY0e05G HI9x8CxD6Ru0c9o Zj7Rlj9CfsqIPRJ
mOUD88TeK5ZfBl4 jgdTVnqUwjXRM2M qBpnG2IP.
yusufhm / .envrc
Last active September 28, 2022 05:47
podman setup
# Allows for builds using `docker-compose build`.
yusufhm /
Last active November 9, 2022 05:22
kube commands - kubernetes | kubectl | lagoon
# Tail logs of running build of a Lagoon project's environment.
kubectl -n env-ns logs -f
# Run a busybox image.
kubectl run -i -t busybox --image=busybox --restart=Never
# Run a curl image.
kubectl run curl --image=curlimages/curl --restart=Never --
yusufhm /
Created March 28, 2022 06:48
composer use local directory

Add the following snippet to ~/.composer/config.json:

  "repositories": [
            "type": "path",
            "url": "/path/to/package",
            "options": {
                "versions": {
 "owner/repo": "3.1.10"
yusufhm /
Last active March 1, 2022 06:14
redis commands
# Get info.
redis-cli INFO
# DB size.
redis-cli DBSIZE
# Get real-time stats.
redis-cli --stat
# Monitor.
yusufhm /
Last active April 19, 2021 02:27
Dev tools

Environment per project/directory

yusufhm / anonymous_author.html
Last active January 15, 2021 04:30 module descriptions
Easily allow anonymous users to post content to your website by adding this field to any entity type. The most typical use-case of this module and the reason why it was initially created is for allowing the creation of forums by unauthenticated users, while requesting their name and email address, and whether they'd like to get notified.
Provides an Anonymous Author field type, containing the following values:
yusufhm / backup-bucket.json
Created May 20, 2020 04:44
s3 bucket policy for uploads
"Version": "2012-10-17",
"Statement": [
"Effect": "Allow",
"Action": [
"Resource": "arn:aws:s3:::*"

Keybase proof

I hereby claim:

  • I am yusufhm on github.
  • I am yusufhm ( on keybase.
  • I have a public key ASApjd3pUzWFOGkOKWHV1Q34v6hxiWFba7sCKt1lBegO0wo

To claim this, I am signing this object: