Video Link: Apache Kafka Crash Course | What is Kafka?
- Knowledge
- Node.JS Intermediate level
- Experience with designing distributed systems
- Tools
- Node.js: Download Node.JS
- Docker: Download Docker
- VsCode: Download VSCode
Video Link: Apache Kafka Crash Course | What is Kafka?
<?php | |
/* | |
Plugin Name: WooCustom My Account | |
Plugin URI: http://wpbeaches.com/ | |
Description: WooCustom - add a custom area in my-account | |
Author: Neil Gee | |
Version: 1.0.0 | |
Author URI: http://wpbeaches.com | |
License: GPL-2.0+ |
<?php | |
if (!function_exists('array_group_by')) { | |
/** | |
* Groups an array by a given key. | |
* | |
* Groups an array into arrays by a given key, or set of keys, shared between all array members. | |
* | |
* Based on {@author Jake Zatecky}'s {@link https://github.com/jakezatecky/array_group_by array_group_by()} function. | |
* This variant allows $key to be closures. |
<?php | |
function json_response($code = 200, $message = null) | |
{ | |
// clear the old headers | |
header_remove(); | |
// set the actual code | |
http_response_code($code); | |
// set the header to make sure cache is forced | |
header("Cache-Control: no-transform,public,max-age=300,s-maxage=900"); |
// this was my attempt to write my own php obfuscator | |
// this was inspired by Carbylamine PHP Script Encoder | |
// its currently in alpha, because sometimes its work, and sometimes it doesnt | |
// this was written 3 years ago (ahh memories again) | |
// so code looks suck | |
// thanks to Mokhdzani Faeq for created good regexs | |
// have fun! | |
<?php |
{ | |
"name": "Detect if an extension installed", | |
"description": "Detect if an extension installed", | |
"version": "0.1", | |
"manifest_version": 2, | |
"permissions": [ | |
"management" | |
], | |
"browser_action": { | |
"default_popup": "popup.html" |
#!/usr/bin/env php | |
<?php | |
//usage: php envato-screenshots-downloader.php /path/to/save/screenshots http://url/to/screenshots/page | |
set_time_limit(0); | |
$dir = $argv[1]; | |
$source = $argv[2]; | |
print_r($argv); | |
mkdir ($dir); | |
$src = file_get_contents($source); | |
$pattern = '/src="(https:\/\/0.s3[a-zA-Z0-9_\-\.\/%]+)"/i'; |
var gulp = require('gulp'), | |
plug = require("gulp-load-plugins")({lazy:false}) | |
wiredep = require('wiredep').stream; | |
gulp.task('bower', function () { | |
gulp.src('app/index.html') | |
.pipe(wiredep()) | |
.pipe(gulp.dest('app/')); | |
}); |