MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
| #!/bin/bash | |
| set -e | |
| brew install llvm libomp python@3.11 | |
| export CC=$(brew ls --verbose llvm | grep -e 'bin/clang$') | |
| export CXX=$(brew ls --verbose llvm | grep -e 'bin/clang++$') | |
| git clone https://github.com/comfyanonymous/ComfyUI.git | |
| cd ComfyUI | |
| python3.11 -m venv venv |
| version: '2.2' | |
| services: | |
| elasticsearch: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:6.4.1 | |
| container_name: elasticsearch | |
| environment: | |
| - cluster.name=docker-cluster | |
| - bootstrap.memory_lock=true | |
| - "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
| ulimits: |
| # UPDATED 17 February 2019 | |
| # Redirect all HTTP traffic to HTTPS | |
| server { | |
| listen 80; | |
| listen [::]:80; | |
| server_name www.domain.com domain.com; | |
| return 301 https://$host$request_uri; | |
| } | |
| # SSL configuration |
| #!/bin/bash | |
| # Thanks to https://gist.github.com/Lewiscowles1986/ce14296e3f5222082dbaa088ca1954f7 | |
| if [ "$(whoami)" != "root" ]; then | |
| echo "Run script as ROOT please. (sudo !!)" | |
| exit | |
| fi | |
| echo "deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi" > /etc/apt/sources.list.d/stretch.list | |
| echo "APT::Default-Release \"jessie\";" > /etc/apt/apt.conf.d/99-default-release |
| #!/bin/bash | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Must be root" | |
| exit | |
| fi | |
| apt-get update -y | |
| apt-get upgrade -y | |
| apt-get dist-upgrade -y |
| // Extend a winston by making it expand errors when passed in as the | |
| // second argument (the first argument is the log level). | |
| function expandErrors(logger) { | |
| var oldLogFunc = logger.log; | |
| logger.log = function() { | |
| var args = Array.prototype.slice.call(arguments, 0); | |
| if (args.length >= 2 && args[1] instanceof Error) { | |
| args[1] = args[1].stack; | |
| } | |
| return oldLogFunc.apply(this, args); |
| app.directive('backButton', function(){ | |
| return { | |
| restrict: 'A', | |
| link: function(scope, element, attrs) { | |
| element.bind('click', goBack); | |
| function goBack() { | |
| history.back(); | |
| scope.$apply(); |
| #user nobody; | |
| worker_processes 1; | |
| error_log /usr/local/var/log/nginx/error.log; | |
| #error_log logs/error.log notice; | |
| #error_log logs/error.log info; | |
| #pid logs/nginx.pid; | |