Skip to content

Instantly share code, notes, and snippets.

View hoangphison's full-sized avatar
🏠
Working from home

SON HOANG ライト hoangphison

🏠
Working from home
View GitHub Profile
@hoangphison
hoangphison / README.md
Last active December 31, 2024 08:45
Automated ComfyUI Installation and Hugging Face Model Download

Instructions:

  1. 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"
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
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
@hoangphison
hoangphison / fpt.m3u8
Last active October 7, 2019 14:17
FPT IPTV
#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
@hoangphison
hoangphison / README.md
Created September 4, 2019 05:39 — forked from atenni/README.md
How to permalink to a gist's raw file

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/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]

<?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*)>
@hoangphison
hoangphison / phpmd-ruleset.xml
Created August 23, 2019 05:27 — forked from slayerfat/phpmd-ruleset.xml
php mess detector ruleset for laravel and similar frameworks
<?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>
@hoangphison
hoangphison / nginx.conf
Created August 23, 2019 02:39 — forked from agouriou/nginx.conf
Example Nginx (> 1.9) configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs. Handle error status (4xx, 5xx) and expose headers.
#
# 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
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
@hoangphison
hoangphison / Dockerfile-56
Created July 20, 2019 02:57
Laravel php-fpm 5.6 dockerfile
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 \