Instantly share code, notes, and snippets.
Discover gists
#include<iostream> | |
#include<cstdio> | |
#include<vector> | |
#include<event2/event.h> | |
#include<glog/logging.h> | |
#include<cassert> | |
#include<string> | |
#include<cstring> | |
#include<sys/socket.h> | |
#include<netinet/in.h> |
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################ | |
############ FROM openproject/openproject:16 ################ | |
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################ | |
############ If you are runing a manual installation: ################ | |
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################ | |
############ also be sure to RESTART OpenProject after replacing the file. ################ | |
############ If using some other set up (eg docker-compose), read the comments on ################ | |
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################ |
RMMR RMMR | |
FRMWWWWWWMF FRMWWWWWWMRF | |
RMWWWWWWWWWWWWWMMWWWWWWWWWWWWWMR | |
MWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWR | |
MWWWWWWWWWWWWWMMMMMMWWWWWWWWWWWWWM | |
MWWWWWWWWMRF FRMWWWWWWWWM | |
WWWWWWMF RMWWWWWM | |
FMWWWWWF RWWWWWMF | |
FMWWWWWWM FMWWWWWMRF | |
FMWWWWWWWWM FWWWWWWWWWMF |
#!/usr/bin/env python3 | |
importos | |
importsys | |
importclick | |
importsubprocess | |
importtempfile | |
importitertoolsasIT | |
importselect | |
fromtimeimportsleep |
defoinsum(eq,*arrays): | |
"""A ``einsum`` implementation for ``numpy`` object arrays. | |
""" | |
importnumpyasnp | |
importfunctools | |
importoperator | |
lhs,output=eq.split('->') | |
inputs=lhs.split(',') |
Disclaimer: I'm not the original author of this sheet, but can't recall where I found it.If you know the author, please let me know so I give the attribution.
The original author seems to be Charles Edge, here's theoriginal content, as pointed out by @percisely.
Note: Since this seems to be helpful to some people, I formatted it to improve readability of theoriginal. Also, note that this is from 2016, many things may have changed, and I don't use macOS anymore, so I probably can't help in case of questions, but maybe someone else can.
After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and s