Skip to content

Instantly share code, notes, and snippets.

View c0psrul3's full-sized avatar

Mike c0psrul3

View GitHub Profile
@c0psrul3
c0psrul3 / linux_proc_fs_files.list.txt
Created October 13, 2016 11:54
Linux "/proc" filesystem files list
/proc/fb
/proc/fs/aufs/plink_maint
/proc/fs/ext4/sda1/options
/proc/fs/ext4/sda1/mb_groups
/proc/fs/ext4/sda1/es_shrinker_info
/proc/fs/jbd2/sda1-8/info
/proc/bus/pci/00/00.0
/proc/bus/pci/00/02.0
/proc/bus/pci/00/14.0
@c0psrul3
c0psrul3 / cisco_config__switchport_mode_access.Example.log
Created October 11, 2016 23:19
Cisco configuration example for VLAN and Switchport Access Mode
CAT1#
09:59:20: %SYS-5-CONFIG_I: Configured from console by console
CAT1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
CAT1(config)#
CAT1(config)# vlan 5
CAT1(config-vlan)# name marketing
CAT1(config-vlan)# exit
CAT1(config)# vlan 10
CAT1(config-vlan)# name humanresources
@c0psrul3
c0psrul3 / logstash__grok__syslogs.txt.md
Created September 28, 2016 21:41
Logstash with Grok for Syslog forwarded messages
@c0psrul3
c0psrul3 / ruby__rvm__gem__rc_paths.txt.md
Created September 28, 2016 20:43
Ruby *gem path*, rc config, *rvm* setup

Ruby gem path, rc config, rvm setup

  • Sounds like you want the command export for setting environment variables:
export PATH=$PATH':/path/to/add'
export GEM_HOME=$HOME/.gem
export GEM_PATH=$HOME/.gem
  • That will only take effect for the current session, though. To make them more permanent, add those lines to your ~/.bashrc.
@c0psrul3
c0psrul3 / rootpw_pre-ecrypted_saved.txt.md
Created September 28, 2016 20:27
encrypted root password KNOWN - for distribution (CentOS)
@c0psrul3
c0psrul3 / ELK_STACK.sh
Created September 22, 2016 12:20 — forked from aljoantony/ELK_STACK.sh
ELK
#!/bin/bash
###########
# Script install and configure ELK stack Server and can be used for adding new clients to this stack.
# Last modified 3/3/2016
# Author: Aljo Antony
###########
# Define colors in case we decide to use them
color() {
Red='\e[0;31m'
@c0psrul3
c0psrul3 / filebeat-index-template.json
Created September 12, 2016 18:09 — forked from thisismitch/filebeat-index-template.json
Filebeat configuration with comments removed
{
"mappings": {
"_default_": {
"_all": {
"enabled": true,
"norms": {
"enabled": false
}
},
"dynamic_templates": [
#!/usr/local/bin/bash
# shell script hardening
set -euf -o pipefail
#
# Lets Encrypt Certificate Generator
# https://calomel.org/lets_encrypt_client.html
# lets_encrypt.sh v0.04
#