Excluir a pasta .git
pode causar problemas ao repositório Git. Se a intenção é excluir todo o histórico de commits, mas manter o código e sua estrutura atual, tente isso:
# Faça Checkout em um branch temporario:
git checkout --orphan TEMP_BRANCH
Excluir a pasta .git
pode causar problemas ao repositório Git. Se a intenção é excluir todo o histórico de commits, mas manter o código e sua estrutura atual, tente isso:
# Faça Checkout em um branch temporario:
git checkout --orphan TEMP_BRANCH
<?php | |
// ... | |
public function up() | |
{ | |
Grammar::macro('typeFoo', function () { | |
return 'foo'; | |
}); | |
DB::unprepared('CREATE TYPE foo AS ENUM ('a', 'b', 'c');'); | |
package com.autodesk.adn.viewanddata; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.util.Collection; | |
import java.util.HashMap; | |
import java.util.UUID; | |
import javax.servlet.ServletException; |
// function (exports, module, require, __filename, __dirname) { | |
let nome = 'Gilberto Albino' | |
console.log(arguments) | |
// return module.exports | |
//}(module.exports) |
require('wrapper.js') |
# The general procedure here is adapted from the 7->8 guide here. https://www.tecmint.com/upgrade-centos-7-to-centos-8/ | |
# | |
# It is a curated list of my bash history. I entered other commands so hopefully I got the right ones here. | |
yum upgrade | |
reboot | |
dnf install epel-release | |
dnf install rpmconf | |
dnf install yum-utils | |
rpmconf -a # answer "n" to both things |
// Just copy and paste, and press ENTER 2 times! | |
def clear(): | |
import os; | |
os.system("tput reset") | |
os.system("cls" if os.name == "nt" else "echo -e \\\\033c") | |
// Use it: | |
clear() | |
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
server { | |
listen YOUR_IP_ADDRESS:80 default_server; | |
root /var/www/nginx; | |
index index.html index.htm; | |
# This is just an invalid value which will never trigger on a real hostname. | |
server_name _; | |
server_name_in_redirect off; |