Skip to content

Instantly share code, notes, and snippets.

View RoccoHoward's full-sized avatar
🏠
Home Office

Rocco Howard RoccoHoward

🏠
Home Office
View GitHub Profile
@RoccoHoward
RoccoHoward / tailwind-loading-screen.html
Created August 2, 2019 01:16
TailwindCSS full screen loading page
<div id="loading-screen" class="hidden w-full h-full fixed block top-0 left-0 bg-white opacity-75 z-50">
<span class="text-green-500 opacity-75 top-1/2 my-0 mx-auto block relative w-0 h-0">
<i class="fas fa-circle-notch fa-spin fa-5x"></i>
</span>
</div>
@RoccoHoward
RoccoHoward / supervisord.conf
Last active September 30, 2019 03:22
/etc/supervisor/supervisord.conf
; supervisor config file
[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
@RoccoHoward
RoccoHoward / supervisord.service
Last active July 24, 2019 07:23
/lib/systemd/system/supervisord
[Unit]
Description=Supervisor daemon
Documentation=http://supervisord.org
After=network.target
[Service]
ExecStart=/usr/local/bin/supervisord -n -c /etc/supervisor/supervisord.conf
ExecStop=/usr/local/bin/supervisorctl $OPTIONS shutdown
ExecReload=/usr/local/bin/supervisorctl $OPTIONS reload
KillMode=process
@RoccoHoward
RoccoHoward / gist:dfbc25056560f4ef4625a61718ebe84c
Created February 11, 2019 13:51
The repository 'http://dl.yarnpkg.com/debian stable Release' is no longer signed.
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
@RoccoHoward
RoccoHoward / nginx-php.conf
Last active February 17, 2019 12:13
NGINX PHP FPM Conf (socket)
##
# PHP-FPM
##
upstream php {
server unix:/run/php/php7.3-fpm.sock;
}
@RoccoHoward
RoccoHoward / awslogs.service
Created August 1, 2018 11:02
awslogs.service
[Unit]
Description=The CloudWatch Logs agent
After=rc-local.service
[Service]
Type=simple
Restart=always
KillMode=process
TimeoutSec=infinity
PIDFile=/var/awslogs/state/awslogs.pid
@RoccoHoward
RoccoHoward / standard.conf
Last active April 9, 2018 01:09
Ubuntu 16.04 Standard Cloud Watch
[/var/log/mail.log]
datetime_format = %b %d %H:%M:%S
file = /var/log/mail.log
buffer_duration = 5000
log_stream_name = {hostname}
initial_position = start_of_file
log_group_name = /var/log/mail.log
[/var/log/auth.log]
datetime_format = %b %d %H:%M:%S
file = /var/log/auth.log
@RoccoHoward
RoccoHoward / nginx-php.conf
Last active August 15, 2018 12:36
NGINX PHP FPM Conf (tcp)
##
# PHP-FPM
##
upstream php {
server 127.0.0.1:7777;
}
@RoccoHoward
RoccoHoward / .ackrc
Created December 13, 2017 12:19
.ackrc
--ignore-ack-defaults
# This is the default ackrc for ack version 2.14.
# There are four different ways to match
#
# is: Match the filename exactly
#
# ext: Match the extension of the filename exactly
#
# match: Match the filename against a Perl regular expression
@RoccoHoward
RoccoHoward / phpmyadmin.conf
Last active December 5, 2017 03:23
nginx-phpmyadmin-conf
server {
listen 80;
server_name db;
root /usr/share/phpmyadmin;
index index.php;
access_log off;
error_log /var/log/nginx/db.error.log error;
error_log /var/log/nginx/db.debug.log debug;