{"id":24434054,"url":"https://github.com/itspriddle/howdo.priddle.xyz","last_synced_at":"2026-01-08T14:04:48.295Z","repository":{"id":46940547,"uuid":"408638011","full_name":"itspriddle/howdo.priddle.xyz","owner":"itspriddle","description":"How do? Here's how.","archived":false,"fork":false,"pushed_at":"2021-10-02T18:46:34.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-20T16:54:30.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://howdo.priddle.xyz/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itspriddle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-09-21T00:10:24.000Z","updated_at":"2021-10-02T18:46:37.000Z","dependencies_parsed_at":"2022-09-23T09:51:46.954Z","dependency_job_id":null,"html_url":"https://github.com/itspriddle/howdo.priddle.xyz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itspriddle%2Fhowdo.priddle.xyz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itspriddle%2Fhowdo.priddle.xyz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itspriddle%2Fhowdo.priddle.xyz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itspriddle%2Fhowdo.priddle.xyz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itspriddle","download_url":"https://codeload.github.com/itspriddle/howdo.priddle.xyz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246249217,"owners_count":20747168,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-20T16:53:21.499Z","updated_at":"2026-01-08T14:04:48.200Z","avatar_url":"https://github.com/itspriddle.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How Do?\n\nHow Do? Here's how.\n\n## Stuff\n\n\u003c!-- // START POSTS - autogenerated content, do not manually update! --\u003e\n\n### 2021-10-02 -- Mount a USB Drive on Linux\n\nNeed to mount a USB drive on Linux?\n\nFirst, plug the drive in. Use `sudo fdisk -l` to view disks attached to the\nsystem. Look for an entry corresponding to the disk you've just inserted:\n\n```\nDisk /dev/sda: 119.5 GiB, 128320801792 bytes, 250626566 sectors\nDisk model: Flash Drive FIT\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical/physical): 512 bytes / 512 bytes\nI/O size (minimum/optimal): 512 bytes / 512 bytes\nDisklabel type: gpt\nDisk identifier: 4FD2D271-36AF-B847-916F-03EABE1BF0CF\n\nDevice     Start       End   Sectors   Size Type\n/dev/sda1   2048 250626532 250624485 119.5G Linux filesystem\n```\n\nWe want the Device here, which is `/dev/sda1`.\n\nNext, we must prepare a mount point for the disk. Let's assume this disk will\nbe known as `/mnt/usb-drive`:\n\n```\nsudo mkdir /mnt/usb-drive\n```\n\nNow we are ready to mount the drive:\n\n```\nsudo mount /dev/sda1 /mnt/usb-drive\n```\n\nTry accessing the drive:\n\n```\ncd /mnt/usb-drive\nls\n```\n\nYay! Can we write?\n\n```\ncd /mnt/usb-drive\ntouch asdf\ntouch: cannot touch '/mnt/usb-drive/asdf': Permission denied\n```\n\nOh no! This is happening because the mount directory is owned by root. Change\nit to your current user with:\n\n```\nsudo chown $USER:$USER /mnt/usb-drive\n```\n\nLet's try again:\n\n```\ncd /mnt/usb-drive\ntouch asdf\nls asdf\n```\n\nYay!\n\n### 2021-10-01 -- Generating a Simple Calendar\n\nNeed to generate a simple calendar for a specific month or year? The `cal`\ncommand does just that.\n\nShow this month:\n\n```\n% cal\n    October 2021\nSu Mo Tu We Th Fr Sa\n                1  2\n 3  4  5  6  7  8  9\n10 11 12 13 14 15 16\n17 18 19 20 21 22 23\n24 25 26 27 28 29 30\n31\n```\n\nShow a specific year/month:\n\n```\n% cal 1 2021\n    January 2021\nSu Mo Tu We Th Fr Sa\n                1  2\n 3  4  5  6  7  8  9\n10 11 12 13 14 15 16\n17 18 19 20 21 22 23\n24 25 26 27 28 29 30\n31\n```\n\nShow a full year:\n\n```\n% cal 2021\n                            2021\n      January               February               March\nSu Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa\n                1  2      1  2  3  4  5  6      1  2  3  4  5  6\n 3  4  5  6  7  8  9   7  8  9 10 11 12 13   7  8  9 10 11 12 13\n10 11 12 13 14 15 16  14 15 16 17 18 19 20  14 15 16 17 18 19 20\n17 18 19 20 21 22 23  21 22 23 24 25 26 27  21 22 23 24 25 26 27\n24 25 26 27 28 29 30  28                    28 29 30 31\n31\n\n       April                  May                   June\nSu Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa\n             1  2  3                     1         1  2  3  4  5\n 4  5  6  7  8  9 10   2  3  4  5  6  7  8   6  7  8  9 10 11 12\n11 12 13 14 15 16 17   9 10 11 12 13 14 15  13 14 15 16 17 18 19\n18 19 20 21 22 23 24  16 17 18 19 20 21 22  20 21 22 23 24 25 26\n25 26 27 28 29 30     23 24 25 26 27 28 29  27 28 29 30\n                      30 31\n\n        July                 August              September\nSu Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa\n             1  2  3   1  2  3  4  5  6  7            1  2  3  4\n 4  5  6  7  8  9 10   8  9 10 11 12 13 14   5  6  7  8  9 10 11\n11 12 13 14 15 16 17  15 16 17 18 19 20 21  12 13 14 15 16 17 18\n18 19 20 21 22 23 24  22 23 24 25 26 27 28  19 20 21 22 23 24 25\n25 26 27 28 29 30 31  29 30 31              26 27 28 29 30\n\n\n      October               November              December\nSu Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa  Su Mo Tu We Th Fr Sa\n                1  2      1  2  3  4  5  6            1  2  3  4\n 3  4  5  6  7  8  9   7  8  9 10 11 12 13   5  6  7  8  9 10 11\n10 11 12 13 14 15 16  14 15 16 17 18 19 20  12 13 14 15 16 17 18\n17 18 19 20 21 22 23  21 22 23 24 25 26 27  19 20 21 22 23 24 25\n24 25 26 27 28 29 30  28 29 30              26 27 28 29 30 31\n31\n```\n\n### 2021-09-21 -- Viewing and killing MySQL queries\n\nMySQL running slow and want to see which queries are running? If you can get a\n`mysql\u003e` prompt, try `SHOW PROCESSLIST` or `SHOW FULL PROCESSLIST`.\n\nNeed to kill one of those queries? Note its `Id` value, and run\n`KILL(803952)`.\n\n### 2021-09-20 -- Reverting a Git Pull\n\nIf you ran a `git pull` and need to revert, you can use `git reflog` to find\nthe last revision you were on before you pulled:\n\n```\n~/work/some-project (master) % git reflog\nf7da659 HEAD@{0}: pull: Fast-forward\n...\n~/work/some-project (master) % git reflog\n87582cf HEAD@{0}: pull: Fast-forward\nf7da659 HEAD@{1}: pull: Fast-forward\n...\n```\n\n`HEAD@{0}` is the commit you just pulled, and `HEAD@{1}` is the commit that\nwas checked out before the pull. To revert to it:\n\n```\ngit checkout HEAD@{1}\n```\n\nSee `man git-reflog` for more info.\n\n### 2021-09-20 -- Hello!\n\nThis is my scrappy little microsite for sharing dev and tech knowledge.\n\n\u003c!-- // END POSTS --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitspriddle%2Fhowdo.priddle.xyz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitspriddle%2Fhowdo.priddle.xyz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitspriddle%2Fhowdo.priddle.xyz/lists"}