Skip to content

Instantly share code, notes, and snippets.

View cconversion's full-sized avatar
🏠
Busy

cconversion

🏠
Busy
  • Earth
View GitHub Profile
@cconversion
cconversion / .zshrc
Created October 28, 2019 12:18
zgen zsh config
export PATH="$PWD:${HOME}/bin:${HOME}/.local/bin:${HOME}/bin:${GOROOT}/bin:usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:$PATH"
# https://github.com/mubaris/motivate (use both install methods)
motivate
## Load ZGen
source "${HOME}/.zgen/zgen.zsh"
# Update Zgen = "zgen selfupdate"
# Update all plugins and remove/reset the init script = "zgen update"
# if the init script doesn't exist https://github.com/tarjoilija/zgen
@cconversion
cconversion / gravity-forms-product-addons-custom-export-fields.php
Created April 28, 2019 18:26 — forked from lucasstark/gravity-forms-product-addons-custom-export-fields.php
Custom export fields for WooCommerce Gravity Forms Product Addons
add_filter( 'gform_export_fields', 'custom_add_wc_order_fields', 10, 1 );
add_filter( 'gform_export_field_value', 'custom_export_wc_order_fields', 10, 4 );
function custom_add_wc_order_fields( $form ) {
array_push( $form['fields'], array(
'id' => 'woocommerce_billing_address_1',
'label' => __( 'WooCommerce Billing Address 1', 'wc_gf_addons' )
) );
array_push( $form['fields'], array(
@cconversion
cconversion / wp-install
Created October 25, 2018 22:33
WordPress Bash|Zsh Installer Script - deploy Local WordPress free and easy - Ubuntu18 Tested - HTTPS SINGLE OR MULTISITE - Easy Configure Setup
#!/bin/bash
#
#logfile="$backupfolder/"backup_log_"$(date +'%Y_%m')".txt
#echo "mysqldump started at $(date +'%d-%m-%Y %H:%M:%S')" >> "$logfile"
#echo "*****************" >> "$logfile"
#######################################################################################################################################
SHHH=">/dev/null 2>&1"
inval="[-\._ \'\=\&\@\#\%\*\!\~\`\:\$\(\)\[\]\^\~\/\\\ ][0-9]"
urlsafe="[^a-zA-Z0-9_-]"
em_shrug='¯\_(ツ)_/¯'
@cconversion
cconversion / chwp.sh
Created October 25, 2018 05:44
WordPress Permissions Fixer
#!/bin/bash
#
# https://codex.wordpress.org/Changing_File_Permissions
#
echo ""
################################################ Pretty Colours in the Terminal
cb="\033[0;34m"
ccb="\033[1;36m"
gb="\033[1;32m"
rb="\033[1;31m"
@cconversion
cconversion / .zshrc
Created October 25, 2018 05:32
Antigen zshrc - Just enter 'zsh' to load
ANTIGEN_LOG=~/.antigen/antigen.log
# ANTIGEN_CACHE=false
COMPOSER_HOME="$HOME/.composer"
source $HOME/antigen.zsh
PATH=$HOME/bin:$HOME/scripts:$COMPOSER_HOME:/usr/local/bin:$PATH
# OH-MY-ZSH CONFIGURATION
DISABLE_CORRECTION="true"
HIST_STAMPS="yyyy-mm-dd"
# >>>>>>>>> START ANTIGEN SCRIPTS
@cconversion
cconversion / MonokaiPHP.sublime-color-scheme
Last active October 25, 2018 02:50
Colour Scheme for Sublime Text 3 PHP Monokai Forked
{
"author": "cconversion",
"name": "Monokai PHP",
"variables": {
"black": "#000000",
"blackground": "#0e0707",
"blackish3": "#15150f",
"bluish": "#00ffff",
"bluish2": "#73B9FF",
"bluish3": "#009DFF",