This file contains hidden or 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
| conda create -n textgen python=3.10.9 | |
| conda activate textgen | |
| install pytorch: pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 | |
| git clone https://github.com/oobabooga/text-generation-webui | |
| cd text-generation-webui | |
| pip install -r requirements.txt | |
| python server.py | |
| # download model | |
| # refresh model list | |
| # load model |
This file contains hidden or 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
| <?php | |
| /* | |
| * Mysql database class - only one connection alowed | |
| */ | |
| class Database { | |
| private $_connection; | |
| private static $_instance; //The single instance | |
| private $_host = "HOSTt"; | |
| private $_username = "USERNAME"; | |
| private $_password = "PASSWORd"; |
This file contains hidden or 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 | |
| # | |
| # Upload image(s) to imgur.com | |
| # Copyright (C) 2014 Vivien Didelot <[email protected]> | |
| # Licensed under GPL version 3, see http://www.gnu.org/licenses/gpl.txt | |
| # | |
| # Requires "jshon": | |
| # http://kmkeen.com/jshon/ | |
| # | |
| # Alternatives, which suck: |
This file contains hidden or 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
| FROM gizra/drupal-lamp | |
| ADD . /var/www/html/circuit/repository | |
| WORKDIR /var/www/html/circuit/repository | |
| # Add a bash script to finalize all | |
| COPY docker_files/run.sh /var/www/html/circuit/repository/docker_files/run.sh | |
| RUN chmod +x /var/www/html/circuit/repository/docker_files/run.sh | |
| #ENTRYPOINT ["/var/www/html/circuit/repository/docker_files/run.sh"] |
This file contains hidden or 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
| sudo apt-get update | |
| sudo apt-get install -y build-essential chrpath libssl-dev libxft-dev | |
| sudo apt-get install -y libfreetype6 libfreetype6-dev | |
| sudo apt-get install -y libfontconfig1 libfontconfig1-dev | |
| cd ~ | |
| export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" | |
| wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 | |
| tar xvjf $PHANTOM_JS.tar.bz2 | |
| mv $PHANTOM_JS /usr/local/share | |
| ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin |