Skip to content

Instantly share code, notes, and snippets.

View jaymecd's full-sized avatar

Nikolai Zujev jaymecd

View GitHub Profile

Keybase proof

I hereby claim:

  • I am jaymecd on github.
  • I am jaymecd (https://keybase.io/jaymecd) on keybase.
  • I have a public key whose fingerprint is 2142 1A57 BDF4 9E17 E153 5346 7489 58B9 3FDE 022A

To claim this, I am signing this object:

@jaymecd
jaymecd / bash-cheatsheet.sh
Created June 2, 2017 11:46 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@jaymecd
jaymecd / blog-semver
Created April 28, 2017 19:35 — forked from xenoscopic/blog-semver
Comparing Program Versions in POSIX Shell
http://havoc.io/blog/post/comparing-program-versions-in-posix-shell
@jaymecd
jaymecd / periodic-time-ticker.php
Created April 14, 2017 17:48 — forked from Ocramius/periodic-time-ticker.php
A PHP long running process that fires a command at a command bus at regular time intervals
#!/usr/bin/env php
<?php
declare(strict_types=1);
namespace CodeReviewsIo\Worker;
use CodeReviewsIo\Domain\Command\TickTime;
use Prooph\ServiceBus\CommandBus;
use React\EventLoop\Factory;
@jaymecd
jaymecd / example.php
Created March 20, 2017 21:20 — forked from hikari-no-yume/example.php
function chaining for PHP 7
<?php declare(strict_types=1);
require_once "✨.🐘";
✨($_)->strlen("foo")->var_dump($_);
@jaymecd
jaymecd / Twelve_Go_Best_Practices.md
Created February 13, 2017 10:13 — forked from pzurek/Twelve_Go_Best_Practices.md
Twelve Go Best Practices
@jaymecd
jaymecd / README.md
Last active January 24, 2017 18:21
Travis-CI misbehaves

Travis-ci failed to run PHP 5.5, by running 5.6, tasks failed, build status is green

$ phpenv global 5.5
The previous command failed, possibly due to a malformed secure environment variable.
Please be sure to escape special characters such as ' ' and '$'.
For more information, see http://www.tldp.org/LDP/abs/html/special-chars.html.
@jaymecd
jaymecd / Caddyfile
Created December 19, 2016 23:54 — forked from phred/Caddyfile
A+ grade on securityheaders.io with this: https://securityheaders.io/?q=https%3A%2F%2Ffff.red
fff.red {
header / {
Strict-Transport-Security "max-age=31536000; includeSubDomains"
Content-Security-Policy "default-src https:*"
Public-Key-Pins "pin-sha256=\"ckOIjdimiwD3mfMmkmCh7uiJCBtXvoqoBoKKB1K5UIM=\"; pin-sha256=\"QiTyymM4e635OgWkx9d7nq5xvEuqmgV7HiDjIIGyymo=\"; max-age=2592000"
X-Frame-Options SAMEORIGIN
X-XSS-Protection "1; mode=block"
X-Content-Type-Options nosniff
}
}
@jaymecd
jaymecd / golang_job_queue.md
Created November 12, 2016 13:10 — forked from harlow/golang_job_queue.md
Job queues in Golang