Skip to content

Instantly share code, notes, and snippets.

View wcheek's full-sized avatar

Wesley Jon Cheek wcheek

  • Satake Japan
  • Hiroshima, Japan
  • 16:17 (UTC +09:00)
View GitHub Profile
@wcheek
wcheek / mount-s3-watchdog.sh
Last active April 9, 2025 04:20
mount-s3 on Amazon Linux 2 connection watchdog script
#!/bin/bash
#
# mount-s3-watchdog.sh
# Inspiration from https://github.com/s3fs-fuse/s3fs-fuse/issues/152
# Run from the root user's crontab to keep an eye on mount-s3 which should always
# be mounted.
#
# Note: If getting the amazon S3 credentials from environment variables
# these must be entered in the actual crontab file (otherwise use one
# of the s3fs other ways of getting credentials).
@wcheek
wcheek / CenterPanel.vue
Last active May 8, 2025 04:56
PrimeVue ChatApp ShowCase Options API to Composition API Conversion
<template>
<div class="w-8/12 xl:w-6/12 border-x border-surface flex flex-col">
<div class="flex items-center p-4 gap-7 border-b border-surface">
<div class="flex items-center">
<Avatar
image="https://www.primefaces.org/cdn/primevue/images/landing/apps/avatar-primetek.png"
class="mr-2 av"
size="large"
shape="circle"
/>