sysctl -w fs.file-max=12000500
sysctl -w fs.nr_open=20000500
# Set the maximum number of open file descriptors
ulimit -n 20000000
# Set the memory size for TCP with minimum, default and maximum thresholds
sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
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
#include <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
// | |
// The mysterious command (0x2E214B44) results in the first 10 sectors being wiped out.Or if the original replaceBootSectors() function fails. | |
// | |
// 0x2E214B44 ??? => Mysterious process. Name very close to AVP.exe | |
// Source of below hashes: https://www.carbonblack.com/2017/06/28/carbon-black-threat-research-technical-analysis-petya-notpetya-ransomware/ |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskdl.exe] | |
"Debugger"="taskkill /F /IM " | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\taskse.exe] | |
"Debugger"="taskkill /F /IM " | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\wannacry.exe] | |
"Debugger"="taskkill /F /IM " |
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
--- | |
# salt state file for restarting a minion under its own control | |
{% set delay = salt['config.get']('minion_restart_in_seconds', 5) %} | |
restart-the-minion: | |
file.managed: | |
- name: /tmp/run_command_later.py | |
- source: salt://run_command_later.py | |
- mode: 775 |
- Filebeat is a log shipper, capture files and send to Logstash for processing and eventual indexing in Elasticsearch
- Logstash is a heavy swiss army knife when it comes to log capture/processing
- Centralized logging, necessarily for deployments with > 1 server
- Super-easy to get setup, a little trickier to configure
- Captured data is easy to visualize with Kibana
- Wny not just Logstash (ELK is so hot right now)?
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 | |
#Script to setup M-node master node and N-node Worker Node running Docker 1.13.1 on Apple Mac Virtualbox | |
echo "--Setting up Docker Machine---" | |
curl -L https://github.com/docker/machine/releases/download/v0.13.0/docker-machine-`uname -s`-`uname -m` >/usr/local/bin/docker-machine && \ | |
chmod +x /usr/local/bin/docker-machine | |
echo "--Verifying Docker Machine Installation--" | |
docker-machine version |
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
SOFTWARE TO INSTALL: | |
=========================== | |
IIS Server | |
IIS Roles & Services | |
ASP.NET Framework & All Features | |
Microsoft (R) Visual Studio Runtime. | |
Microsoft SQL Express 2012 SP1 with Essentials specific instance (SQLEXPRESSOME) | |
IPMI Utility |
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
FROM debian:jessie | |
ARG VERSION=0.12.1 | |
ARG SHA256HASH=34de171ac1b48b0780d68f3844c9fd2e8bfe6a7780b55e1f012067c2440ebd8a | |
RUN apt-get update && \ | |
apt-get install -y wget ca-certificates && \ | |
apt-get clean && \ | |
wget https://www.bitcoinunlimited.info/downloads/bitcoinUnlimited-${VERSION}-linux64.tar.gz && \ |
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
/etc/pam.d/sshd | |
#Comment out pam_motd.so to disable MOTD | |
#session optional pam_motd.so motd=/run/motd.dynamic noupdate | |
#session optional pam_motd.so # [1] | |
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
curl -L http://bit.ly/10hA8iC | bash |
NewerOlder