Skip to content

Instantly share code, notes, and snippets.

View victorjonsson's full-sized avatar
🎯
Focusing

Victor Jonsson victorjonsson

🎯
Focusing
View GitHub Profile
@disintegrator
disintegrator / wdio.conf.js
Created June 9, 2017 04:13
Run Chrome Headless with WebdriverIO and selenium-standalone
exports.config = {
capabilities: [
{
browserName: 'chrome',
chromeOptions: {
args: ['headless', 'disable-gpu'],
},
},
],
services: ['selenium-standalone'],
@jonasbjork
jonasbjork / db.php
Created December 4, 2012 09:50
PHP code that parses wp-config.php and returns mysql command for connection to the database.
<?php
/**
* Get database connection string from a wp-config.php file.
*
* Usage: php db.php /var/www/wp-config.php
*
* Output: mysql -h DB_HOST -u DB_USER -pDB_PASSWORD DB_NAME
*
* @author Jonas Björk <jonas.bjork@me.com>
* @date 2012-12-04
@jed
jed / LICENSE.txt
Created May 20, 2011 13:27 — forked from 140bytes/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE