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
If you are having trouble following along on an M1 Mac, it's because the versions of the packages included | |
in the environment for the course do not play nicely with ARM64 processors. | |
After much rending of shirts, I have come up with an environment which works. | |
To set it up, follow the steps below exactly: | |
1) If not already done, remove the existing `conda` environment you were using for the course, we have to rebuild it. | |
2) Remove any existing installation of Anaconda or Miniconda. |
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
#!/bin/sh | |
DEFAULTROUTE=`/sbin/route | /bin/grep -v '*' | /bin/grep eth0 | /usr/bin/awk '{print $2}' | /usr/bin/head -n1` | |
NTPSERVERS=`/bin/grep 'list server' /etc/config/system | /usr/bin/awk '{print $3}' | /bin/sed "s/'//g"` | |
for HOST in $NTPSERVERS; do /sbin/route add $HOST gw $DEFAULTROUTE; done |
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
<LanguageInjectionConfiguration> | |
<injection language="SQL" injector-id="php"> | |
<display-name>"SQL select/delete/insert/update/create" Excluding Doctrine DQL</display-name> | |
<place><![CDATA[and(not(phpLiteralMatchesBrics(".*:.*")), phpLiteralMatchesBrics(" *(((SELECT|DELETE) .*FROM)|((INSERT|REPLACE) .*INTO)|(UPDATE .* SET)|((CREATE|DROP|ALTER) +((TEMPORARY )?TABLE|(UNIQUE )?INDEX))) .*"))]]></place> | |
</injection> | |
</LanguageInjectionConfiguration> |