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 | |
| SERVICES=$(echo "$DEPENDENCIES" | tr "|" "\n") | |
| resolve() | |
| { | |
| for SERVICE in $SERVICES; do | |
| ip=$(nslookup "$SERVICE" | awk '/^Address: / { print $2 }') |
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
| version: '3.3' | |
| services: | |
| certbot: | |
| image: certbot/certbot | |
| entrypoint: "certbot certonly --standalone --non-interactive --preferred-challenges http --email [email protected] --agree-tos -d x.com,x.x.com" | |
| volumes: | |
| - ./letsencrypt:/etc/letsencrypt | |
| ports: | |
| - 80:80 |
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
| import { Suspense } from 'react'; | |
| export default function Test() { | |
| return ( | |
| <Suspense fallback={<h1>Loading...</h1>}> | |
| <Shows /> | |
| </Suspense> | |
| ); | |
| } |
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
| function walker({name}) { | |
| return { | |
| walk: () => console.log(name + ' can walk'), | |
| } | |
| } | |
| function attacker({name}) { | |
| return { | |
| attack: () => console.log(name + ' can attack'), | |
| } | |
| } |
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
| public function importCsv($model, $fileName) | |
| { | |
| $model = '\\App\\Models\\' . $model; | |
| $file = public_path('csv/' . $fileName . '.csv'); | |
| $arr = $this->csvToArray($file); | |
| foreach ($arr as $row) | |
| { | |
| unset($row['id']); |