Directories on host machine:
-
/data/certbot/letsencrypt
-
/data/certbot/www
-
Nginx server in docker container
docker run -d --name nginx \
Directories on host machine:
/data/certbot/letsencrypt
/data/certbot/www
Nginx server in docker container
docker run -d --name nginx \
JSON_text | |
= ws value:value ws { return value; } | |
begin_array = ws "[" ws | |
begin_object = ws "{" ws | |
end_array = ws "]" ws | |
end_object = ws "}" ws | |
name_separator = ws ":" ws | |
value_separator = ws "," ws |
Testing React components seems simple at first. Then you need to test something that isn't a pure interaction and things seem to break down. These 4 patterns should help you write readable, flexible tests for the type of component you are testing.
I recommend doing all setup in the most functional way possible. If you can avoid it, don't set variables in a
beforeEach
. This will help ensure tests are isolated and make things a bit easier to reason about. I use a pattern
that gives great defaults for each test example but allows every example to override props
when needed:
Introduction
EuskalHack Security Congress is the first Ethical Hacking association in Euskadi, with the aim of promoting the community and culture in digital security to anyone who may be interested.
This exclusive conference is shaping up to be the most relevant in the Basque Country, with an estimated 125 attendees for the first edition.
The participants include specialised companies, state security organisations, professionals, hobbyists and students in the area of security and Information Technology.
Estimated date and location
#!/bin/sh | |
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".js\{0,1\}$") | |
if [[ "$STAGED_FILES" = "" ]]; then | |
exit 0 | |
fi | |
PASS=true |
If you start to see something like this, e.g. on Heroku since they installed the postgres 9.5 client libraries on their dynos
/usr/lib/postgresql/9.5/bin/pg_dump: invalid option -- 'i'
Try "pg_dump --help" for more information.
rake aborted!
Error dumping database
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.4/lib/active_record/tasks/postgresql_database_tasks.rb:55:in `structure_dump'
chrome://-alkuisissa | |
chrome://-nettadresser | |
chrome://-webbadresser | |
chrome://ChromeTestChromeWebUIControllerFactory | |
chrome://DummyURL | |
chrome://URLs | |
chrome://about | |
chrome://accessibility | |
chrome://anything | |
chrome://app-list |
// Codemod to convert class methods to properties, and remove `.bind(this)` in JSX props. | |
// Doesn't support Flow annotations yet | |
export default function(file, api) { | |
const j = api.jscodeshift; | |
const convertToClassProps = p => { | |
const node = p.node; | |
if (node.key.name.indexOf('_') === 0) { | |
node.type = 'ClassProperty'; |