Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View DimaMinka's full-sized avatar
💻
CDK Computers - Modern Web Development

Dima Minka DimaMinka

💻
CDK Computers - Modern Web Development
View GitHub Profile
@DimaMinka
DimaMinka / macos_high_sierra_apache_php_brew_2018.md
Created October 4, 2021 15:45 — forked from karlhillx/macos_high_sierra_apache_php_brew_2018.md
macOS High Sierra Setup: Homebrew + Apache + PHP + MariaDB + SSL

macOS High Sierra Setup: Homebrew + Apache + PHP + MariaDB + SSL

Homebrew Installation

First let's install Homebrew.

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

@DimaMinka
DimaMinka / ably-jwt-authentication-send-json.php
Created August 19, 2021 07:22 — forked from michaelphipps/ably-jwt-authentication-send-json.php
Send a JSON message with Ably.com using JWT Authentication in PHP without using the official Ably PHP SDK.
<?php
// $ composer require lcobucci/jwt
require __DIR__ . '/vendor/autoload.php';
use Lcobucci\JWT\Configuration;
use Lcobucci\JWT\Signer\Key\InMemory;
use Lcobucci\JWT\Signer\Hmac\Sha256;
#!/bin/bash
#ProjectKB
echo "
#!/bin/sh
Vagrant.configure(\"2\") do |config|
config.vm.box = \"ubuntu/xenial64\"
config.vm.network \"private_network\", ip: \"192.168.33.10\"
config.vm.provision \"shell\", path: \"scripts/auto-install.sh\"
af.mk
bn.mk
cj.mk
df.mk
dq.mk
dx.mk
eo.mk
ew.mk
fj.mk
gi.mk
@DimaMinka
DimaMinka / ⏱️ Weekly time tracking breakdown
Last active April 21, 2021 19:06
⏱️ Weekly time tracking breakdown
bur ████▋░░░░░░░░░░░░ 2h 48m
mails ███▉░░░░░░░░░░░░░ 2h 21m
project-management ███▊░░░░░░░░░░░░░ 2h 16m
rafi ███░░░░░░░░░░░░░░ 1h 48m
rbr ▉░░░░░░░░░░░░░░░░ 33m
ocp ▋░░░░░░░░░░░░░░░░ 22m
@DimaMinka
DimaMinka / I'm a night 🦉
Last active August 27, 2021 00:03
I'm an early 🐤
🌞 Morning 93 commits ████░░░░░░░░░░░░░░░░░ 19.4%
🌆 Daytime 132 commits █████▊░░░░░░░░░░░░░░░ 27.5%
🌃 Evening 216 commits █████████▍░░░░░░░░░░░ 45.0%
🌙 Night 39 commits █▋░░░░░░░░░░░░░░░░░░░ 8.1%
@DimaMinka
DimaMinka / 🐱 GitHub Data
Last active April 21, 2021 19:09
🐱 GitHub Data
🏆 26 Contributions in year 2021
📦 Used 2 GB in GitHub's Storage
📜 33 Public Gists
🔑 2 Public Keys
🚫 Not opted to Hire
@DimaMinka
DimaMinka / 📊 Weekly development breakdown
Last active August 25, 2021 00:10
📊 Weekly development breakdown
PHP 0 secs ███████████████░░░░░░ 71.7%
JSON 0 secs ██▍░░░░░░░░░░░░░░░░░░ 11.7%
YAML 0 secs ██▍░░░░░░░░░░░░░░░░░░ 11.4%
Other 0 secs ▉░░░░░░░░░░░░░░░░░░░░ 4.6%
JavaScript 0 secs ░░░░░░░░░░░░░░░░░░░░░ 0.6%
@DimaMinka
DimaMinka / tagmanager.js
Created May 17, 2020 07:55
Tag manager delay for tags
<script>
(function() {
try {
window.setTimeout(
function(){
var script = document.createElement('script');
script.async = true; script.type = 'text/javascript';
var target = 'https://www.clickcease.com/monitor/stat.js';
script.src = target;var elem = document.head;elem.appendChild(script);
}, 1500);
@DimaMinka
DimaMinka / set_acf_pro_license.php
Created November 18, 2019 07:57 — forked from campusboy87/set_acf_pro_license.php
Automatic activation of ACF license via PHP. The code adds the key to the option in the desired format, and adds the domain to the list of trusted domains tracked in the ACF profile, so that the update is successful. The code can be used as a MU plugin, a regular plugin, or inserted into the theme code.
<?php
add_action( 'acf/init', 'set_acf_pro_license' );
function set_acf_pro_license() {
global $acf_instances;
if ( isset( $acf_instances['ACF_Admin_Updates'] ) && ! get_option( 'acf_pro_license' ) ) {
/**
* @var ACF_Admin_Updates $acf