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 / py_webview_webio_flask_sample.py
Created April 20, 2021 04:41
sample starter code for using pywebio in pywebview with flask server on Windows
import webview
import pywebio
from pywebio.platform.flask import webio_view
from flask import Flask, escape, request, send_from_directory, current_app, url_for
from pywebio import STATIC_PATH
from pywebio.input import *
from pywebio.output import *
from pywebio.session import *
import logging
from datetime import date, timedelta
@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 / main.py
Created November 3, 2023 04:16
simple python push over implmentation
import requests
from pushover import Pushover
pushover = Pushover()
pushover.Push("Hello World")
@mkeneqa
mkeneqa / DropDownViewModel.cs
Created September 27, 2023 17:26
Resuable Dropdown/ComboBox component for (Calibrun) MVVM
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using Caliburn.Micro;
using Scheduler.Data;
namespace MyApp
{
public class DropDownViewModel : Screen
{
###############################################################################################################
# I've analysed the Spotify network. Assuming you are using a(n) (ad block) #
# hosts file on your computer or router, most advertisement site are already #
# blocked. If you find/spot a DNS entrie(s) that not listed yet please contact me #
# on twitter (@0xUID) or via blog (blogpirate.net).
#
# github link: https://raw.githubusercontent.com/x0uid/SpotifyAdBlock/master/hosts
# #
# Block Spotify Ads! #
# More info about this hosts file at #
@mkeneqa
mkeneqa / using_fabric.py
Created February 16, 2023 16:20 — forked from YoniItzhak/using_fabric.py
Creating connection
from socket import error as socket_error
from fabric import Connection
from paramiko.ssh_exception import AuthenticationException
class ExampleException(Exception): # Should be your Exception
pass
@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 / php_date_helper_class.php
Last active April 27, 2022 17:34
PHP Dates Helper Class
<?php
namespace App\Onstream;
class DateHelper
{
public static function GetDaysRemaining($date_from,$date_to): float
{
@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 / prores_trx.sh
Last active April 16, 2022 19:29
A script to transcode video in directory to Apple ProRes
#!/bin/bash
# A script to transcode video in directory to Apple ProRes
# chmod + prores_trx.sh && sh prores_trx.sh
# The -profile:v # is for ProRes quality
# 0: ProRes422 (Proxy)
# 1: ProRes422 (LT)
# 2: ProRes422 (Normal)
# 3: ProRes422 (HQ)