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 | |
# Power-line | |
PS1_col() { | |
case "$1" in | |
black) echo 0;; | |
red) echo 1;; | |
green) echo 2;; | |
yellow) echo 3;; | |
blue) echo 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
# ansible-playbook useradd.yml -e user_name=user -i hproduction -l any.host.net | |
--- | |
- hosts: | |
- all | |
gather_facts: false | |
become: true | |
# vars: | |
# user_name: "" | |
# user_state: "" |
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 | |
tail /var/log/nginx/kami-no_ru.error.log | awk '{print substr($0,0,19)}' | sort | uniq -c | sort |
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
{ | |
"annotations": { | |
"list": [ | |
{ | |
"$$hashKey": "object:135", | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", |
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
# cat /etc/tmpfiles.d/gitlab.conf - for personal use | |
# cat /usr/lib/tmpfiles.d/gitlab.conf - for package devs | |
d /run/gitlab 0755 git git |
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
# cat /etc/systemd/system/gitlab-unicorn.service - for personal use | |
# cat /var/lib/systemd/system/gitlab-unicorn.service - for package devs | |
##################################################### | |
# | |
# GitLab version : 5.x - 7.x | |
# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp) | |
# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd | |
# | |
#################################################### |
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
# cat /etc/systemd/system/gitlab-sidekiq.service - for personal use | |
# cat /var/lib/systemd/system/gitlab-sidekiq.service - for package devs | |
##################################################### | |
# | |
# GitLab version : 5.x - 7.x | |
# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91, Stefan Tatschner (rumpelsepp) | |
# Downloaded from : https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/init/systemd | |
# | |
#################################################### |