Skip to content

Instantly share code, notes, and snippets.

@yusufhm
yusufhm / requirements.txt
Created January 16, 2024 08:19
Migrate Wallabag entries to Nextcloud bookmarks
requests
@yusufhm
yusufhm / message
Created April 3, 2023 04:07
signed message for keys.pub
BEGIN MESSAGE.
lKvHUyNxgsGdfax uVtOtl6uvD204gN IEvxV8rQFk38YHH 0kdJOnTrnyY9DW3
NwHFi2fp9lkfgA7 sY2DQQYjfj3TCKq 6Xr2MZHgg4izyZ4 ETcON0Q40PLebmO
aE8v6UEexRqTVLn jx8MzdrzPY0e05G HI9x8CxD6Ru0c9o Zj7Rlj9CfsqIPRJ
mOUD88TeK5ZfBl4 jgdTVnqUwjXRM2M qBpnG2IP.
END MESSAGE.
@yusufhm
yusufhm / .envrc
Last active September 28, 2022 05:47
podman setup
# Allows for builds using `docker-compose build`.
export COMPOSE_DOCKER_CLI_BUILD=0
@yusufhm
yusufhm / kube-commands.sh
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 --selector=lagoon.sh/jobType=build
# 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 -- https://google.com
@yusufhm
yusufhm / composer-local-directory-package.md
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
yusufhm / redis.sh
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
yusufhm / dev-tools.md
Last active April 19, 2021 02:27
Dev tools

Environment per project/directory

@yusufhm
yusufhm / anonymous_author.html
Last active January 15, 2021 04:30
drupal.org module descriptions
<h3>Overview</h3>
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.
<h3>Features</h3>
<ul>
<li>
Provides an Anonymous Author field type, containing the following values:
<ul>
<li>Name</li>
<li>Email</li>
@yusufhm
yusufhm / backup-bucket.json
Created May 20, 2020 04:44
s3 bucket policy for uploads
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListMultipartUploadParts"
],
"Resource": "arn:aws:s3:::*"
},

Keybase proof

I hereby claim:

  • I am yusufhm on github.
  • I am yusufhm (https://keybase.io/yusufhm) on keybase.
  • I have a public key ASApjd3pUzWFOGkOKWHV1Q34v6hxiWFba7sCKt1lBegO0wo

To claim this, I am signing this object: