Skip to content

Instantly share code, notes, and snippets.

View valetarton's full-sized avatar

Zachariah Cavazos valetarton

  • Vale Tarton Designs
  • Virtual Location PA
View GitHub Profile
@latesr
latesr / replication.ts
Last active November 30, 2021 16:24
AWS cdk for V1 ReplicatingBucket and ReplicaBucket supporting replication of 'soft-delete' and cross account configuration
//References:
//For permissions required for replication:
// https://docs.aws.amazon.com/AmazonS3/latest/dev/setting-repl-config-perm-overview.html
//To understand delete propagation and the differences between V1 and V2 replication:
// https://aws.amazon.com/blogs/storage/managing-delete-marker-replication-in-amazon-s3/
//
//Summary:
//This exposes:
// 1) Two classes that extend s3.Bucket (ReplicatingBucket and ReplicaBucket)
// 2) Two interfaces that extends s3.BucketProps (ReplicatingBucketProps and ReplicaBucketProps)
@skwirrel
skwirrel / README.md
Last active May 20, 2024 09:46
Javascript Console Hack for Getting NonVerbal Communication In a Zoom Meeting

Getting A Summary of Nonverbal Communication In a Zoom Meeting

For the background to this gist see here: https://devforum.zoom.us/t/getting-meeting-participants-with-raised-hand/10718/9

Here is the solution I had to resort to for getting a list of nonverbal communication from a Zoom meeting.

I have a meeting with 100’s of participants and we wanted to run a simple impromptu “show of hands” poll without using the specific polling feature. All I needed was a list of all the attendees with their hand raised at a certain point in time…

@seanfrischmann
seanfrischmann / logs.sh
Created August 1, 2018 18:31
Tail your logs with color
#!/bin/bash
tail -F /path/to/logs/*.log | awk '
/INFO/ {print "\033[32m" $0 "\033[39m"}
/DEBUG/ {print "\033[34m" $0 "\033[39m"}
/ERROR/ {print "\033[31m" $0 "\033[39m"}
$0 !~ /INFO|ERROR|DEBUG/ {print $0}
'
@mbijon
mbijon / posts_search_demo.php
Created February 18, 2013 18:48
WordPress posts_search filter example, for Tom Barrett on WP-Hackers list 2013-02-18
function tcb_filter_search( $term ) {
if ( is_search() )
$search = "(($wpdb->posts.post_title LIKE '%{$term}%') OR ($wpdb->posts.post_content LIKE '%{$term}%'))";
return $search;
}
add_filter( 'posts_search', 'tcb_filter_search', null, 2 );