Skip to content

Instantly share code, notes, and snippets.

View covelus's full-sized avatar

Breogan C. covelus

View GitHub Profile
@covelus
covelus / OpenStack_components.txt
Last active March 29, 2020 10:32
OpenStack Components
Compute (Nova)
Identity (Keystone)
Image (Glance)
Networking (Neutron)
Block Storage (Cinder)
Object Storage (Swift)
Dashboard (Horizon)
Orchestration (Heat)
Workflow (Mistral)
Telemetry (Ceilometer)
@covelus
covelus / Puppet_intro_summary.txt
Created March 29, 2020 10:27
Puppet Intro Summary
https://www.digitalocean.com/community/tutorials/getting-started-with-puppet-code-manifests-and-modules
+ Resources
resource_type { 'resource_name'
attribute => value
...
}
user { 'mitchell':
ensure => present,
uid => '1000',
@covelus
covelus / GNU_Linux_basic_sysAdmin_summary.sh
Created March 29, 2020 10:26
GNU/Linux, basic SysAdmin summary
PROCESOS INICIO / SysVinit:
[Runlevels S,s,0..6: S=s=1: monousuario; 0: apagado; 2: multiusuario sen NFS, login texto; 3: multiusuario 2 + NFS + rede; 4: -; 5: multiusuario 3 + X; 6: reinicio]
- runlevel
- /sbin/telinit <runlevel>
- /etc/inittab
- /etc/rc.d --> /etc
- /etc/rc.local
- /etc/init.d
- chkconfig [--list | <service> [on | off | stop | start] # runlevels e servizos
- service [--status-all | <name> [status | start | stop | ...] # servizos inicio
@covelus
covelus / GNU_Linux_main_config_files_and_commands.sh
Created March 29, 2020 10:24
GNU/Linux, main config files or debug ones & related commands
# --------------------- PACKAGE MANAGEMENT ---------------------
# DPKG
$ dpkg -S /etc/file.conf # what package this file belongs to
$ dpkg -L <package> # package info (inc. files it contains)
$ dpkg -V <package> # verify
$ dpkg -r <package> # remove
# APT (apt = apt-get)
$ apt [-u] upgrade # -u show upgraded
$ sudo apt autoremove
$ sudo apt-get clean # will save space
@covelus
covelus / unix_networking_basics.sh
Created March 29, 2020 10:18
Some basic *nix networking commands
ip <> # ip address
ifconfig
iwconfig [interface]
ifup / ifdown
host <domain.name>
hostname
ping <IP/domain.name>
arp <> # arp -e
@covelus
covelus / shell_commands.sh
Last active April 12, 2020 13:47
Useful *nix SHELL commands I probably will forget
#
# Useful shell commands (mostly compatible with recent versions of GNU/BASH for GNU/Linux, or ZSH in MacOS) that almost sure I will need to write again, but I probably will eventually forget
# -AUTHOR: Breogan Costa
#
# --------------------- TESTED IN BASH 4 or superior ---------------------
# Get all filenames without extension
ls fileName* | xargs -I '{}' basename {} .extension
# Rename all the files starting by Debian name (i.e: VM images), adding an extra extension