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
# See https://devblogs.microsoft.com/dotnet/improving-multiplatform-container-support/ | |
# 8.0-preview-alpine works too | |
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-preview AS build | |
ARG TARGETARCH | |
WORKDIR /source | |
# copy csproj and restore as distinct layers | |
COPY *.csproj . | |
RUN dotnet restore -a $TARGETARCH |
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
;read this for more info: https://xdebug.org/docs/upgrade_guide | |
zend_extension=xdebug.so | |
;mode is a new setting. debug let us use debugger in an IDE, develop enhances var_dump output | |
xdebug.mode=debug,develop | |
;default port changed to 9003, so we should change this in our IDE also | |
xdebug.client_port=9003 | |
;trigger it via get variable or cookie | |
xdebug.start_with_request=trigger | |
xdebug.remote_log="/tmp/xdebug.log" | |
xdebug.cli_color=2 |
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
Note: I don't know where does this thread belongs. If I'm on the incorrect section, move it to the correct one. | |
Many people are literally just selling this method and I feel like sharing this out so that you don't have to pay because the seller just don't do a minute of work to get you the drive. | |
So moving straight towards the method: | |
Step I: | |
Go to this link: https://td.fastio.me/ (mirrors to be left at the last) | |
Step II: | |
Type your desired drive's name at the first field and your Gmail on the bottom field. |
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
/* | |
-------------------------------------------------------- | |
Please note that this grouping is just for example... | |
You can rearrange POPs, remove or add dacaneters according to your needs. | |
-------------------------------------------------------- | |
First, we have to get all Cloudflare POP codes (three letter airport codes) from https://www.cloudflarestatus.com/ | |
North America is routed to Chigaco datacenter; | |
Europe, Africa and Middle East is routed to Amsterdam datacenter; |
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/bash | |
set -eu | |
SYSCTL_FILE=/etc/sysctl.d/90-tcp-bbr.conf | |
# check root | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi |
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
<?php | |
namespace App\Console; | |
use Illuminate\Console\Scheduling\Schedule; | |
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | |
class Kernel extends ConsoleKernel | |
{ | |
/** |
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 java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |