Skip to content

Instantly share code, notes, and snippets.

View thebennos's full-sized avatar
🎯
Target

Benjamin thebennos

🎯
Target
View GitHub Profile
@thebennos
thebennos / gist:9e5c0b6bd6299b46d01218662dba8bf6
Created February 7, 2022 19:18 — forked from jacksonfdam/gist:3000275
Regular Expressions List
//Regular Expressions List
//Short Tutorial
\ // the escape character - used to find an instance of a metacharacter like a period, brackets, etc.
. // match any character except newline
x // match any instance of x
^x // match any character except x
[x] // match any instance of x in the bracketed range - [abxyz] will match any instance of a, b, x, y, or z
| // an OR operator - [x|y] will match an instance of x or y
Aegir on Debian/jessie x86_64
VPS unknown / not a virtual machine
CPU 4
RAM 15997
XTR _XTRAS_LIST="CSF CHV FTP GIT IMG CSS"
MFX _MODULES_FIX=YES
PFX _PERMISSIONS_FIX=YES
DBS _DB_SERIES=10.0
DNS _DNS_SETUP_TEST=YES
@thebennos
thebennos / README.md
Created February 22, 2016 02:25 — forked from attiks/README.md

Install simp_le as a normal user Inside the simp_le directory create a directory certs Inside certs add generate.sh

@thebennos
thebennos / kibana-dashboard.json
Created February 20, 2016 01:49 — forked from orweinberger/kibana-dashboard.json
Extract Gmail messages and insert into Elasticsearch
[
{
"_id": "Gmail-Dashboard",
"_type": "dashboard",
"_source": {
"title": "Gmail Dashboard",
"hits": 0,
"description": "",
"panelsJSON": "[{\"col\":1,\"id\":\"Top-10-Worst-senders\",\"row\":4,\"size_x\":2,\"size_y\":5,\"type\":\"visualization\"},{\"col\":3,\"id\":\"Emails-Date-Histogram\",\"row\":1,\"size_x\":10,\"size_y\":3,\"type\":\"visualization\"},{\"col\":3,\"id\":\"Top-10-Senders\",\"row\":4,\"size_x\":2,\"size_y\":5,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Total-Messages\",\"row\":1,\"size_x\":2,\"size_y\":3,\"type\":\"visualization\"},{\"col\":10,\"id\":\"Day-Of-Week\",\"row\":4,\"size_x\":3,\"size_y\":5,\"type\":\"visualization\"},{\"id\":\"Hour-Of-Day\",\"type\":\"visualization\",\"size_x\":5,\"size_y\":5,\"col\":5,\"row\":4}]",
"version": 1,
@thebennos
thebennos / logstash.conf
Created February 20, 2016 01:49 — forked from markwalkom/logstash.conf
Reindexing Elasticsearch with Logstash 2.0
input {
elasticsearch {
hosts => [ "HOSTNAME_HERE" ]
port => "9200"
index => "INDEXNAME_HERE"
size => 1000
scroll => "5m"
docinfo => true
scan => true
}
@thebennos
thebennos / docker-compose.yml
Created January 27, 2016 18:55 — forked from yoanisgil/docker-compose.yml
Elastic Search - Docker Compose
master:
image: elasticsearch:2
ports:
- "9200:9200"
restart: always
container_name: es_master
es-node:
image: elasticsearch:2
command: elasticsearch --discovery.zen.ping.unicast.hosts=es_master
@thebennos
thebennos / crate.yml
Last active December 19, 2015 00:12 — forked from ianneub/crate.yml
Tutum.co stack yaml to create a crate.io cluster
crate:
image: 'crate:latest'
deployment_strategy: high_availability
environment:
- CREATE_HEAP_SIZE=1g
ports:
- '32333:4200'
command: >
crate
-Des.cluster.name=mynewcluster
@thebennos
thebennos / composer.json
Created December 6, 2015 11:13 — forked from 256cats/composer.json
Web scraping ReactPHP Curl Proxies, curl multi example, scraping news ycombinator, explanation here: http://256cats.com/fast-scraping-with-reactphp-curl-proxies/
{
"require": {
"khr/react-curl": "~2.0",
"sunra/php-simple-html-dom-parser": "~1.5"
}
}
@thebennos
thebennos / bookmarklet.js
Created December 2, 2015 22:53 — forked from SeoFood/bookmarklet.js
Metrics tools Bookmarklet
javascript:(function(){window.open('http://metrics.tools/metricstools/tools/serpindex/domain/%27+window.location.host.replace(/^www\./,''));})();
@thebennos
thebennos / packet-mount-nvme.sh
Last active August 29, 2015 14:26 — forked from robbydooo/packet-mount-nvme.sh
Packet.net Mounting NVME Drives
#!/bin/sh
# Based on documentation from Packet.net
# https://www.packet.net/help/kb/hardware/how-do-i-configure-an-nvme-flash-drive/
#NVME01N1 Setup
parted -a optimal /dev/nvme0n1 mklabel gpt
parted -a optimal /dev/nvme0n1 mkpart primary ext4 0% 100%
mkfs.ext4 /dev/nvme0n1