sudo /usr/local/mysql/support-files/mysql.server start
sudo /usr/local/mysql/support-files/mysql.server stop
sudo /usr/local/mysql/support-files/mysql.server restart
ab -c200 -t10 http://localhost:8080/ |
git revert --no-commit {SHA_COMMIT}..HEAD && git add --all && git commit -m "revert" |
# Resets index to former commit; replace '56e05fced' with your commit code | |
git reset 56e05fced | |
# Moves pointer back to previous HEAD | |
git reset --soft HEAD@{1} | |
git commit -m "Revert to 56e05fced" | |
# Updates working copy to reflect the new commit | |
git reset --hard |
#!bin/sh | |
echo '{"ae": 1}' | python -m json.tool |
filter {
if [program] =~ /^postfix.*\/cleanup.*/ {
grok {
patterns_dir => ["/etc/logstash/patterns"]
match => { message => "%{SYSLOGBASE} %{QUEUEID:qid}: %{POSTFIX_WARNING_LEVEL: level}: header Message-%{MESSAGE_ID_HEADER:id}: (\W\s<)?(<)?%{GREEDYDATA:messageId}> from (%{RELAY}); from=<%{EMAILADDRESS:from}>(\sto=<%{EMAILADDRESS:to}>)?"}
named_captures_only => false
add_tag => ["_match_successfull", "grokked"]
USERNAME [a-zA-Z0-9._-]+ | |
USER %{USERNAME} | |
INT (?:[+-]?(?:[0-9]+)) | |
BASE10NUM (?<![0-9.+-])(?>[+-]?(?:(?:[0-9]+(?:\.[0-9]+)?)|(?:\.[0-9]+))) | |
NUMBER (?:%{BASE10NUM}) | |
BASE16NUM (?<![0-9A-Fa-f])(?:[+-]?(?:0x)?(?:[0-9A-Fa-f]+)) | |
BASE16FLOAT \b(?<![0-9A-Fa-f.])(?:[+-]?(?:0x)?(?:(?:[0-9A-Fa-f]+(?:\.[0-9A-Fa-f]*)?)|(?:\.[0-9A-Fa-f]+)))\b | |
POSINT \b(?:[1-9][0-9]*)\b | |
NONNEGINT \b(?:[0-9]+)\b |
# RM ALL WHICH OUTS with rm | |
which npm | |
which node | |
whoch nvm | |
# Clean usr | |
sudo rm -rf /usr/bin/node | |
sudo rm -rf /usr/bin/npm | |
# Clean path |
#!/usr/bin/env zsh | |
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" | |
setopt promptsubst | |
autoload -U add-zsh-hook | |
PROMPT_SUCCESS_COLOR=$FG[117] | |
PROMPT_FAILURE_COLOR=$FG[124] | |
PROMPT_VCS_INFO_COLOR=$FG[242] |
Now go to very bottom:
PasswordAuthentication
from "no" to "yes".
Type: service sshd reload