server {
server_name your_domain www.your_domain;
client_max_body_size 20M;
location / {
proxy_pass http://localhost:9990;
}
}
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 | |
# Reset | |
Color_Off='' | |
# Regular Colors | |
Red='' | |
Green='' | |
Yellow='' | |
Cyan='' |
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
@echo off | |
gen > in | |
slow < in > slow_out | |
fast < in > fast_out | |
fc slow_out fast_out | |
if errorlevel 1 exit | |
test |
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
#!/usr/bin/bash | |
RED='\e[0;31m' #red color | |
NC='\e[0m' # no color | |
GREEN='\e[0;32m' # green | |
YELLOW='\e[0;33m' # yello | |
CYAN='\e[0;36m' # cyan | |
for((i = 1; i <= $4 ; ++i)); do | |
./$3 > input |
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
# get latest release from github | |
LATEST_RELEASE=$(curl -s https://api.github.com/repos/username/repo_name/releases/latest | grep "tag_name" | cut -d '"' -f 4) |
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 React, { Component } from "react"; | |
import { Link } from "react-router-dom"; | |
export default class ErrorBoundary extends Component { | |
state = { hasError: false }; | |
// whenever an error happens this function will be invoked by React to | |
// no object will be created that's why static method | |
static getDerivedStateFromError() { | |
return { hasError: true }; |
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 { Component } from "react"; | |
export default class ErrorBoundary extends Component { | |
state = { hasError: false }; | |
// whenever an error happens this function will be invoked by React to | |
// no object will be created that's why static method | |
static getDerivedStateFromError() { | |
return { hasError: true }; | |
} |
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
Build in ways to check the code coverage in golang! |
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
# These are the fixex for general Docker swarn problems |
OlderNewer