Skip to content

Instantly share code, notes, and snippets.

Jamie York ziadoz

Block or report user

Report or block ziadoz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ziadoz / main.go
Last active Sep 1, 2019
Download a webpage as HTML with base64 encoded assets using Golang
View main.go
// Usage: go run main.go
// Based on Monolith:
package main
import (
ziadoz /
Created Aug 30, 2019
Cloning Github Gists

Cloning Github Gists

To clone a gist:

git clone[GIST ID].git

If you need to add a remote to an existing repository:

git remote add origin[GIST ID].git
ziadoz / .php_cs.dist
Last active Aug 8, 2019
PHP CS Fixer Configuration
View .php_cs.dist
<?php declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
return PhpCsFixer\Config::create()
'@PSR2' => true,
ziadoz / gists.go
Created Jul 26, 2019
Test Golang API Client Using httptest Package
View gists.go
package gists
import (
type Api struct {
client *http.Client
ziadoz / game-save-clean-up.go
Created May 26, 2019
Clean Up Game Save Manager Folders
View game-save-clean-up.go
// Usage: game-save-clean-up --src="/Files/Game Saves" [--limit=2] [--dryrun]
package main
import (
ziadoz / fizzbuzz.go
Last active Dec 24, 2017
FizzBuzz in Go
View fizzbuzz.go
package main
import "fmt"
const (
FIZZ = 3
BUZZ = 5
ziadoz /
Created Jul 22, 2017
Using XDebug in Atom Editor

Using XDebug in Atom Editor

Install the XDebug plugin for Atom and then add the following to the config.cson file (Atom > Config…):

  PathMaps: [
  ServerPort: 9001
ziadoz /
Last active Jul 22, 2017
Install Atom Editor PHP Integrator Core 3.0.0 on macOS Sierra
#!/usr/bin/env bash
brew tap homebrew/homebrew-php
brew install php71
cd ~/.atom/packages/php-integrator-base/core
/usr/local/bin/php ./composer.phar create-project php-integrator/core ./3.0.0 3.0.0 --prefer-dist --no-dev
ziadoz /
Last active Oct 10, 2019
MKV to MP4 (Docker, FFMpeg, AVConv)
#!/usr/bin/env bash
# Convert MKV to MP4
# Uses Docker FFMpeg, FFMpeg or AVConv.
# Usage:
# ./
# ./ /path/to/videos
# Notes:
ziadoz / include-me-func.php
Last active Aug 24, 2019
Prevent Variable Leakage In PHP Includes
View include-me-func.php
// Use a closure so nothing leaks out when included.
return (function () {
$array = ['foo', 'bar'];
foreach ($array as $string) {
// Some exciting logic.
return 'FOOBAR';
You can’t perform that action at this time.