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
# requires docker.io | |
# Preparing mongo https://hub.docker.com/_/mongo | |
# Preparing |
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
# New-SelfSignedCertificate -CertStoreLocation Cert:\CurrentUser\My -Type CodeSigningCert -Subject "jmolinaso Code Signing" | |
# Get-ChildItem -Path Cert:\CurrentUser\My | ? Subject -EQ "CN=jmolinaso Code Signing" | |
# Move-Item -Path (dir Cert:\CurrentUser\My).PSPath -Destination "Cert:\CurrentUser\Root" | |
# Set-AuthenticodeSignature -FilePath .\scriptToSign.ps1 -Certificate (dir Cert:\CurrentUser\Root -CodeSigningCert) -TimestampServer http://timestamp.globalsign.com/scripts/timstamp.dll |
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
" to start execute | |
" git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
set nocompatible " required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() |
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 | |
sudo apt-get install clamav clamav-daemon | |
sudo yum install clamav | |
# build the database | |
sudo freshclam | |
# Scan the home to find virus, make sound when found | |
sudo clamscan -r /home/user --bell |
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
remove all messages | |
mailq|grep -E '^\w+\s+'|awk '{print $1;}'|xargs -n 1 sudo postsuper -d |
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
# Steps: | |
# 1. Create file fail2ban.te | |
# 2. checkmodule -M -m -o fail2ban-syslog.mod fail2ban-syslog.te | |
# 3. semodule_package -o fail2ban-syslog.pp -m fail2ban-syslog.mod | |
# 4. semodule -i fail2ban-syslog.pp | |
# 5. sudo service fail2ban restart | |
module fail2ban-syslog 1.0; | |
require { | |
type syslogd_var_run_t; |
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
ausearch -m USER_LOGIN -sv no -te recent # check fail logins from today | |
ausearch -m USER_LOGIN -sv yes -te recent # check successful logins from today |
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
# Build folders | |
[Bb]in/ | |
[Oo]bj/ | |
# User specific | |
*.userprefs | |
*.usertasks | |
# Mono project files |
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
Monitor network over ssh with etherape | |
(ssh IP_ADDRESS -l root /usr/sbin/tcpdump -n -w -) | /usr/sbin/etherape -m ip -r - |
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
Information worth to know for data developers | |
============================================= | |
[Techblogs to follow] | |
Netflix techblog - http://techblog.netflix.com/ | |
[Opensource projects on the radar] | |
Prometheus monitoring system - http://prometheus.io/ | |
Data Model - http://prometheus.io/docs/concepts/data_model/ |