The purpose of this document is to help with configuring and troubleshooting using TLS on the connection between Beats and Logstash.
You must configure TLS on both the client and server to make this work. This
import puppeteer from 'puppeteer-extra'; | |
import pluginStealth from 'puppeteer-extra-plugin-stealth'; // Use v2.4.5 instead of latest | |
import * as readline from 'readline'; | |
puppeteer.use(pluginStealth()); | |
// Use '-h' arg for headful login. | |
const headless = !process.argv.includes('-h'); | |
// Prompt user for email and password. |
[alias] | |
st = status -sb | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit -- | |
up = !git fetch origin && git rebase origin/master | |
mup = !git fetch origin && git merge origin/master | |
done = "!git checkout master && git pull && git fetch -p && git branch --merged | grep -Pv '\\*|master' | xargs -n 1 git branch -d" |
helpers do | |
def dev_pages(dir) | |
sitemap.resources.select do |resource| | |
resource.path.start_with?(dir) && resource.parent == nil && resource.data.archive != true && resource.data.published != false #&& resource.metadata[:options][:layout] == 'developments' | |
end.sort_by { |resource| resource.data.order || 9999 } | |
end | |
end |
import static org.hamcrest.Matchers.*; | |
import static org.hamcrest.MatcherAssert.*; | |
import java.math.RoundingMode; | |
import java.text.DecimalFormat; | |
import lombok.extern.slf4j.Slf4j; | |
import org.testng.annotations.Test; |
These commands are needed every time you want to generate a new certificate signing request to give to an authority in order for them to generate and sign a certificate for you.
https://letsencrypt.org/ solves a lot of the pain involved with SSL certs, but sometimes you still need to go the "old school" route. I constantly forget how this stuff works, so I collected the most important commands (and what they do) here for easy copy & paste.
# ==================================== | |
# Obfuscate email | |
# Adapted from: | |
# http://stackoverflow.com/questions/483212/effective-method-to-hide-email-from-spam-bots2 | |
# Usage: | |
# = mailto('[email protected]', 'Get in touch', 'btn btn--nav') | |
# ==================================== | |
MAIL_TO = 'mailto:' | |
AT = '@' | |
DOT = '.' |
# Mosh uses udp range 60000 - 61000. Just allow 60000 alone for added security | |
-A INPUT -p udp -m multiport --dports 60000:61000 -j ACCEPT |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important
or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
{ | |
"491289025" : "ijinshan-kappmarket://", | |
"301521403" : "fb103361823069955://", | |
"492178411" : "ils492178411://", | |
"346142396" : "fb234434003713://", | |
"310633997" : "whatsapp://", | |
"370614765" : "com.condenet.newyorker://", | |
"325058491" : "rnmddisco://", | |
"382952264" : "epichttp://", | |
"477048487" : "predictwind://", |