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
lsof | grep '(deleted)' | |
# stop/kill corresponding service |
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
## /etc/modprobe.d/modprobe.conf | |
options snd_intel_dspcfg dsp_driver=2 | |
## init 6 |
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
-> where to place? | |
/etc/profile.d/aliases.sh | |
-> ansible example | |
- name: Ensure aliases are present in /etc/profile.d/aliases.sh | |
lineinfile: | |
path: /etc/profile.d/aliases.sh | |
line: "{{ item }}" | |
loop: | |
- "alias sudi='sudo -i'" |
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
## install docker | |
yum check-update | |
curl -fsSL https://get.docker.com/ | sh | |
systemctl start docker | |
systemctl status docker | |
systemctl enable docker | |
-> docker with non-root user | |
usermod -aG docker $(whoami) |
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
[Strg]+[Win]+[Alt] für ca. 5-10 Sekunden gedrückt halten. (bei Notebooks [Strg]+[Alt]+[Fn]) | |
Das hat offenbar bei einigen Leuten gut funktioniert :) | |
siehe auch hier: | |
https://social.technet.microsoft.com/Forums/office/en-US/2f965e8a-d9d3-4c80-b0d7-c6560999ee4c/only-numerics-key-5-and-6-work-and-keyboard?forum=w7itprohardware |
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
git config --global user.email "email@example.com" |
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 | |
set -x | |
echo "[$(date "+%Y-%m-%d %H:%M:%S")] started ..." | |
# set date | |
month=$(date +"%-m") | |
month_prev=$((month - 3)) | |
month_end=$month | |
month_start=$(date -d "$(date +%Y-%m-1) -3 month" +%-m) |
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
### installation centos7 | |
sudo yum install python-pip | |
pip install --user powerline-status | |
### vim | |
set rtp+=$HOME/.local/lib/python2.7/site-packages/powerline/bindings/vim/ | |
" Always show statusline | |
set laststatus=2 |
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
rsync -av --exclude='jobs' /var/kvtg/jenkins/ /var/tmp/jenkins/ |
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
yum install system-storage-manager | |
ssm list | |
ssm add -p <poolname> <device> | |
ssm add -p centos /dev/sdb | |
ssm list | |
df -h |
NewerOlder