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
| mysql-db: | |
| image: mysql | |
| hostname: mysql-db | |
| ports: | |
| - "3306:3306" | |
| volumes: | |
| - ./data/mysql:/var/lib/mysql | |
| - ./data/script:/docker-entrypoint-initdb.d | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=${DBP_ROOT} |
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 | |
| function zcast_stream($file, $content_type = 'application/octet-stream') { | |
| @error_reporting(0); | |
| // Make sure the files exists, otherwise we are wasting our time | |
| if (!file_exists($file)) { | |
| header("HTTP/1.1 404 Not Found"); | |
| exit; | |
| } |
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
| ######################################################################## | |
| # OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.6 - 10/2022 | |
| # ---------------------------------------------------------------------- | |
| # @Author: Andreas Hecht | |
| # @Author URI: https://seoagentur-hamburg.com | |
| # License: GNU General Public License v2 or later | |
| # License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
| ######################################################################## | |
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 | |
| /** | |
| * wget just like linux wget command | |
| * | |
| * @author Mohammed Al Ashaal <is.gd/alash3al> | |
| * @version 1.0.0 | |
| * @license MIT License | |
| * | |
| * @param string $url example 'http://site.com/xxx?k=v' | |
| * @param string $method example 'GET' |
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
| <div id="screen"> | |
| <h1>Wordle</h1> | |
| <div id="grid"></div> | |
| <div id="keyboard"></div> | |
| </div> | |
| <style> | |
| body, html { | |
| background: #111; | |
| color: white; | |
| font-family: sans-serif; |
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/bash | |
| LOL=/tmp/LOLZ | |
| RUNNING=true | |
| while $RUNNING; do | |
| case $([ -f $LOL ] && cat $LOL) in | |
| INIT) | |
| echo "Reached INIT State. Moving to WORK state." | |
| echo "WORK" > $LOL |
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
| <!DOCTYPE HTML> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>test upload by chunk</title> | |
| </head> | |
| <body> | |
| <input type="file" id="f" /> | |
| <script src="script.js"></script> |
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
| func makeGetCall() { | |
| // Set up the URL request | |
| let todoEndpoint: String = "https://jsonplaceholder.typicode.com/todos/1" | |
| guard let url = URL(string: todoEndpoint) else { | |
| print("Error: cannot create URL") | |
| return | |
| } | |
| let urlRequest = URLRequest(url: url) | |
| // set up the session |
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 | |
| #inside docker container | |
| HOST_IP=$(/sbin/ip route|awk '/default/ { print $3 }') | |
| CONTAINER_IP=$(curl "$HOST_IP:8000" 2>/dev/null) | |
| echo "container ip is $CONTAINER_IP" |
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
| apt-get update && apt-get install -y curl && curl --silent https://bootstrap.pypa.io/get-pip.py |python3 && pip install --upgrade httpie |
NewerOlder