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
# pandoc import check | |
FROM pandoc/core:3.6.3-ubuntu AS pandoc | |
# 作成先 | |
FROM ubuntu:24.04 | |
COPY --from=pandoc /usr/local/bin/pandoc* /usr/local/bin/ | |
COPY --from=pandoc /usr/local/lib/libffi* /usr/local/lib/ | |
COPY --from=pandoc /usr/local/share /usr/local/share |
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/Laravel + NodeJS | |
# same as : https://zenn.dev/at_yasu/scraps/1de9de2597fdb7 | |
FROM node:23 as node | |
FROM composer:latest as composer | |
FROM php:8.3-apache | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
git \ |
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 | |
namespace Main\Repository; | |
interface HogeRepository | |
{ | |
public getVolumes(): int; | |
} | |
namespace Tests\Dummy; |
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 | |
$accessLevel = 'foo'; | |
echo ($accessLevel != "user // Check if admin " ) ? '1' : 'nooo' |
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
#!/usr/bin/env bash | |
# | |
# ./ssl_check.sh <host> | |
# | |
# Via: https://serverfault.com/questions/661978/displaying-a-remote-ssl-certificate-details-using-cli-tools | |
host_name=$1 | |
if [[ "X${host_name}" = "X" ]]; then | |
echo "./ssl_check.sh <host>" |
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
__pycache__ | |
bzr-orphans | |
*.a | |
*.o | |
*.py[co] | |
*.so | |
*.sw[nop] | |
*~ | |
.#* | |
[#]*# |
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
<component name="InspectionProjectProfileManager"> | |
<profile version="1.0"> | |
<option name="myName" value="atys php inspection" /> | |
<inspection_tool class="ClassNameCollisionInspection" enabled="false" level="WARNING" enabled_by_default="false" /> | |
<inspection_tool class="JSDuplicatedDeclaration" enabled="false" level="WARNING" enabled_by_default="false" /> | |
<inspection_tool class="MethodCanBePrivateInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> | |
<inspection_tool class="MethodShouldBeFinalInspection" enabled="false" level="WARNING" enabled_by_default="false" /> | |
<inspection_tool class="MissingParameterTypeDeclarationInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> | |
<inspection_tool class="MissingReturnTypeInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> | |
<inspection_tool class="ToStringCallInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> |
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 | |
namespace App\Rules; | |
use Illuminate\Contracts\Validation\Rule; | |
use JsonSchema\Validator; | |
/** | |
* Class JsonSchemaRule |
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
#!/usr/bin/env bash | |
echo '[INFO] Start Update And Install MySQL5.7'; | |
sudo yum update -y; | |
sudo rpm -ivh https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm; | |
sudo yum-config-manager --disable mysql80-community; | |
sudo yum-config-manager --enable mysql57-community |
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
#!/usr/bin/env python3 | |
# | |
# epub-zipping.py | |
# =============== | |
# | |
# This create epub file from directory files. | |
# | |
# Description | |
# ---------------- | |
# |
NewerOlder