$ openssl genrsa -out private.key 4096
openssl req -new -sha256 \
@function dasherize($string) { | |
$progress: str-slice($string, 2); | |
$result: str-slice($string, 1, 1); | |
@while str-length($progress) > 0 { | |
$char: str-slice($progress, 1, 1); | |
$mayus: to-upper-case($char); | |
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended" | |
], |
<?php | |
declare(strict_types=1); | |
namespace App\Doctrine\EventListener; | |
use Doctrine\DBAL\Schema\PostgreSQLSchemaManager; | |
use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs; | |
final class FixPostgreSQLDefaultSchemaListener |
/** | |
* Hypertext Transfer Protocol (HTTP) response status codes. | |
* | |
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes} | |
*/ | |
export enum HttpStatusCode { | |
/** | |
* The server has received the request headers and the client should proceed to send the request body | |
* (in the case of a request for which a body needs to be sent; for example, a POST request). |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>OpenStreetMap & OpenLayers - Marker Example</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<link rel="stylesheet" href="https://openlayers.org/en/v4.6.5/css/ol.css" type="text/css"> | |
<script src="https://openlayers.org/en/v4.6.5/build/ol.js" type="text/javascript"></script> | |
<script> |
#!/bin/bash | |
# Downloads busybox to run vi on heroku | |
# Tested on heroku-16 | |
# Fetch the version of busybox in the alpine repository | |
VERSION=$(curl -s -L http://dl-cdn.alpinelinux.org/alpine/latest-stable/main/x86_64/APKINDEX.tar.gz | tar -xzOf - APKINDEX | grep -A 12 -B 1 "^P:busybox-static$" | grep "^V:" | cut -c3-) | |
# Download busybox-static from the alpinelinux repository and extract the binary into /app/bin | |
# if the download fails visit the repository to check if the filename has changed | |
# The Output: |
<?php | |
namespace App\Http\Middleware; | |
use Closure; | |
use Illuminate\Http\Request; | |
class JsonMiddleware | |
{ | |
public function handle(Request $request, Closure $next) |
.center{ | |
display: -webkit-box; | |
display: -moz-box; | |
display: -ms-flexbox; | |
display: -webkit-flex; | |
display: flex; | |
-webkit-box-direction: normal; | |
-moz-box-direction: normal; | |
-webkit-box-orient: horizontal; | |
-moz-box-orient: horizontal; |
When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.
filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&id=${fileid}"