Skip to content
/ til Public

Today I learned(/spent hours doing, I don't want to forget)

Notifications You must be signed in to change notification settings

jsnctl/til

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 

Repository files navigation

til

Roadsigns along the way (normally found after hours of strife)

  • 21-12-17: Docker for Mac default binds to 'no particular address' 0.0.0.0, not to loopback 127.0.0.1
  • 22-01-18: PySpark might need spark.executorEnv.PYTHONHASHSEED set to a random int, as 3.3+/Spark 2+ doesn't seem to set this on the executors
  • 25-01-18: If in client mode, PySpark will need to have spark.driver.memory set in init vs. at runtime (e.g. spark-submit --driver-memory 10G)
  • 02-02-18: s3(n/a) filesystem support ships with Hadoop2.4, 2.5+ require additional hadoop-aws dependency
  • 12-02-18: Keras (especially when booting on a fresh EC2 instance) will often need the env variables
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64"
export CUDA_HOME=/usr/local/cuda
  • 16-02-18: If SettingWithCopyWarning is being a PITA with pandas, stick in
pd.options.mode.chained_assignment = None
a = 5
b = 'a < 5' if a < 5 else 'a >= 5'
print(b)
$ a >= 5
  • 31-01-19: Always need to look this up: multi-instance edit in Sublime cmd + ctrl + G
  • 24-07-19: Kill list of PIDs associated with an lsof/open files
lsof -i :port | awk 'NR>1{print $2}' | xargs kill -9
pip install pytest-xdist
...
pytest -n auto
  • 15-02-21: The ports command in docker-compose opens the container port to everything outside of the network. Not good, get it tae fuck
  • 10-11-21: Moving files to a new repo, but maintaining git history
  • 11-05-22: git checkout --theirs accepts all incoming conflicts, git checkout --ours maintains conflicts on this branch

About

Today I learned(/spent hours doing, I don't want to forget)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published