Skip to content

Instantly share code, notes, and snippets.


Florian Kasper nirnanaaa

View GitHub Profile
View Chrome AutoSelectCertificateForUrls
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:
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 / webpack.conf.js
Created Sep 4, 2016
Webpack serverless config
View webpack.conf.js
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'),
View gist:007eabd9362ee190cedd
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
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
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
View gist:4737956
def homepage_embed_test
return (@var) ? @var : "no var set"