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 | |
# | |
# let's make an offline repo of mfu software | |
# | |
# deps | |
yum install -y yum-utils-1.1.31-40.el7.noarch | |
# |
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 -y epel; yum makecache | |
yum install -y golang-godoc golang-docs | |
cat < 'eof' > /etc/systemd/system/godoc.service | |
[Unit] | |
Description = golang godoc web server | |
[Service] | |
ExecStart=/usr/bin/godoc -http :8080 | |
Restart=always |
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
# goodies | |
lsof | |
tree | |
# info tools | |
net-tools # provides ifconfig, netstat | |
bind-utils # provides host | |
# performance tools | |
sysstat |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,46,00,01,00,3a,00,00,00,00,00 |
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 | |
# | |
# let's make an ansible rpm for offline deployment | |
# | |
yum makecache | |
yum -y update | |
# rpm build deps |
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 | |
IMAGE=empty.iso | |
BUILD=/dev/null | |
mkisofs -r -V "Empty ISO" -J -l -o $IMAGE $BUILD |
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
root@ubuntu-00:~# lvdisplay | |
--- Logical volume --- | |
LV Path /dev/ubuntu-vg/ubuntu-lv | |
LV Name ubuntu-lv | |
VG Name ubuntu-vg | |
LV UUID mb4yCN-v2A3-MJ0K-ri6z-ClR8-Gtb3-2950UI | |
LV Write Access read/write | |
LV Creation host, time ubuntu-server, 2020-05-16 18:59:24 +0000 | |
LV Status available | |
# open 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
--- | |
- name: expand the root filesystem | |
lvol: | |
lv: ubuntu-lv | |
vg: ubuntu-vg | |
size: 80%VG | |
resizefs: 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
{ | |
"data-root": "/data/docker-data", | |
"log-driver": "json-file", | |
"log-opts": { | |
"max-size": "40m", | |
"max-file": "100", | |
"compress": "true" | |
}, | |
"bip": "192.168.127.5/24", | |
"default-address-pools":[ |
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
# Reload the file with Prefix r. | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
set -g mouse off | |
set -g default-terminal "screen-256color" | |
# bar style | |
set -g status-style fg=white,bold,bg=black | |
setw -g window-status-style fg=cyan,bg=black | |
setw -g window-status-current-style fg=white,bold,bg=red |
OlderNewer