Skip to content

Instantly share code, notes, and snippets.

inoas / deploy.yml
Created Nov 23, 2020 — forked from tfwright/deploy.yml
Ansible Phoenix deployment playbook
View deploy.yml
# ansible 2.9.0
- name: Deploy to production
hosts: production
remote_user: user
app_root: /home/user/apps/my_app
inoas / mysql-levenshtein.sql
Created Nov 25, 2019 — forked from Kovah/mysql-levenshtein.sql
Levenshtein function for MySQL
View mysql-levenshtein.sql
-- Levenshtein function
-- Source:
-- Levenshtein reference:
-- Arjen note: because the levenshtein value is encoded in a byte array, distance cannot exceed 255;
-- thus the maximum string length this implementation can handle is also limited to 255 characters.
inoas / brew-maintain
Created Aug 7, 2018
View brew-maintain
echo 'brew...' \
&& echo '• update' \
&& brew update \
&& echo '• upgrade' \
&& brew upgrade \
&& echo '• cleanup' \
&& brew cleanup \
&& echo '• prune' \
&& brew prune \
inoas /
Created Jul 27, 2018 — forked from bitjockey42/
Use native virtualization on OS X docker with xhyve

What this?

So one of the painful points of using docker on OS X is that you need to run a virtualbox VM, which often suffers from performance issues. With xhyve, a OS X virtualization system, and docker-machine-xhyve you can now have docker use the native OS X hypervisor to run containers.

No more dealing with virtualbox shenanigans!

In this script, I've also set up a way to autoconfigure terminal sessions to load docker's environment vars (dependent on docker-machine) so you do not have to run eval $(docker-machine env whatever) every time you open a new terminal window.


inoas / .htaccess
Created May 24, 2018 — forked from cronfy/.htaccess
.htaccess 503 Техническое обслуживание сайта (maintenance page)
View .htaccess
AddDefaultCharset utf-8
ErrorDocument 503 /maintenance.html
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !maintenance.html
RewriteRule .* /maintenance.html [R=503,L]
inoas / .htaccess
Created May 24, 2018 — forked from donnykurnia/.htaccess
.htaccess for 503 maintenance page
View .htaccess
ErrorDocument 503 /index.html
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* /index.html [R=503,L]
inoas / stripNamespaceFromClassName.php
Created Mar 2, 2018 — forked from jasondmoss/stripNamespaceFromClassName.php
Strip the namespace from the class to get the actual class name
View stripNamespaceFromClassName.php
* Strip the namespace from the class to get the actual class name
* @param string $obj Class name with full namespace
* @return string
* @access public
inoas / object-watch.js
Created Jan 16, 2018 — forked from flackjap/object-watch.js
Fork of polyfill in ES5. Modified to not react when the value set is the same as previous.
View object-watch.js
* polyfill
* 2012-04-03
* By Eli Grey,
* Public Domain.
* Modified by Nenad Damnjanović
* Nov 9, 2014
inoas /
Created Dec 21, 2017 — forked from galderz/
How To Clean Install High Sierra on APFS-formatted main HD

Clean Install High Sierra on APFS-formatted main HD

Installation Steps

  1. From 10.11 or 10.12 systems, format an external hard drive with at least 500gb with "Mac Os Extended Journaled".
  2. Download High Sierra Beta and install it in the external hard drive.
  3. When the system reboots and finishes installation, it will boot from the external HD. Go to Preferences and change Startup Disk to be main HD.
  4. Reboot and press Option key when the computer makes a beep and select external HD to boot from it.
  5. Once booted again into external HD, format main HD to be APFS.
inoas / .htaccess
Created Dec 4, 2017 — forked from ludo237/.htaccess
The ultimate .htaccess file. Please feel free to fork it, edit it and let me know what do you think about it.
View .htaccess
# Apache configuration file
# Note .htaccess files are an overhead, this logic should be in your Apache
# config if possible:
# Techniques in here adapted from all over, including:
# Kroc Camen:
# Sample .htaccess file of CMS MODx:
# This is the free sample of .htaccess from 6GO s.r.l.
# @author Claudio Ludovico Panetta (@Ludo237)