Skip to content

Instantly share code, notes, and snippets.

View myself379's full-sized avatar
🎯
Focusing

John myself379

🎯
Focusing
View GitHub Profile
@myself379
myself379 / centos-7.4-php-7.x-web-server-configuration.txt
Created April 29, 2018 14:32 — forked from alkavan/CentOS_7.x_(PHP_7.3_Postgres_10.x).md
CentOS 7.4 - New Web Server Configuration (DigitalOcean) + EPEL + IUS + PHP
# [General/Initial Section]
# Update system
yum update
# Set your timezone
timedatectl set-timezone UTC
# Check date is set correct
date
@myself379
myself379 / README.md
Last active July 16, 2018 00:28 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@myself379
myself379 / PowerShell Customization.md
Created October 22, 2018 21:56 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@myself379
myself379 / openssl.MD
Created October 22, 2018 21:57 — forked from jchandra74/openssl.MD
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Overview

My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.

Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:

Self-Signed SSL Issue in Chrome

<?php
function ibenic_get_all_zones() {
if( class_exists( 'WC_Shipping_Zones' ) ) {
$all_zones = WC_Shipping_Zones::get_zones();
return $all_zones;
}
return false;
}
@myself379
myself379 / free_up_memory_php_excel.php
Created December 19, 2018 08:15 — forked from radityopw/free_up_memory_php_excel.php
free up memory on phpExcel
$objPHPExcel->disconnectWorksheets();
unset($objPHPExcel);
@myself379
myself379 / store-config.js
Created March 15, 2019 15:38 — forked from jperelli/store-config.js
Reactotron + redux + react-native configuration
import Reactotron from 'reactotron-react-native'
import { reactotronRedux } from 'reactotron-redux'
var store;
if (__DEV__) {
Reactotron
.configure({ name: 'VTX-sharepoint' })
.use(reactotronRedux())
.connect()
@myself379
myself379 / IPTABLES-CHEATSHEET.md
Created September 6, 2019 01:35 — forked from davydany/IPTABLES-CHEATSHEET.md
IP Tables (iptables) Cheat Sheet

IP Tables (iptables) Cheat Sheet

IPTables is the Firewall service that is available in a lot of different Linux Distributions. While modifiying it might seem daunting at first, this Cheat Sheet should be able to show you just how easy it is to use and how quickly you can be on your way mucking around with your firewall.

Resources

The following list is a great set of documentation for iptables. I used them to compile this documentation.

@myself379
myself379 / Installing Arch on a ThinkPad X1 Extreme.md
Created November 30, 2019 00:27 — forked from CodingCellist/Installing-Arch-on-a-ThinkPad-X1-Extreme-Gen-1.md
A detailed overview of how I installed Arch Linux on my Lenovo ThinkPad X1 Extreme, having never installed Arch before.

DISCLAIMER

I am not responsible for any damages, loss of data, system corruption, or any other mishap you may somehow cause by following this guide.

This is mainly a step-by-step reminder/log for myself of how I installed Arch on my laptop. I am putting this out there in case it is useful for someone else, it is not intended to be an official guide. As a result, you may find that this guide is very tedious or lists a lot of unnecessary/intuitive steps or just straight up does things in a way that is considered bad practice. Apart from the latter, this is intentional, as I did not find these steps intuitive at all when