Skip to content

Instantly share code, notes, and snippets.

🏠
Busy

cconversion

🏠
Busy
  • Earth
View GitHub Profile
@cconversion
cconversion / .zshrc
Created Oct 28, 2019
zgen zsh config
View .zshrc
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
View gravity-forms-product-addons-custom-export-fields.php
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 Oct 25, 2018
WordPress Bash|Zsh Installer Script - deploy Local WordPress free and easy - Ubuntu18 Tested - HTTPS SINGLE OR MULTISITE - Easy Configure Setup
View wp-install
#!/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 Oct 25, 2018
WordPress Permissions Fixer
View chwp.sh
#!/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 Oct 25, 2018
Antigen zshrc - Just enter 'zsh' to load
View .zshrc
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 Oct 25, 2018
Colour Scheme for Sublime Text 3 PHP Monokai Forked
View MonokaiPHP.sublime-color-scheme
{
"author": "cconversion",
"name": "Monokai PHP",
"variables": {
"black": "#000000",
"blackground": "#0e0707",
"blackish3": "#15150f",
"bluish": "#00ffff",
"bluish2": "#73B9FF",
"bluish3": "#009DFF",
You can’t perform that action at this time.