You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
💭
👨🔬🖥
Anthony Wang
anthony-wang
💭
👨🔬🖥
Experienced Senior Data Scientist with 5+ years of overall professional experience across industries, including AI Research, Retail/Consumer, Energy, Banking.
Increase inotify watchers in Docker images during build
Increasing fs.inotify.max_user_watches for Docker images
TL;DR You can't set those for an image during build time becasue Docker takes
the sysctl configuration from the Host. So, set the config on your host machine.
As in this
link, to increase the maximum watchers, we need set fs.inotify.max_user_watches
to a higher number in /etc/sysctl.conf.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A Ruby script for collecting phone record statistics from a Facebook user data dump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add Anaconda Prompt to Windows right click context menu
This gist describes how to add Anaconda Prompt to the Windows right click context menu. This is because at some point, Anaconda no longer adds itself to the PATH after installation.
Run regedit.exe
Navigate to HKEY_CLASSES_ROOT > Directory > Background > shell
Add a key named AnacondaPrompt and set its value to "Anaconda Prompt Here" (or anything you'd like it to appear as in the right click context menu)
Add a key under this key, called command, and set its value to cmd.exe /K C:\Anaconda3\Scripts\activate.bat (may have to change the activate.bat file to whereever Anaconda is installed)
Software for scientists: community-edited list of general-purpose software for scientists.
Software for scientists
Some things takes much less time and stress once you know the right tool.
Below, there is a community edited list of software for scientists.
Text editors
in
General purpose text/code editors.
It may be better to have a good editor for everything, than different ones for different languages, scripts, notes.
A pretty good unbound.conf, DNSSEC, caching and local forwarding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is my personal guide for installing pfSense. Hope you find it useful. I made these notes to capture the details of my "install from scratch" to ensure I didn't miss important details. Also, I'm trying build my network with discrete "disposable" components that make the system mutable and less rigid. It does not cover installing any packages like Squid or Suricata as that's way beyond the scope of a basic, functional install.
I migrated from an environment that was at various times running Tomato Toastman 1.28 or Asuswrt-Merlin on Netgear and ASUS routers across four "access points" (one always acting as the firewall/gateway, the rest as APs). It was OK pre-gigabit, but had roaming problems, and I was using large Wifi routers with most of the features disabled. Also, I found that I could easily swamp the network and tank VOIP and Wifi Calling without even trying. The only fix was to throttle everything by using Bandwidth Limit