Skip to content

Instantly share code, notes, and snippets.

View edux's full-sized avatar
🏠
Working from home

Eduardo Casarero edux

🏠
Working from home
  • Percona
  • Buenos Aires, Argentina
View GitHub Profile
@edux
edux / macos-10133-fail.md
Created April 16, 2019 21:16 — forked from johngrimes/macos-10133-fail.md
macOS 10.13.3 Update FAIL

I had some massive problems when installing the 10.13.3 update on macOS. The update installed, my computer successfully restarted - but on a subsequent restart the boot failed and displayed the following installation log:

Apr  4 04:07:04 MacBook-Pro opendirectoryd[186]: [session] Processing a network change notification
Apr  4 04:07:06 MacBook-Pro Unknown[526]: Launching the Language Chooser for an OS Install
Apr  4 04:07:06 MacBook-Pro bspowerassertiontool[521]: Tool exited successfully (0).
Apr  4 04:07:06 MacBook-Pro launchprogresswindow[524]: ISAP: Show progress UI called
Apr  4 04:07:07 MacBook-Pro Installer Progress[180]: Progress UI App Starting
Apr  4 04:07:32 MacBook-Pro opendirectoryd[186]: [session] Received a network change notification
Apr  4 04:07:32 MacBook-Pro opendirectoryd[186]: [session] Received a network change notification
@edux
edux / CLA
Created November 16, 2018 14:25
### Individual Contributor License Agreement
Thank you for your interest in contributing to open source software projects (“Projects”) made available by SAP SE or its affiliates (“SAP”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to SAP in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@sap.com.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to SAP a non-exclusive, perpetual, irrevocable, worldwide,
@edux
edux / gist:4eecee8437a31e45032d46e31a8d038d
Created March 28, 2018 17:51
Dockerfile and make file
Makefile:
--------
docker: docker-setup docker-build docker-run
docker-setup:
mkdir -p tmp
if ! [ -f tmp/id_rsa ]; then ssh-keygen -t rsa -b 4096 -f tmp/id_rsa -N ''; fi
docker-build:
docker build -t test_container .
docker-run:
@edux
edux / post-mortem.md
Created March 20, 2018 19:59 — forked from joewiz/post-mortem.md
Recovery from nginx "Too many open files" error on Amazon AWS Linux

On Tue Oct 27, 2015, history.state.gov began buckling under load, intermittently issuing 500 errors. Nginx's error log was sprinkled with the following errors:

2015/10/27 21:48:36 [crit] 2475#0: accept4() failed (24: Too many open files) 2015/10/27 21:48:36 [alert] 2475#0: *7163915 socket() failed (24: Too many open files) while connecting to upstream...

An article at http://www.cyberciti.biz/faq/linux-unix-nginx-too-many-open-files/ provided directions that mostly worked. Below are the steps we followed. The steps that diverged from the article's directions are marked with an *.

    • Instead of using su to run ulimit on the nginx account, use ps aux | grep nginx to locate nginx's process IDs. Then query each process's file handle limits using cat /proc/pid/limits (where pid is the process id retrieved from ps). (Note: sudo may be necessary on your system for the cat command here, depending on your system.)
  1. Added fs.file-max = 70000 to /etc/sysctl.conf
  2. Added `nginx soft nofile 1
### Keybase proof
I hereby claim:
* I am edux on github.
* I am ecasarero (https://keybase.io/ecasarero) on keybase.
* I have a public key whose fingerprint is 73F8 FA1F 8369 0FD9 A29A 288A 90E5 0DA5 0033 8DC4
To claim this, I am signing this object: