Skip to content

Instantly share code, notes, and snippets.

View nirnanaaa's full-sized avatar
🤸‍♀️
lalalala

Florian Kasper nirnanaaa

🤸‍♀️
lalalala
View GitHub Profile
If you are using Google Chrome and Client SSL Cert and you are tired of constantly selecting certificates, try this:
1. Download and extract Chrome policy templates from here: http://dl.google.com/dl/edgedl/chrome/policy/policy_templates.zip
2. Start the Local Group Policy Editor: Start > Run > gpedit.msc > OK
3. Right-click on Computer Policy > Computer Configuration > Administrative Templates and choose Add/Remove Templates…
4. Click Add…, choose policy_templates\windows\adm\en-US\chrome.adm (from the already downloaded and extracted policy templates) and click Open (Note: if your Windows language is different from en-US choose the chrome.adm from the respective language folder)
5. Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > Classic Administrative Templates (ADM) > Google > Google Chrome > Content Settings
6. Double-click on Automatically select client certificates for these sites
7. Click Enabled
8. Click Show… in the Options pane
@nirnanaaa
nirnanaaa / webpack.conf.js
Created September 4, 2016 07:31
Webpack serverless config
const webpack = require('webpack');
const path = require('path');
const config = require('./config');
module.exports = {
entry: {
login: path.join(__dirname, 'login', 'handler.js'),
email: path.join(__dirname, 'email', 'handler.js'),
graphql: path.join(__dirname, 'back', 'api', 'data', 'handler.js'),
},
Timing O_DIRECT cached reads: 998 MB in 2.00 seconds = 498.62 MB/sec
Timing O_DIRECT disk reads: 1268 MB in 3.00 seconds = 422.44 MB/sec
/dev/xvda:
Timing O_DIRECT cached reads: 150 MB in 2.02 seconds = 74.20 MB/sec
Timing O_DIRECT disk reads: 118 MB in 3.05 seconds = 38.69 MB/sec ubuntu@ip-172-31-5-75:~$ sudo hdparm -tT --direct /dev/xvdg
/dev/xvdg:
Timing O_DIRECT cached reads: 176 MB in 2.01 seconds = 87.73 MB/sec
Timing O_DIRECT disk reads: 238 MB in 3.02 seconds = 78.79 MB/sec
def homepage_embed_test
return (@var) ? @var : "no var set"
end