Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Curtis Belt CurtisBelt

🎯
Focusing
Block or report user

Report or block CurtisBelt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@CurtisBelt
CurtisBelt / AppFlex.js
Last active Sep 7, 2019
Sample Vue Components
View AppFlex.js
/*
The full project features a page builder on the backend, with various "Flexible Components"
the user can select from to build their page. Each of these corresponds to a Vue compoennt
on the frontend.
There are two ways to use the component:
- Manually use a specific Flex component
- Automatically load all Flex components (when used on page that supports it)
@CurtisBelt
CurtisBelt / headlessWordPress.conf
Last active Jun 19, 2018
Node.js/PHP NGINX Config for Headless WordPress
View headlessWordPress.conf
server {
server_name climb.localhost *.climb.localhost;
root /home/curtis/Wordpress;
listen 80;
listen [::]:80;
# Catch all php files first
@CurtisBelt
CurtisBelt / compress-all-images.sh
Last active Feb 23, 2018
Bulk Compress JPG/PNG
View compress-all-images.sh
#!/bin/bash
# Setup variable extra_args with -newer argument if our tracking file exists
# Find all files with extension jpg/jpeg/png, case insensitive
# For jpg/jpeg, execute jpegoptim
# For png, execute pngquant
# Log output to compress-all-images.log
# https://stackoverflow.com/questions/38965254/jpegoptim-save-shell-last-run-and-check-files-or-folders-after-this-date
@CurtisBelt
CurtisBelt / fix-yoga-13-wireless.sh
Created Apr 17, 2017
Ubuntu 16.04 Fix Lenovo Ideapad Yoga 13 Wireless RTL8723AU
View fix-yoga-13-wireless.sh
#!/usr/bin/env bash
# Fix Wireless Driver on Lenovo IdeaPad Yoga 13
# Realtek Semiconductor Corp. RTL8723AU 802.11n WLAN Adapter
# SUCCESSFUL on Ubuntu 16.04.
# FAILED on Ubuntu 16.10, and 17.04.
# On 16.04, Wireless is (usually) able to connect, albeit at <1 Mbps.
# Enough to install git and clone the driver repo.
# If not, will have to use a good ol' USB drive.
@CurtisBelt
CurtisBelt / Default (Windows).sublime-keymap
Last active Nov 29, 2016
Default (Windows).sublime-keymap
View Default (Windows).sublime-keymap
[
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" },
// Auto-space within parentheses
{ "keys": [" "], "command": "insert_snippet", "args": {"contents": " $0 "}, "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\($", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\)", "match_all": true }
]
},
@CurtisBelt
CurtisBelt / responsive-font.scss
Last active Dec 4, 2016
Responsive Font Mixin
View responsive-font.scss
$viewport-desktop-size: 1366;
$viewport-mobile-size: 320;
// Given a range of font sizes ( $mobile-font-size and $desktop-font-size ), apply break points evenly from mobile to desktop widths
@mixin responsive-font( $mobile-font-size, $desktop-font-size, $line-height-buffer: 2 ) {
$number-of-breakpoints-required: $desktop-font-size - $mobile-font-size;
$maximum-viewport-range: $viewport-desktop-width - $viewport-mobile-width;
$breakpoint-multiplier: $maximum-viewport-range / $number-of-breakpoints-required;
font-size: #{$mobile-font-size}px;
line-height: #{$mobile-font-size + $line-height-buffer}px;
@CurtisBelt
CurtisBelt / httpd-vhosts.conf
Created Nov 13, 2016
httpd-vhosts.conf for Re-usable Wordpress Installation
View httpd-vhosts.conf
<VirtualHost *:80>
ServerName dev.host
UseCanonicalName off
ServerAlias *.host
DocumentRoot E:/wamp64/www/wordpress
<Directory "E:/wamp64/www/wordpress/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
@CurtisBelt
CurtisBelt / wp-config.php
Last active Dec 8, 2017
wp-config for Re-usable Wordpress Installation
View wp-config.php
<?php
/******************************************** // <-- Add a dash to turn on debugging
// define( 'WP_DEBUG', true );
// define( 'WP_DEBUG_LOG', true );
// define( 'WP_DEBUG_DISPLAY', true );
error_reporting(E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR);
ini_set('display_errors', 1);
// define( 'SCRIPT_DEBUG', true );
You can’t perform that action at this time.