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
import torch | |
from diffusers.utils import load_image | |
from diffusers import FluxControlNetModel | |
from diffusers.pipelines import FluxControlNetPipeline | |
# Load pipeline | |
controlnet = FluxControlNetModel.from_pretrained( | |
"jasperai/Flux.1-dev-Controlnet-Upscaler", | |
torch_dtype=torch.bfloat16 | |
) |
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
jq ' | |
[ | |
.messages[] | | |
{from, date} | | |
select(.from != null) | |
] | | |
group_by(.from) | | |
map({ | |
from: .[0].from, | |
count: length, |
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
* { | |
--ring-link-color: #58A6FF; | |
--ring-content-background-color: black; | |
--yt-app-background: #0e141c; | |
--yt-app-background-dark: #0D1117; | |
--yt-app-text-color: #deedfb; | |
--yt-app-dark-grey-color: #8b949e; | |
--ring-text-color:#f0f0f0; | |
--ring-secondary-color: #b5c2d0; | |
--yt-app-text-grey-mid: #95a0ac; |
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
FROM php:7-fpm | |
# Install modules | |
RUN apt-get update && apt-get install -y \ | |
libmcrypt-dev \ | |
libicu-dev \ | |
&& docker-php-ext-install iconv \ | |
&& docker-php-ext-install mcrypt \ | |
&& docker-php-ext-install intl \ | |
&& docker-php-ext-install opcache \ | |
&& docker-php-ext-install mbstring |
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
apt-get install ruby2.0 ruby2.0-dev ruby-ffi libsqlite3-dev git ca-certificates nodejs build-essential | |
gem2.0 install bundler rake fpm | |
git clone https://github.com/sj26/mailcatcher.git | |
cd mailcatcher | |
bundle install | |
bundle exec rake assets | |
bundle exec rake package | |
gem2.0 install --conservative mailcatcher-0.6.4.gem --no-ri --no-rdoc --install-dir /tmp/gems | |
mkdir packages |
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 | |
temporaryPath="$(mktemp -t php-no-debug.XXXX)" | |
find /etc/php5/cli/php.ini /etc/php5/cli/conf.d/*.ini ! -name 20-xdebug.ini | xargs cat > "$temporaryPath" | |
/usr/bin/php -n -c "$temporaryPath" "$@" | |
rm -f "$temporaryPath" |
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
{% block checkbox_radio_label %} | |
{# Do not display the label if widget is not defined in order to prevent double label rendering #} | |
{% if widget is defined %} | |
{% if required %} | |
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' required')|trim}) %} | |
{% endif %} | |
{% if parent_label_class is defined %} | |
{% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ parent_label_class)|trim}) %} | |
{% endif %} | |
{% if label is not sameas(false) and label is empty %} |