linx #16
Interesting links:
- what to do if you get a black screen when booting your mac - happened to me today. The tip with Shift+Control+Option+Power was what I needed.
osx capture output of running process
Problem: want to capture output of an already running process
Solution: found here
after, run:
- save above code in capture.sh
- source capture.sh
- capture PID
facebook flow comment types
Problem: you want to add flow, but you don’t want to complicate your build process.
Solution: use comment types.
python SimpleHTTPServer ssl
Problem: wanted to serve some assets over https using SimpleHTTPServer.
Solution: used info from here and here
- following snippet combines both of those links:
spring kotlin Your ApplicationContext is unlikely to start
Problem: started a kotlin spring app. Received this message: Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package. Problem is described here as well.
Solution:
- move files out of the default package, to a named one.
find program using port
Problem: find which process is using a specific port.
Solution: found here
add hours to a datetime object
Problem: want to add hours to a datetime object
Solution: use timedelta
simple sorting of csv lines via python and pandas
Problem: have a file containing a lot of csv entries that I’d like to sort via a specific column ( published, in my case )
Solution: use pandas:
bash run command until status code is not zero
Problem: want to run a command until the exit code is not zero
Solution: found here