Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Shhh...

Ryan Sechrest ryansechrest

:octocat:
Shhh...
View GitHub Profile
@ryansechrest
ryansechrest / FleishmanHillard.terminal
Last active Aug 7, 2022
FleishmanHillard Terminal Theme
View FleishmanHillard.terminal
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO
U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAnMC4zNjg2Mjc0NTg4IDAuNDE1Njg2MzA5
MyAwLjQ0MzEzNzI4ODEAEAKAAtIUFRYXWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xv
@ryansechrest
ryansechrest / ssh.md
Last active Sep 1, 2022
Create SSH Key
View ssh.md

Create SSH Key

1a. Use ed25519 algorithm

ssh-keygen -t ed25519 -C "your_email@example.com"

1b. Use rsa algorithm

@ryansechrest
ryansechrest / git-shortcuts.md
Last active Aug 7, 2022
Oh My Zsh - Git Shortcuts
View git-shortcuts.md
Alias Command Description
ga <file> git add Add file to index
gaa git add --all Add all files to index
gcm git checkout master Checkout master branch
gcd git checkout develop Checkout develop branch
gc git commit --verbose Commit and review changes
gc! git commit --verbose --amend Amend last commit
gcam <message> git commit --all --message Commit all files w/ message
gd git diff See file differences
@ryansechrest
ryansechrest / twitch.css
Last active Sep 12, 2022
LimeChat Theme
View twitch.css
/**
* Blue: #4b92db
* Light Grey: #8e908f
* Light Blue: #aacae6
* Dark Grey: #5e6a71
* Dark Blue: #165788
* Orange: #eeaf00
* Red: #dc5034
* Green: #a2ad00
* Aqua: #00c6d7
@ryansechrest
ryansechrest / post-receive-laravel.php
Last active Nov 14, 2019
Git post-receive hook to deploy a Laravel application.
View post-receive-laravel.php
#!/bin/bash
# Created on 7/17/13 by Ryan Sechrest
# Deploys pushed branch from the origin repository to the web directory
if [[ (-n $1) && (-n $2) && (-n $3) ]]; then
# Set path to project directory
project_path="/var/www/domains/$2/$3"
@ryansechrest
ryansechrest / states.php
Last active May 29, 2018
PHP Arrays of U.S. States
View states.php
# State Abbr => State Name; Vertical Format
[
'AL' => 'Alabama',
'AK' => 'Alaska',
'AZ' => 'Arizona',
'AR' => 'Arkansas',
'CA' => 'California',
'CO' => 'Colorado',
'CT' => 'Connecticut',
@ryansechrest
ryansechrest / default.conf
Last active Sep 12, 2022
SSL Certificate Setup in Virtual Host
View default.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
Include vhosts.d/includes/domain.com.conf
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0
SSLCertificateChainFile /var/www/ssl/certificate-authority-default.crt
SSLCertificateFile /var/www/ssl/star.domain.com.crt
SSLCertificateKeyFile /var/www/ssl/star.domain.com.key
@ryansechrest
ryansechrest / hello.py
Last active Oct 14, 2017
Create a Python command-line tool.
View hello.py
import click
@click.command()
def cli():
"""Example script."""
click.echo('Hello World!')
@ryansechrest
ryansechrest / programs.md
Last active Aug 29, 2015
Useful programs for CentOS 7.
View programs.md

Programs

firewall-cmd

firewalld command line client

View firewall state
firewall-cmd --state