Skip to content

Instantly share code, notes, and snippets.

Isaak Mogetutu mogetutu

Block or report user

Report or block mogetutu

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
mogetutu / Install.txt
Created Oct 1, 2019 — forked from soderlind/Install.txt
macOS DoH! (DNS over HTTPS) using cloudflared
View Install.txt
1) Install cloudflared using homebrew:
brew install cloudflare/cloudflare/cloudflared
2) Create /usr/local/etc/cloudflared/config.yaml, with the following content
proxy-dns: true
mogetutu / nginx.conf
Created Aug 3, 2018 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
View nginx.conf
# Advanced config for NGINX
server_tokens off;
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options nosniff;
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
return 301 https://$host$request_uri;
View .zshrc
export ZPLUG_HOME=/usr/local/opt/zplug
source $ZPLUG_HOME/init.zsh
# Plugins
zplug "lib/completion", from:oh-my-zsh
zplug "lib/directories", from:oh-my-zsh
zplug "lib/functions", from:oh-my-zsh
zplug "plugins/brew-cask", from:oh-my-zsh
zplug "plugins/brew", from:oh-my-zsh
zplug "plugins/composer", from:oh-my-zsh
mogetutu / timer_helpers.php
Created Jul 31, 2017 — forked from calebporzio/timer_helpers.php
A simple helper function and macro for timing php scripts and eloquent queries
View timer_helpers.php
// Helper function.
if (! function_exists('timer')) {
function timer($expression)
$start = microtime(true);
if ($expression instanceof Closure) {

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

mogetutu / counter.js
Created Mar 17, 2017 — forked from yuya-takeyama/counter.js
Closure examples.
View counter.js
// This works on Rhino.
var counter = (function () {
var i = 1;
return function () {
return i++;
print(counter()); // 1
mogetutu / deploy.rb
Created Jul 4, 2016 — forked from xhj/deploy.rb
Deply Rails App with Puma and Nginx via Mina
View deploy.rb
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rvm' # for rvm support. (
set :domain, ''
set :identity_file, '/User/somebody/.ssh/somebody.pem'
set :deploy_to, '/home/ubuntu/apps/'
set :repository, 'ssh://'
set :branch, 'master'
mogetutu / ETagMiddleware.php
Created Jul 3, 2016
ETag middleware laravel 5
View ETagMiddleware.php
<?php namespace App\Http\Middleware;
use Closure;
class ETagMiddleware {
* Implement Etag support
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
mogetutu /
Created Jun 15, 2016 — forked from ChuckJHardy/
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

Create a Droplet

SSH into Root

$ ssh root@

Change Root Password

You can’t perform that action at this time.