Skip to content

Instantly share code, notes, and snippets.

View netflash's full-sized avatar

Alex Romanov netflash

View GitHub Profile
@netflash
netflash / README.md
Created June 26, 2018 19:59 — forked from tomazzaman/README.md
Kill supervisor on Docker when any of the services fail

Killing supervisor if any of it's child processes fail

The trick is to only register the listener for events that indicate failure, namely

  • PROCESS_STATE_STOPPED
  • PROCESS_STATE_EXITED
  • PROCESS_STATE_FATAL

Once they do, we should send a SIGQUIT to Supervisor.

@netflash
netflash / OSXRoamingKnobs
Last active September 9, 2017 19:12 — forked from donalod/OSXRoamingKnobs
OSXRoamingKnobs
# Via @srynearson tweet https://twitter.com/Srynearson/status/534421250261942272 #kudos Bill Mullady
# Re: http://community.arubanetworks.com/t5/Unified-Wired-Wireless-Access/Mac-OS-X-Lion-MacBook-Air-issue/m-p/113885#M24396
sudo defaults read /Library/Preferences/com.apple.airport.opproam
Password:
{
deltaRSSI = 10;
disabled = 0;
useBonjour = 0;
useBroadcastBSSID = 1;
@netflash
netflash / github-team.py
Last active January 20, 2023 05:13 — forked from krusynth/github-team.py
Python script to add all GitHub repositories to an organization team - permission is set to push. You'll need a settings.py file with your organization name and API key. Based off of my GitHub stats script (requirements.txt here): https://github.com/krues8dr/project-migration
#!/usr/bin/python
# Exports a CSV of repo names, readme files, and the license of the project.
from __future__ import print_function
import requests
import json
import settings
from urlparse import urlparse, parse_qs
import sys

Keybase proof

I hereby claim:

  • I am netflash on github.
  • I am netflash (https://keybase.io/netflash) on keybase.
  • I have a public key whose fingerprint is 7690 95C2 1C8C AAEB 8A9E A78A E551 940A 9CF7 863D

To claim this, I am signing this object: