Skip to content

Instantly share code, notes, and snippets.

View jamescarlos's full-sized avatar

James Carlos jamescarlos

View GitHub Profile
@dandmrantalsllc
dandmrantalsllc / frigate_notification.yaml
Last active November 9, 2021 18:09 — forked from jhallenb/frigate_notification.yaml
Frigate Notification Blueprint
blueprint:
name: Frigate Notification With App button
description: |
---------------------------------------------------------------------------------------------------------------------------
## This is a fork of Frigate Mobile App Notification found here
https://gist.github.com/hunterjm/23c1588a9f2b8b9c2a62ffc364e17f8c
All credits to the initial author
---------------------------------------------------------------------------------------------------------------------------
## Changes made
Added a condition entity that must be on for the notification to execute. Can be a binary_sensor or an input_boolean for example.
@rudotriton
rudotriton / scriptable-calendar-widget.md
Last active August 31, 2024 01:29
Customizable iOS Calendar widget in Scriptable

Scriptable Calendar Widget

scriptable calendar

For ease of maintainability this project has moved from this gist to its own repository. You can go and visit it there.

@swyxio
swyxio / Tailwindcssunreset.scss
Last active February 14, 2024 01:19
Tailwind CSS Un-Reset - un-reset Tailwind's Preflight CSS Reset so that autogenerated HTML looks consistent with the rest of your Tailwind site. - https://www.swyx.io/writing/tailwind-unreset
.unreset {
a {
@apply text-blue-700 underline;
}
p {
@apply my-4;
}
blockquote,
figure {
@nfsarmento
nfsarmento / nginx-wordpress.conf
Last active November 5, 2024 05:23
Harden wordpress security nginx
############ WordPress ####################
# Disable logging for favicon and robots.txt
location = /favicon.ico {
try_files /favicon.ico @empty;
access_log off;
log_not_found off;
expires max;
}
@IanColdwater
IanColdwater / twittermute.txt
Last active October 13, 2024 04:40
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@lizthegrey
lizthegrey / attributes.rb
Last active September 24, 2024 14:33
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active November 4, 2024 07:33
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@swalkinshaw
swalkinshaw / tutorial.md
Last active November 13, 2023 08:40
Designing a GraphQL API
@seanhandley
seanhandley / docker-compose.yml
Last active October 22, 2024 06:00
How To Set Up Docker For Mac (Mojave) with Native NFS
version: '2'
services:
api:
volumes:
- "nfsmount:${CONTAINER_DIR}"
volumes:
nfsmount:
driver: local
driver_opts:
@mpijierro
mpijierro / download_csv.php
Last active October 28, 2024 06:45
Example streaming large CSV files with Laravel and thousands of queries
<?php
namespace Src\Csv;
use Illuminate\Http\Response;
use Symfony\Component\HttpFoundation\StreamedResponse;
/**
* Class DownloadLargeCsv
*