Skip to content

Instantly share code, notes, and snippets.

View mkeneqa's full-sized avatar
♣️
Chaos EnCode

Mike mkeneqa

♣️
Chaos EnCode
View GitHub Profile
@mkeneqa
mkeneqa / about_useful_python_snippets.md
Last active April 16, 2022 21:34
Useful Python Code Snippets

Python Snippets

Handy Python Code Snippets

@mkeneqa
mkeneqa / wp_emergency_pswd_reset.php
Created December 22, 2020 08:11
taken from here: https://codex.wordpress.org/User:MichaelH/Orphaned_Plugins_needing_Adoption/Emergency. place on root of website. Delete when Password Reset is completed!
<?php
/*
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@mkeneqa
mkeneqa / fcpx_keywords.md
Last active September 8, 2022 16:59
Wedding Keyword Collection for FCPX

FCP Wedding Keywords Collection

Having descriptive and an organized media file structure is crucial for delivering a video project within a timely manner. Having recently watched this wedding video edit by Scott Mckenna on YouTube, I noticed how he organized his footage by keywords in Final Cut Pro - and I like it a lot.

I've adopted his keyword collections within an FCPX file and am sharing it here for easy access for anyone who, like me, would find it helpful.

Steps:

  1. Simply download the ZIP FILE to your computer and then extract it.
  2. Double click and open the wedding_keywords_import.fcpxml file which will open up Final Cut and will ask to add it as project as a new event OR you can use the import xml menu option (File → Import → XML) within Final Cut Pro X.
@mkeneqa
mkeneqa / ProxyHiResFetcher.md
Last active November 21, 2020 07:51
Simple Python Script to copy data from source to destination. This is part of my proxy workflow that fetches the corresponding full res video files for proxies within my project

Quick Start for ProxyHiRes Fetcher

  1. Create python virtual environment in a folder:
    • UNIX: python3 -m venv env
    • WINDOWS: py -m venv env
  2. Activate Environment:
    • UNIX: source env/bin/activate
    • WINDOWS: .\env\Scripts\activate
  3. Optional: python -m pip install --upgrade pip
  4. Place copy.py file in directory
  5. Run Script (within venv): python copy.py
@mkeneqa
mkeneqa / mike_fcp_razer_key_bindings.json
Created November 13, 2020 06:23
My Remapped Key Bindings configuration for FCP Shortcuts when used with Karabiner-Elements
{
"title": "Final Cut Razer Key Bindings",
"rules": [
{
"description": "e-9 => ⌥ ] - Trim Start",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "e"

Apache Configuration Files for us with Vagrant

@mkeneqa
mkeneqa / launch_phpstorm_from_terminal.md
Last active February 2, 2024 10:03
Launch PHP Strom from Terminal (Mac OS)

Create Script

nano launch_phpstorm.sh


#!/bin/sh

open -na "Phpstorm.app" --args "$@"
@mkeneqa
mkeneqa / wp_bkup.sh
Last active March 21, 2022 05:30
wp back up script
#!/bin/bash
#get the current date
SNAME="$(wp eval 'printf("%s_%d", sanitize_title(site_url()), date("ymdHis"));')"
# set archive backup name and append the date
# eg: https-mywebsite-com_220321051310.zip
SITEBKUPNAME="$SNAME.zip"
# export database
@mkeneqa
mkeneqa / code_symfony_caching.md
Last active February 7, 2020 01:22
Symfony Caching

Symfony Caching

@mkeneqa
mkeneqa / code_project_root_dir.md
Created January 31, 2020 18:26
Symfony PHP, function to get Project Root Directory

Get Project Dir