- Set the Hugging Face token:
Ensure that you have your Hugging Face token available. You can generate one from your Hugging Face account settings.
Then, either set it temporarily in your shell session or permanently by adding it to your shell configuration file.
export HF_TOKEN="your_huggingface_api_token"
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 -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ | |
| && php composer-setup.php --install-dir=/usr/local/bin --filename=composer \ | |
| && php -r "unlink('composer-setup.php');" \ | |
| && chmod +x /usr/local/bin/composer |
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 -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php --install-dir=/usr/local/bin --filename=composer && php -r "unlink('composer-setup.php');" && chmod +x /usr/local/bin/composer |
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
| #EXTM3U sonhp 2019-10-07 21:17:14 | |
| #EXTINF:-1 tvg-id="vtv1" tvg-name="VTV1 HD" tvg-logo="https://i.imgur.com/te4Rb7f.png" group-title="KÊNH VTV",VTV1 HD | |
| udp://@225.1.2.249:30120 | |
| #EXTINF:-1 tvg-id="vtv2" tvg-name="VTV2 HD" tvg-logo="https://i.imgur.com/KmngEnt.png" group-title="KÊNH VTV",VTV2 HD | |
| udp://@225.1.2.13:30120 | |
| #EXTINF:-1 tvg-id="vtv3" tvg-name="VTV3 HD" tvg-logo="https://i.imgur.com/yNiXZri.png" group-title="KÊNH VTV",VTV3 HD | |
| udp://@225.1.2.247:30120 | |
| #EXTINF:-1 tvg-id="vtv4" tvg-name="VTV4 HD" tvg-logo="https://i.imgur.com/WG3Wi0q.png" group-title="KÊNH VTV",VTV4 HD | |
| udp://@225.1.2.20:30120 | |
| #EXTINF:-1 tvg-id="vtv5" tvg-name="VTV5 HD" tvg-logo="https://i.imgur.com/lOvwbNQ.png" group-title="KÊNH VTV",VTV5 HD |
Problem: When linking to the raw version of a gist, the link changes with each revision.
Solution:
To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/
- Example: https://gist.github.com/atenni/5604522/raw/
- Works even when you change the filename.
To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE tv [ | |
| <!-- DTD for TV listings http://xmltv.cvs.sourceforge.net/viewvc/xmltv/xmltv/xmltv.dtd --><!ELEMENT tv (channel* , programme*)> | |
| <!ATTLIST tv date CDATA #IMPLIED> | |
| <!ATTLIST tv source-info-url CDATA #IMPLIED> | |
| <!ATTLIST tv source-info-name CDATA #IMPLIED> | |
| <!ATTLIST tv source-data-url CDATA #IMPLIED> | |
| <!ATTLIST tv generator-info-name CDATA #IMPLIED> | |
| <!ATTLIST tv generator-info-url CDATA #IMPLIED> | |
| <!ELEMENT channel (display-name+ , icon* , url*)> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <ruleset name="Laravel and similar phpmd ruleset" | |
| xmlns="http://pmd.sf.net/ruleset/1.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | |
| xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | |
| <description> | |
| Inspired by https://github.com/phpmd/phpmd/issues/137 | |
| using http://phpmd.org/documentation/creating-a-ruleset.html | |
| </description> |
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
| # | |
| # CORS header support | |
| # | |
| # One way to use this is by placing it into a file called "cors_support" | |
| # under your Nginx configuration directory and placing the following | |
| # statement inside your location block(s): | |
| # | |
| # include cors_support; | |
| # | |
| # A limitation to this method is that Nginx doesn't currently send headers |
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
| brew cask install virtualbox | |
| brew cask install virtualbox-extension-pack | |
| brew cask install docker | |
| brew cask install sequel-pro | |
| brew cask install sourcetree | |
| brew cask install phpstorm | |
| brew cask install iterm2 | |
| brew cask install sublime-text | |
| brew cask install google-chrome | |
| brew cask install firefox |
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 php:5.6-fpm | |
| MAINTAINER Dmitry Alexeev <dimks.alexeev@gmail.com> | |
| ADD ./laravel.ini /usr/local/etc/php/conf.d | |
| ADD ./laravel.pool.conf /usr/local/etc/php-fpm.d/ | |
| # Install and configure GD | |
| RUN apt-get update && apt-get install -y \ | |
| libfreetype6-dev \ |
NewerOlder