Skip to content

Instantly share code, notes, and snippets.

View jmolinasoler's full-sized avatar

Julio Molina Soler jmolinasoler

  • Diepenbeek (Limburg), Belgium
View GitHub Profile
# requires docker.io
# Preparing mongo https://hub.docker.com/_/mongo
# Preparing
@jmolinasoler
jmolinasoler / signScriptPowerShell
Created April 23, 2020 19:31
Steps to sign the scripts in windows
# 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
" 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()
# 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
remove all messages
mailq|grep -E '^\w+\s+'|awk '{print $1;}'|xargs -n 1 sudo postsuper -d
@jmolinasoler
jmolinasoler / fail2ban-syslog.te
Created November 11, 2015 09:17
fail2ban-syslog.te
# 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;
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
@jmolinasoler
jmolinasoler / .gitignore
Created February 28, 2015 18:39
gitignore for monodevelop solutions
# Build folders
[Bb]in/
[Oo]bj/
# User specific
*.userprefs
*.usertasks
# Mono project files
@jmolinasoler
jmolinasoler / ssh_tips_and_tricks.txt
Created February 5, 2015 16:18
ssh tips and tricks
Monitor network over ssh with etherape
(ssh IP_ADDRESS -l root /usr/sbin/tcpdump -n -w -) | /usr/sbin/etherape -m ip -r -
@jmolinasoler
jmolinasoler / gist:4e733311190a5859a0a8
Last active August 29, 2015 14:14
Information worth to know
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/