Skip to content

Instantly share code, notes, and snippets.

View dragolabs's full-sized avatar

Vitaly Shishlyannikov dragolabs

View GitHub Profile

FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@dragolabs
dragolabs / devops_best_practices.md
Created April 30, 2020 16:34 — forked from jpswade/devops_best_practices.md
Devops Best Practices Checklist

Find the original here article here: Devops Best Practices

DevOps started out as "Agile Systems Administration". In 2008, Andrew Shafer did a talk called "Agile Infrastucture" addressing issues around involving more of the company in the same disciplines as programmers.

In 2009, Patrick Debois created "DevOpsDays" conference to help to bring it to light. However, it wouldn't begin to trend until about 2010, when people would begin to describe it as a standalone discipline.

Today, DevOps goes beyond just developers, systems administration and infrastructure, its about [dev, ops, agile, cloud

@dragolabs
dragolabs / responses.clj
Created April 22, 2019 21:32 — forked from mtnygard/responses.clj
Build Pedestal response maps for every standard HTTP status code.
(defn response
([status body]
{:status status
:headers {}
:body body}))
(defmacro http-status [code sym]
`(def ~sym (partial response ~code)))
(defmacro http-statuses [& pairs]
@dragolabs
dragolabs / README.md
Created May 24, 2018 09:46 — forked from devinrhode2/README.md
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/

Mac OS X

To check the current limits on your Mac OS X system, run:

@dragolabs
dragolabs / delete_empty_logsets.sh
Created February 14, 2018 14:15 — forked from Synesso/delete_empty_logsets.sh
Delete empty LogEntries logsets on OSX
# pip install logentries-lecli
# then configure as per https://blog.logentries.com/2016/07/introduction-to-the-logentries-command-line-interface/
# logsets with logs in them
lecli get logs | jq -r '.logs[].logsets_info[].id' | sort -u > have_logs
# all logset ids
lecli get logsets | jq -r '.logsets[] | .id' | sort > logsets
for ls in $(comm logsets have_logs | grep -v "$(printf '\t')")
@dragolabs
dragolabs / install-apache-maven-3.5.0.sh
Last active April 18, 2018 05:35 — forked from miroslavtamas/install-apache-maven-3.3.9.sh
Install Apache Maven 3.5.0 on CentOS
#!/bin/sh
wget http://www.eu.apache.org/dist/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz
tar xzf apache-maven-3.5.0-bin.tar.gz
mkdir /opt/maven
mv apache-maven-3.5.0/ /opt/maven/
alternatives --install /usr/bin/mvn mvn /opt/maven/apache-maven-3.5.0/bin/mvn 1
alternatives --config mvn
@dragolabs
dragolabs / shmsetup.sh
Created March 25, 2016 05:27 — forked from jodell/shmsetup.sh
kernel shared memory calculator
#!/bin/bash
# http://archives.postgresql.org/pgsql-admin/2010-05/msg00285.php
# Output lines suitable for sysctl configuration based
# on total amount of RAM on the system. The output
# will allow up to 50% of physical memory to be allocated
# into shared memory.
# On Linux, you can use it as follows (as root):
#
# ./shmsetup >> /etc/sysctl.conf
# First install tmux
brew install tmux
# For mouse support (for switching panes and windows)
# Only needed if you are using Terminal.app (iTerm has mouse support)
Install http://www.culater.net/software/SIMBL/SIMBL.php
Then install https://bitheap.org/mouseterm/
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/
#!/bin/bash
while getopts a:bc: flag; do
case $flag in
a)
opt_a=$OPTARG
;;
b)
opt_b=1
;;
server {
index index.php;
set $basepath "/var/www";
set $domain $host;
# check one name domain for simple application
if ($domain ~ "^(.[^.]*)\.dev$") {
set $domain $1;
set $rootpath "${domain}";