Skip to content

Instantly share code, notes, and snippets.

View lewis262626's full-sized avatar

Lewis lewis262626

View GitHub Profile
00:00:00.000 [INFO] [sway/main.c:295] Sway version 1.10-dev-5a7477cb (Mar 24 2024, branch 'master')
00:00:00.000 [INFO] [sway/main.c:296] wlroots version 0.18.0-dev
00:00:00.002 [INFO] [sway/main.c:81] Linux lewis-vm 6.8.1-2-aarch64-ARCH #1 SMP PREEMPT_DYNAMIC Wed Mar 20 09:56:17 MDT 2024 aarch64 GNU/Linux
00:00:00.002 [INFO] [sway/main.c:97] Contents of /etc/os-release:
00:00:00.002 [INFO] [sway/main.c:81] NAME="Arch Linux ARM"
00:00:00.002 [INFO] [sway/main.c:81] PRETTY_NAME="Arch Linux ARM"
00:00:00.002 [INFO] [sway/main.c:81] ID=archarm
00:00:00.002 [INFO] [sway/main.c:81] ID_LIKE=arch
00:00:00.002 [INFO] [sway/main.c:81] BUILD_ID=rolling
00:00:00.002 [INFO] [sway/main.c:81] ANSI_COLOR="38;2;23;147;209"
@lewis262626
lewis262626 / hardware_accel_vidtoolbox.c
Created September 7, 2023 21:22
Apple VideToolbox list supported hardware accelerated video encoders
#include <CoreFoundation/CoreFoundation.h>
#include <CoreMedia/CoreMedia.h>
#include <CoreVideo/CoreVideo.h>
#include <VideoToolbox/VideoToolbox.h>
#include <stdbool.h>
#include <stdio.h>
void printAvailableVideoEncoders();
int main(void) {
@lewis262626
lewis262626 / s3up.sh
Created April 1, 2018 01:55
s3cmd put script
#!/usr/bin/env bash
#Script to upload file(s) to an amazon s3 bucket with server side
# encryption and reduced redundancy storage to save money and
# use a private acl
if [ $# -ge 2 ]; then
s3cmd put $1 s3://$2 --server-side-encryption --reduced-redundancy --acl-private
else
echo "Not enough command line arguments detected"