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
cat $filename | awk '{print $1}' | sort | uniq -c | awk '{ print $2 " " $1 }' > records_$filename |
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
$ xinput list | |
⎡ Virtual core pointer id=2 [master pointer (3)] | |
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] | |
⎜ ↳ Dell Dell Universal Receiver id=11 [slave pointer (2)] | |
⎜ ↳ DELL0740:00 06CB:7E7E Touchpad id=14 [slave pointer (2)] | |
⎜ ↳ SynPS/2 Synaptics TouchPad id=19 [slave pointer (2)] | |
⎜ ↳ Raydium Corporation Raydium Touch System id=13 [slave pointer (2)] | |
⎣ Virtual core keyboard id=3 [master keyboard (2)] | |
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] | |
↳ Power Button id=6 [slave keyboard (3)] |
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
## | |
# SSL and TLS CONFIGURATION | |
## | |
ssl_protocols TLSv1.1 TLSv1.2; | |
ssl_ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES128-SHA:AES128-SHA256:AES256-SHA:AES256-SHA256:AES256-GCM-SHA384:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4"; |
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
function docker_clean_containers() { | |
docker ps -a | awk '{print $1}' | grep -v CONTAINER | while read container_id; do | |
docker kill ${container_id} | |
docker rm ${container_id} | |
done | |
} | |
function docker_clean_images() { | |
docker images | awk '{print $3}' | grep -v IMAGE | while read container_image; do | |
docker rmi ${container_image} |
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/sh | |
# | |
# Logstash Start/Stop logstash | |
# | |
# chkconfig: 345 99 99 | |
# description: Logstash | |
# processname: logstash | |
logstash_bin="java -Djava.net.preferIPv4Stack=true -jar /opt/logstash/logstash-1.0.11pre-monolithic.jar" | |
logstash_log="/opt/logstash/logstash-agent.log" |
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
server { | |
listen 80; | |
server_name monit.yourdomain.net; | |
return 301 https://monit.yourdomain.net$request_uri; | |
} | |
server { | |
listen 443 ssl; | |
server_name monit.yourdomain.net; |
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
set daemon 30 | |
set logfile syslog | |
set idfile /var/.monit.id | |
####### MAIL CONF ###### | |
set mailserver email-smtp.us-east-1.amazonaws.com port 465 | |
username "***************" | |
password "***************" | |
using SSLV3 with timeout 30 seconds |
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 -ex | |
sudo find /home/ubuntu/backup-000/oldCluster -type d -exec chmod 755 {} + | |
sudo find /home/ubuntu/backup-000/oldCluster -type f -exec chmod 644 {} + | |
sudo chown -R cassandra:cassandra /home/ubuntu/backup-000/oldCluster | |
sudo rm /var/lib/cassandra/commitlog/*.log | |
sudo rm -rf /var/lib/cassandra/data/system/* | |
sudo rm -rf /var/lib/cassandra/data/system_traces/* |
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 | |
alias ll='ls -GFlaht' | |
source ~/.git-completion.bash | |
source ~/.git-prompt.sh | |
alias gits='git status' | |
MAGENTA="\[\033[0;35m\]" | |
YELLOW="\[\033[0;33m\]" | |
BLUE="\[\033[34m\]" |
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 | |
################################################# | |
# Right now we are assuming you have already # | |
# installed docker within your machine and your # | |
# current user belongs to docker system group # | |
################################################# | |
################# | |
# ELASTICSEARCH # |
NewerOlder